Record Class DeclarativeHttpClientOperationData
java.lang.Object
java.lang.Record
ru.tinkoff.kora.http.client.common.declarative.DeclarativeHttpClientOperationData
public record DeclarativeHttpClientOperationData(HttpClient client, String url, @Nullable Duration requestTimeout)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDeclarativeHttpClientOperationData(HttpClient client, String url, Duration requestTimeout) Creates an instance of aDeclarativeHttpClientOperationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord 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 therequestTimeoutrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
DeclarativeHttpClientOperationData
public DeclarativeHttpClientOperationData(HttpClient client, String url, @Nullable Duration requestTimeout) Creates an instance of aDeclarativeHttpClientOperationDatarecord class.- Parameters:
client- the value for theclientrecord componenturl- the value for theurlrecord componentrequestTimeout- the value for therequestTimeoutrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
requestTimeout
Returns the value of therequestTimeoutrecord component.- Returns:
- the value of the
requestTimeoutrecord component
-