Record Class ComponentTemplateRequestData
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.core.index.ComponentTemplateRequestData
public record ComponentTemplateRequestData(Settings settings, Document mapping, AliasActions aliasActions, Boolean allowAutoCreate)
extends Record
A component template to be used in a component template request.
- Since:
- 5.1
- Author:
- Peter-Josef Meisch
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionComponentTemplateRequestData
(Settings settings, Document mapping, AliasActions aliasActions, Boolean allowAutoCreate) Creates an instance of aComponentTemplateRequestData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealiasActions
record component.Returns the value of theallowAutoCreate
record component.builder()
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
-
ComponentTemplateRequestData
public ComponentTemplateRequestData(@Nullable Settings settings, @Nullable Document mapping, @Nullable AliasActions aliasActions, @Nullable Boolean allowAutoCreate) Creates an instance of aComponentTemplateRequestData
record class.- Parameters:
settings
- the value for thesettings
record componentmapping
- the value for themapping
record componentaliasActions
- the value for thealiasActions
record componentallowAutoCreate
- the value for theallowAutoCreate
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)
. -
settings
Returns the value of thesettings
record component.- Returns:
- the value of the
settings
record component
-
mapping
Returns the value of themapping
record component.- Returns:
- the value of the
mapping
record component
-
aliasActions
Returns the value of thealiasActions
record component.- Returns:
- the value of the
aliasActions
record component
-
allowAutoCreate
Returns the value of theallowAutoCreate
record component.- Returns:
- the value of the
allowAutoCreate
record component
-