Class NodeAttributes
java.lang.Object
co.elastic.clients.elasticsearch._types.NodeAttributes
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class NodeAttributes extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeAttributes.Builder
Builder forNodeAttributes
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NodeAttributes>
_DESERIALIZER
Json deserializer forNodeAttributes
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
attributes()
Required - Lists node attributes.java.lang.String
ephemeralId()
Required - The ephemeral ID of the node.java.lang.String
id()
The unique identifier of the node.java.lang.String
name()
Required - The unique identifier of the node.static NodeAttributes
of(java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)
java.util.List<NodeRole>
roles()
API name:roles
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupNodeAttributesDeserializer(ObjectDeserializer<NodeAttributes.Builder> op)
java.lang.String
transportAddress()
Required - The host and port where transport HTTP connections are accepted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forNodeAttributes
-
-
Method Details
-
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
API name:roles
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupNodeAttributesDeserializer
protected static void setupNodeAttributesDeserializer(ObjectDeserializer<NodeAttributes.Builder> op)
-