Class NodeAttributes
java.lang.Object
co.elastic.clients.elasticsearch._types.NodeAttributes
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class NodeAttributes extends java.lang.Object implements JsonpSerializable
-
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
-
Constructor Summary
Constructors Constructor Description NodeAttributes(NodeAttributes.Builder builder)
NodeAttributes(java.util.function.Function<NodeAttributes.Builder,NodeAttributes.Builder> fn)
-
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.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(DelegatingDeserializer<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
-
-
Constructor Details
-
NodeAttributes
-
NodeAttributes
public NodeAttributes(java.util.function.Function<NodeAttributes.Builder,NodeAttributes.Builder> fn)
-
-
Method Details
-
attributes
public java.util.Map<java.lang.String,java.lang.String> attributes()Required - Lists node attributes.API name:
attributes
-
ephemeralId
public java.lang.String ephemeralId()Required - The ephemeral ID of the node.API name:
ephemeral_id
-
id
@Nullable public java.lang.String id()The unique identifier of the node.API name:
id
-
name
public java.lang.String name()Required - The unique identifier of the node.API name:
name
-
transportAddress
public 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(DelegatingDeserializer<NodeAttributes.Builder> op)
-