Class NodeAttributes
- java.lang.Object
-
- org.opensearch.client.opensearch._types.NodeAttributes
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class NodeAttributes extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeAttributes.BuilderBuilder forNodeAttributes.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NodeAttributes>_DESERIALIZERJson deserializer forNodeAttributes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>attributes()Required - Lists node attributes.java.lang.StringephemeralId()Required - The ephemeral ID of the node.java.lang.Stringid()The unique identifier of the node.java.lang.Stringname()Required - The unique identifier of the node.static NodeAttributesof(java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)java.util.List<NodeRole>roles()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 voidsetupNodeAttributesDeserializer(ObjectDeserializer<NodeAttributes.Builder> op)java.lang.StringtransportAddress()Required - The host and port where transport HTTP connections are accepted.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<NodeAttributes> _DESERIALIZER
Json deserializer forNodeAttributes
-
-
Method Detail
-
of
public static NodeAttributes of(java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)
-
attributes
public final java.util.Map<java.lang.String,java.lang.String> attributes()
Required - Lists node attributes.API name:
attributes
-
ephemeralId
public final java.lang.String ephemeralId()
Required - The ephemeral ID of the node.API name:
ephemeral_id
-
id
@Nullable public final java.lang.String id()
The unique identifier of the node.API name:
id
-
name
public final java.lang.String name()
Required - The unique identifier of the node.API name:
name
-
transportAddress
public final java.lang.String transportAddress()
Required - The host and port where transport HTTP connections are accepted.API name:
transport_address
-
roles
public final java.util.List<NodeRole> roles()
API name:roles
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupNodeAttributesDeserializer
protected static void setupNodeAttributesDeserializer(ObjectDeserializer<NodeAttributes.Builder> op)
-
-