Record Class TemplateResponseData
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.core.index.TemplateResponseData
public record TemplateResponseData(Document mapping, Settings settings, Map<String,AliasData> aliases, List<String> composedOf)
extends Record
- Since:
- 5.1
- Author:
- Peter-Josef Meisch
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaliases()
Returns the value of thealiases
record component.static TemplateResponseData.Builder
builder()
Returns the value of thecomposedOf
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.mapping()
Returns the value of themapping
record component.settings()
Returns the value of thesettings
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TemplateResponseData
public TemplateResponseData(@Nullable Document mapping, @Nullable Settings settings, Map<String, AliasData> aliases, List<String> composedOf) Creates an instance of aTemplateResponseData
record class.- Parameters:
mapping
- the value for themapping
record componentsettings
- the value for thesettings
record componentaliases
- the value for thealiases
record componentcomposedOf
- the value for thecomposedOf
record 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)
. -
mapping
Returns the value of themapping
record component.- Returns:
- the value of the
mapping
record component
-
settings
Returns the value of thesettings
record component.- Returns:
- the value of the
settings
record component
-
aliases
Returns the value of thealiases
record component.- Returns:
- the value of the
aliases
record component
-
composedOf
Returns the value of thecomposedOf
record component.- Returns:
- the value of the
composedOf
record component
-