Module org.elasticsearch.server
Record Class GetDataStreamAction.Response.IndexProperties
java.lang.Object
java.lang.Record
org.elasticsearch.action.datastreams.GetDataStreamAction.Response.IndexProperties
- All Implemented Interfaces:
Writeable
- Enclosing class:
GetDataStreamAction.Response
public static record GetDataStreamAction.Response.IndexProperties(boolean preferIlm, String ilmPolicyName, GetDataStreamAction.Response.ManagedBy managedBy)
extends Record
implements Writeable
Encapsulates the configured properties we want to display for each backing index.
They'll usually be settings values, but could also be additional properties derived from settings.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionIndexProperties(boolean preferIlm, String ilmPolicyName, GetDataStreamAction.Response.ManagedBy managedBy) Creates an instance of aIndexPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theilmPolicyNamerecord component.Returns the value of themanagedByrecord component.booleanReturns the value of thepreferIlmrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
IndexProperties
- Throws:
IOException
-
IndexProperties
public IndexProperties(boolean preferIlm, @Nullable String ilmPolicyName, GetDataStreamAction.Response.ManagedBy managedBy) Creates an instance of aIndexPropertiesrecord class.- Parameters:
preferIlm- the value for thepreferIlmrecord componentilmPolicyName- the value for theilmPolicyNamerecord componentmanagedBy- the value for themanagedByrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
preferIlm
public boolean preferIlm()Returns the value of thepreferIlmrecord component.- Returns:
- the value of the
preferIlmrecord component
-
ilmPolicyName
Returns the value of theilmPolicyNamerecord component.- Returns:
- the value of the
ilmPolicyNamerecord component
-
managedBy
Returns the value of themanagedByrecord component.- Returns:
- the value of the
managedByrecord component
-