Class NodeAttributes.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeAttributes.Builder>
co.elastic.clients.elasticsearch._types.NodeAttributes.Builder
- All Implemented Interfaces:
WithJson<NodeAttributes.Builder>
,ObjectBuilder<NodeAttributes>
- Enclosing class:
- NodeAttributes
public static class NodeAttributes.Builder
extends WithJsonObjectBuilderBase<NodeAttributes.Builder>
implements ObjectBuilder<NodeAttributes>
Builder for
NodeAttributes
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal NodeAttributes.Builder
attributes
(String key, String value) Required - Lists node attributes.final NodeAttributes.Builder
attributes
(Map<String, String> map) Required - Lists node attributes.build()
Builds aNodeAttributes
.final NodeAttributes.Builder
ephemeralId
(String value) Required - The ephemeral ID of the node.final NodeAttributes.Builder
externalId
(String value) API name:external_id
final NodeAttributes.Builder
The unique identifier of the node.final NodeAttributes.Builder
Required - The unique identifier of the node.final NodeAttributes.Builder
API name:roles
final NodeAttributes.Builder
API name:roles
protected NodeAttributes.Builder
self()
final NodeAttributes.Builder
transportAddress
(String value) Required - The host and port where transport HTTP connections are accepted.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Required - Lists node attributes.API name:
attributes
Adds all entries of
map
toattributes
. -
attributes
Required - Lists node attributes.API name:
attributes
Adds an entry to
attributes
. -
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
Adds all elements of
list
toroles
. -
roles
API name:roles
Adds one or more values to
roles
. -
externalId
API name:external_id
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<NodeAttributes.Builder>
-
build
Builds aNodeAttributes
.- Specified by:
build
in interfaceObjectBuilder<NodeAttributes>
- Throws:
NullPointerException
- if some of the required fields are null.
-