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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal NodeAttributes.Builderattributes(String key, String value) Required - Lists node attributes.final NodeAttributes.Builderattributes(Map<String, String> map) Required - Lists node attributes.build()Builds aNodeAttributes.final NodeAttributes.BuilderephemeralId(String value) Required - The ephemeral ID of the node.final NodeAttributes.BuilderexternalId(String value) API name:external_idfinal NodeAttributes.BuilderThe unique identifier of the node.final NodeAttributes.BuilderRequired - The unique identifier of the node.final NodeAttributes.BuilderAPI name:rolesfinal NodeAttributes.BuilderAPI name:rolesprotected NodeAttributes.Builderself()final NodeAttributes.BuildertransportAddress(String value) Required - The host and port where transport HTTP connections are accepted.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
attributesAdds all entries of
maptoattributes. -
attributes
Required - Lists node attributes.API name:
attributesAdds 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:rolesAdds all elements of
listtoroles. -
roles
API name:rolesAdds one or more values to
roles. -
externalId
API name:external_id -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<NodeAttributes.Builder>
-
build
Builds aNodeAttributes.- Specified by:
buildin interfaceObjectBuilder<NodeAttributes>- Throws:
NullPointerException- if some of the required fields are null.
-