Class NodeAttributes
java.lang.Object
org.opensearch.client.opensearch._types.NodeAttributes
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<NodeAttributes.Builder,NodeAttributes>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class NodeAttributes
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<NodeAttributes.Builder,NodeAttributes>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<NodeAttributes> Json deserializer forNodeAttributes -
Method Summary
Modifier and TypeMethodDescriptionRequired - A list of node attributes.static NodeAttributes.Builderbuilder()final StringRequired - API name:ephemeral_idbooleanfinal StringThe roles of the node.inthashCode()final Stringid()API name:idfinal Stringname()Required - API name:namestatic NodeAttributesroles()API name:rolesvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final StringRequired - API name:transport_addressMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forNodeAttributes
-
-
Method Details
-
of
-
attributes
Required - A list of node attributes.API name:
attributes -
ephemeralId
Required - API name:ephemeral_id -
externalId
The roles of the node.API name:
external_id -
id
API name:id -
name
Required - API name:name -
roles
API name:roles -
transportAddress
Required - API name:transport_address -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<NodeAttributes.Builder,NodeAttributes> - Returns:
- a new builder instance.
-
builder
-
setupNodeAttributesDeserializer
protected static void setupNodeAttributesDeserializer(ObjectDeserializer<NodeAttributes.Builder> op) -
hashCode
public int hashCode() -
equals
-