Package com.qtsurfer.api.sdk
Record Class QTSurferOptions
java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.QTSurferOptions
- Record Components:
baseUrl- API base URL (e.g.https://api.qtsurfer.com/v1)token- bearer token;nulldisables theAuthorizationheaderhttpClient- optional customHttpClient; whennullthe SDK creates oneexecutor- executor that runs the async workflow; whennullusesForkJoinPool.commonPool()
public record QTSurferOptions(URI baseUrl, String token, HttpClient httpClient, ExecutorService executor)
extends Record
Configuration for a
QTSurfer client.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionQTSurferOptions(URI baseUrl, String token, HttpClient httpClient, ExecutorService executor) Creates an instance of aQTSurferOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()Returns the value of thebaseUrlrecord component.static QTSurferOptions.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.executor()Returns the value of theexecutorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpClientrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QTSurferOptions
Creates an instance of aQTSurferOptionsrecord class.- Parameters:
baseUrl- the value for thebaseUrlrecord componenttoken- the value for thetokenrecord componenthttpClient- the value for thehttpClientrecord componentexecutor- the value for theexecutorrecord component
-
-
Method Details
-
builder
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
httpClient
Returns the value of thehttpClientrecord component.- Returns:
- the value of the
httpClientrecord component
-
executor
Returns the value of theexecutorrecord component.- Returns:
- the value of the
executorrecord component
-