Module org.elasticsearch.server
Record Class UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndicesSettingsResult
java.lang.Object
java.lang.Record
org.elasticsearch.action.datastreams.UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndicesSettingsResult
- All Implemented Interfaces:
Writeable,ToXContent
- Enclosing class:
UpdateDataStreamSettingsAction.DataStreamSettingsResponse
public static record UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndicesSettingsResult(List<String> appliedToDataStreamOnly, List<String> appliedToDataStreamAndBackingIndices, List<UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndexSettingError> indexSettingErrors)
extends Record
implements ToXContent, Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionIndicesSettingsResult(List<String> appliedToDataStreamOnly, List<String> appliedToDataStreamAndBackingIndices, List<UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndexSettingError> indexSettingErrors) Creates an instance of aIndicesSettingsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedToDataStreamAndBackingIndicesrecord component.Returns the value of theappliedToDataStreamOnlyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexSettingErrorsrecord component.final StringtoString()Returns a string representation of this record class.toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Field Details
-
EMPTY
public static final UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndicesSettingsResult EMPTY
-
-
Constructor Details
-
IndicesSettingsResult
- Throws:
IOException
-
IndicesSettingsResult
public IndicesSettingsResult(List<String> appliedToDataStreamOnly, List<String> appliedToDataStreamAndBackingIndices, List<UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndexSettingError> indexSettingErrors) Creates an instance of aIndicesSettingsResultrecord class.- Parameters:
appliedToDataStreamOnly- the value for theappliedToDataStreamOnlyrecord componentappliedToDataStreamAndBackingIndices- the value for theappliedToDataStreamAndBackingIndicesrecord componentindexSettingErrors- the value for theindexSettingErrorsrecord component
-
-
Method Details
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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). -
appliedToDataStreamOnly
Returns the value of theappliedToDataStreamOnlyrecord component.- Returns:
- the value of the
appliedToDataStreamOnlyrecord component
-
appliedToDataStreamAndBackingIndices
Returns the value of theappliedToDataStreamAndBackingIndicesrecord component.- Returns:
- the value of the
appliedToDataStreamAndBackingIndicesrecord component
-
indexSettingErrors
public List<UpdateDataStreamSettingsAction.DataStreamSettingsResponse.IndexSettingError> indexSettingErrors()Returns the value of theindexSettingErrorsrecord component.- Returns:
- the value of the
indexSettingErrorsrecord component
-