Class SearchShardsNodeAttributes.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SearchShardsNodeAttributes.Builder>
co.elastic.clients.elasticsearch.core.search_shards.SearchShardsNodeAttributes.Builder
- All Implemented Interfaces:
WithJson<SearchShardsNodeAttributes.Builder>,ObjectBuilder<SearchShardsNodeAttributes>
- Enclosing class:
- SearchShardsNodeAttributes
public static class SearchShardsNodeAttributes.Builder
extends WithJsonObjectBuilderBase<SearchShardsNodeAttributes.Builder>
implements ObjectBuilder<SearchShardsNodeAttributes>
Builder for
SearchShardsNodeAttributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(String key, String value) Required - Lists node attributes.attributes(Map<String, String> map) Required - Lists node attributes.build()Builds aSearchShardsNodeAttributes.ephemeralId(String value) Required - The ephemeral ID of the node.externalId(String value) Required - API name:external_idmaxIndexVersion(int value) Required - API name:max_index_versionminIndexVersion(int value) Required - API name:min_index_versionRequired - The human-readable identifier of the node.Required - API name:rolesRequired - API name:rolesprotected SearchShardsNodeAttributes.Builderself()transportAddress(String value) Required - The host and port where transport HTTP connections are accepted.Required - API name:versionMethods 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
-
name
Required - The human-readable identifier of the node.API name:
name -
ephemeralId
Required - The ephemeral ID of the node.API name:
ephemeral_id -
transportAddress
Required - The host and port where transport HTTP connections are accepted.API name:
transport_address -
externalId
Required - API name:external_id -
attributes
Required - Lists node attributes.API name:
attributesAdds all entries of
maptoattributes. -
attributes
Required - Lists node attributes.API name:
attributesAdds an entry to
attributes. -
roles
Required - API name:rolesAdds all elements of
listtoroles. -
roles
Required - API name:rolesAdds one or more values to
roles. -
version
Required - API name:version -
minIndexVersion
Required - API name:min_index_version -
maxIndexVersion
Required - API name:max_index_version -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SearchShardsNodeAttributes.Builder>
-
build
Builds aSearchShardsNodeAttributes.- Specified by:
buildin interfaceObjectBuilder<SearchShardsNodeAttributes>- Throws:
NullPointerException- if some of the required fields are null.
-