Module org.elasticsearch.server
Record Class UpdateSettingsClusterStateUpdateRequest
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsClusterStateUpdateRequest
public record UpdateSettingsClusterStateUpdateRequest(ProjectId projectId, TimeValue masterNodeTimeout, TimeValue ackTimeout, Settings settings, UpdateSettingsClusterStateUpdateRequest.OnExisting onExisting, UpdateSettingsClusterStateUpdateRequest.OnStaticSetting onStaticSetting, Index[] indices)
extends Record
Cluster state update request that allows to update settings for some indices
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies the behaviour of an update-settings action on existing settings.static enumSpecifies the behaviour of an update-settings action which is trying to adjust a non-dynamic setting. -
Constructor Summary
ConstructorsConstructorDescriptionUpdateSettingsClusterStateUpdateRequest(ProjectId projectId, TimeValue masterNodeTimeout, TimeValue ackTimeout, Settings settings, UpdateSettingsClusterStateUpdateRequest.OnExisting onExisting, UpdateSettingsClusterStateUpdateRequest.OnStaticSetting onStaticSetting, Index... indices) Creates an instance of aUpdateSettingsClusterStateUpdateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theackTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Index[]indices()Returns the value of theindicesrecord component.Returns the value of themasterNodeTimeoutrecord component.Returns the value of theonExistingrecord component.Returns the value of theonStaticSettingrecord component.Returns the value of theprojectIdrecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateSettingsClusterStateUpdateRequest
public UpdateSettingsClusterStateUpdateRequest(ProjectId projectId, TimeValue masterNodeTimeout, TimeValue ackTimeout, Settings settings, UpdateSettingsClusterStateUpdateRequest.OnExisting onExisting, UpdateSettingsClusterStateUpdateRequest.OnStaticSetting onStaticSetting, Index... indices) Creates an instance of aUpdateSettingsClusterStateUpdateRequestrecord class.- Parameters:
projectId- the value for theprojectIdrecord componentmasterNodeTimeout- the value for themasterNodeTimeoutrecord componentackTimeout- the value for theackTimeoutrecord componentsettings- the value for thesettingsrecord componentonExisting- the value for theonExistingrecord componentonStaticSetting- the value for theonStaticSettingrecord componentindices- the value for theindicesrecord component
-
-
Method Details
-
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). -
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
masterNodeTimeout
Returns the value of themasterNodeTimeoutrecord component.- Returns:
- the value of the
masterNodeTimeoutrecord component
-
ackTimeout
Returns the value of theackTimeoutrecord component.- Returns:
- the value of the
ackTimeoutrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
onExisting
Returns the value of theonExistingrecord component.- Returns:
- the value of the
onExistingrecord component
-
onStaticSetting
Returns the value of theonStaticSettingrecord component.- Returns:
- the value of the
onStaticSettingrecord component
-
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord component
-