Record Class PutComponentTemplateRequest
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.core.index.PutComponentTemplateRequest
public record PutComponentTemplateRequest(String name, Long version, Boolean create, Duration masterTimeout, ComponentTemplateRequestData template)
extends Record
- Since:
- 5.1
- Author:
- Peter-Josef Meisch
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPutComponentTemplateRequest(String name, Long version, Boolean create, Duration masterTimeout, ComponentTemplateRequestData template) Creates an instance of aPutComponentTemplateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()create()Returns the value of thecreaterecord 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 themasterTimeoutrecord component.name()Returns the value of thenamerecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
PutComponentTemplateRequest
public PutComponentTemplateRequest(String name, @Nullable Long version, @Nullable Boolean create, @Nullable Duration masterTimeout, ComponentTemplateRequestData template) Creates an instance of aPutComponentTemplateRequestrecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentcreate- the value for thecreaterecord componentmasterTimeout- the value for themasterTimeoutrecord componenttemplate- the value for thetemplaterecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
create
Returns the value of thecreaterecord component.- Returns:
- the value of the
createrecord component
-
masterTimeout
Returns the value of themasterTimeoutrecord component.- Returns:
- the value of the
masterTimeoutrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-