Class NodeAttributes.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.NodeAttributes.Builder
-
- All Implemented Interfaces:
ObjectBuilder<NodeAttributes>
- Enclosing class:
- NodeAttributes
public static class NodeAttributes.Builder extends ObjectBuilderBase implements ObjectBuilder<NodeAttributes>
Builder forNodeAttributes.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeAttributes.Builderattributes(java.lang.String key, java.lang.String value)Required - Lists node attributes.NodeAttributes.Builderattributes(java.util.Map<java.lang.String,java.lang.String> map)Required - Lists node attributes.NodeAttributesbuild()Builds aNodeAttributes.NodeAttributes.BuilderephemeralId(java.lang.String value)Required - The ephemeral ID of the node.NodeAttributes.Builderid(java.lang.String value)The unique identifier of the node.NodeAttributes.Buildername(java.lang.String value)Required - The unique identifier of the node.NodeAttributes.Builderroles(java.util.List<NodeRole> list)API name:rolesNodeAttributes.Builderroles(NodeRole value, NodeRole... values)API name:rolesNodeAttributes.BuildertransportAddress(java.lang.String value)Required - The host and port where transport HTTP connections are accepted.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
attributes
public final NodeAttributes.Builder attributes(java.util.Map<java.lang.String,java.lang.String> map)
Required - Lists node attributes.API name:
attributesAdds all entries of
maptoattributes.
-
attributes
public final NodeAttributes.Builder attributes(java.lang.String key, java.lang.String value)
Required - Lists node attributes.API name:
attributesAdds an entry to
attributes.
-
ephemeralId
public final NodeAttributes.Builder ephemeralId(java.lang.String value)
Required - The ephemeral ID of the node.API name:
ephemeral_id
-
id
public final NodeAttributes.Builder id(@Nullable java.lang.String value)
The unique identifier of the node.API name:
id
-
name
public final NodeAttributes.Builder name(java.lang.String value)
Required - The unique identifier of the node.API name:
name
-
transportAddress
public final NodeAttributes.Builder transportAddress(java.lang.String value)
Required - The host and port where transport HTTP connections are accepted.API name:
transport_address
-
roles
public final NodeAttributes.Builder roles(java.util.List<NodeRole> list)
API name:rolesAdds all elements of
listtoroles.
-
roles
public final NodeAttributes.Builder roles(NodeRole value, NodeRole... values)
API name:rolesAdds one or more values to
roles.
-
build
public NodeAttributes build()
Builds aNodeAttributes.- Specified by:
buildin interfaceObjectBuilder<NodeAttributes>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-