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 aIndexProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theilmPolicyName
record component.Returns the value of themanagedBy
record component.boolean
Returns the value of thepreferIlm
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(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 aIndexProperties
record class.- Parameters:
preferIlm
- the value for thepreferIlm
record componentilmPolicyName
- the value for theilmPolicyName
record componentmanagedBy
- the value for themanagedBy
record component
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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 thepreferIlm
record component.- Returns:
- the value of the
preferIlm
record component
-
ilmPolicyName
Returns the value of theilmPolicyName
record component.- Returns:
- the value of the
ilmPolicyName
record component
-
managedBy
Returns the value of themanagedBy
record component.- Returns:
- the value of the
managedBy
record component
-