Record Class TemplateResponse
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.core.index.TemplateResponse
public record TemplateResponse(String name, @Nullable Long version, @Nullable TemplateResponseData templateData)
extends Record
- Since:
- 5.1
- Author:
- Peter-Josef Meisch
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTemplateResponse(String name, @Nullable Long version, @Nullable TemplateResponseData templateData) Creates an instance of aTemplateResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateResponse.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.@Nullable TemplateResponseDataReturns the value of thetemplateDatarecord component.final StringtoString()Returns a string representation of this record class.@Nullable Longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
TemplateResponse
public TemplateResponse(String name, @Nullable Long version, @Nullable TemplateResponseData templateData) Creates an instance of aTemplateResponserecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componenttemplateData- the value for thetemplateDatarecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
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
-
templateData
Returns the value of thetemplateDatarecord component.- Returns:
- the value of the
templateDatarecord component
-