Class NodeAttributes.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.NodeAttributes.Builder
- All Implemented Interfaces:
ObjectBuilder<NodeAttributes>
- Enclosing class:
- NodeAttributes
public static class NodeAttributes.Builder extends java.lang.Object implements ObjectBuilder<NodeAttributes>
Builder for
NodeAttributes
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NodeAttributes.Builder
addRoles(NodeRole value)
Add a value toroles(List)
, creating the list if needed.NodeAttributes.Builder
attributes(java.util.Map<java.lang.String,java.lang.String> value)
Required - Lists node attributes.NodeAttributes
build()
Builds aNodeAttributes
.NodeAttributes.Builder
ephemeralId(java.lang.String value)
Required - The ephemeral ID of the node.NodeAttributes.Builder
id(java.lang.String value)
The unique identifier of the node.NodeAttributes.Builder
name(java.lang.String value)
Required - The unique identifier of the node.NodeAttributes.Builder
putAttributes(java.lang.String key, java.lang.String value)
Add a key/value toattributes(Map)
, creating the map if needed.NodeAttributes.Builder
roles(NodeRole... value)
API name:roles
NodeAttributes.Builder
roles(java.util.List<NodeRole> value)
API name:roles
NodeAttributes.Builder
transportAddress(java.lang.String value)
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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Required - Lists node attributes.API name:
attributes
-
putAttributes
Add a key/value toattributes(Map)
, creating the map if needed. -
ephemeralId
Required - The ephemeral ID of the node.API name:
ephemeral_id
-
id
The unique identifier of the node.API name:
id
-
name
Required - The unique identifier of the node.API name:
name
-
transportAddress
Required - The host and port where transport HTTP connections are accepted.API name:
transport_address
-
roles
API name:roles
-
roles
API name:roles
-
addRoles
Add a value toroles(List)
, creating the list if needed. -
build
Builds aNodeAttributes
.- Specified by:
build
in interfaceObjectBuilder<NodeAttributes>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-