Record Class ComponentTemplateRequestData
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.core.index.ComponentTemplateRequestData
public record ComponentTemplateRequestData(@Nullable Settings settings, @Nullable Document mapping, @Nullable AliasActions aliasActions, @Nullable 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(@Nullable Settings settings, @Nullable Document mapping, @Nullable AliasActions aliasActions, @Nullable Boolean allowAutoCreate) Creates an instance of aComponentTemplateRequestDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable AliasActionsReturns the value of thealiasActionsrecord component.@Nullable BooleanReturns the value of theallowAutoCreaterecord component.builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Documentmapping()Returns the value of themappingrecord component.@Nullable Settingssettings()Returns the value of thesettingsrecord component.final StringtoString()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 aComponentTemplateRequestDatarecord class.- Parameters:
settings- the value for thesettingsrecord componentmapping- the value for themappingrecord componentaliasActions- the value for thealiasActionsrecord componentallowAutoCreate- the value for theallowAutoCreaterecord 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). -
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
mapping
Returns the value of themappingrecord component.- Returns:
- the value of the
mappingrecord component
-
aliasActions
Returns the value of thealiasActionsrecord component.- Returns:
- the value of the
aliasActionsrecord component
-
allowAutoCreate
Returns the value of theallowAutoCreaterecord component.- Returns:
- the value of the
allowAutoCreaterecord component
-