Class NodeAttributes.Builder
java.lang.Object
org.opensearch.client.opensearch._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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description NodeAttributes.BuilderaddRoles(jakarta.json.JsonValue value)Add a value toroles(List), creating the list if needed.NodeAttributes.Builderattributes(java.util.Map<java.lang.String,java.lang.String> value)Lists node attributes.NodeAttributesbuild()Builds aNodeAttributes.NodeAttributes.BuilderephemeralId(java.lang.String value)The ephemeral ID of the node.NodeAttributes.Builderid(java.lang.String value)The unique identifier of the node.NodeAttributes.Buildername(java.lang.String value)The unique identifier of the node.NodeAttributes.BuilderputAttributes(java.lang.String key, java.lang.String value)Add a key/value toattributes(Map), creating the map if needed.NodeAttributes.Builderroles(jakarta.json.JsonValue... value)API name:rolesNodeAttributes.Builderroles(java.util.List<jakarta.json.JsonValue> value)API name:rolesNodeAttributes.BuildertransportAddress(java.lang.String value)The host and port where transport HTTP connections are accepted.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Lists node attributes. API name:attributes -
putAttributes
Add a key/value toattributes(Map), creating the map if needed. -
ephemeralId
The ephemeral ID of the node. API name:ephemeral_id -
id
The unique identifier of the node. API name:id -
name
The unique identifier of the node. API name:name -
transportAddress
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:
buildin interfaceObjectBuilder<NodeAttributes>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-