Package org.eclipse.csi.codesign
Record Class CodesignClient.Config
java.lang.Object
java.lang.Record
org.eclipse.csi.codesign.CodesignClient.Config
- Record Components:
baseUrl- the SignPath API base URLorganizationId- the SignPath organization identifierapiToken- the Bearer API token used for authenticationconnectTimeout- the HTTP connection timeouthttpTimeout- the HTTP read/write timeoutretryTimeout- the maximum time window for retry attemptsretryInterval- the delay between retry attemptsmaxRetries- the maximum number of retry attempts
- Enclosing class:
CodesignClient
public static record CodesignClient.Config(String baseUrl, String organizationId, String apiToken, Duration connectTimeout, Duration httpTimeout, Duration retryTimeout, Duration retryInterval, int maxRetries)
extends Record
Configuration for the codesign client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiToken()Returns the value of theapiTokenrecord component.baseUrl()Returns the value of thebaseUrlrecord component.Returns the value of theconnectTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpTimeoutrecord component.intReturns the value of themaxRetriesrecord component.Returns the value of theorganizationIdrecord component.Returns the value of theretryIntervalrecord component.Returns the value of theretryTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(String baseUrl, String organizationId, String apiToken, Duration connectTimeout, Duration httpTimeout, Duration retryTimeout, Duration retryInterval, int maxRetries) Creates an instance of aConfigrecord class.- Parameters:
baseUrl- the value for thebaseUrlrecord componentorganizationId- the value for theorganizationIdrecord componentapiToken- the value for theapiTokenrecord componentconnectTimeout- the value for theconnectTimeoutrecord componenthttpTimeout- the value for thehttpTimeoutrecord componentretryTimeout- the value for theretryTimeoutrecord componentretryInterval- the value for theretryIntervalrecord componentmaxRetries- the value for themaxRetriesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
organizationId
Returns the value of theorganizationIdrecord component.- Returns:
- the value of the
organizationIdrecord component
-
apiToken
Returns the value of theapiTokenrecord component.- Returns:
- the value of the
apiTokenrecord component
-
connectTimeout
Returns the value of theconnectTimeoutrecord component.- Returns:
- the value of the
connectTimeoutrecord component
-
httpTimeout
Returns the value of thehttpTimeoutrecord component.- Returns:
- the value of the
httpTimeoutrecord component
-
retryTimeout
Returns the value of theretryTimeoutrecord component.- Returns:
- the value of the
retryTimeoutrecord component
-
retryInterval
Returns the value of theretryIntervalrecord component.- Returns:
- the value of the
retryIntervalrecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-