Class AllocateAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AllocateAction.Builder>
co.elastic.clients.elasticsearch.ilm.AllocateAction.Builder
- All Implemented Interfaces:
WithJson<AllocateAction.Builder>
,ObjectBuilder<AllocateAction>
- Enclosing class:
- AllocateAction
public static class AllocateAction.Builder
extends WithJsonObjectBuilderBase<AllocateAction.Builder>
implements ObjectBuilder<AllocateAction>
Builder for
AllocateAction
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAllocateAction
.final AllocateAction.Builder
API name:exclude
final AllocateAction.Builder
API name:exclude
final AllocateAction.Builder
API name:include
final AllocateAction.Builder
API name:include
final AllocateAction.Builder
numberOfReplicas
(Integer value) API name:number_of_replicas
final AllocateAction.Builder
API name:require
final AllocateAction.Builder
API name:require
protected AllocateAction.Builder
self()
final AllocateAction.Builder
totalShardsPerNode
(Integer value) API name:total_shards_per_node
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
-
numberOfReplicas
API name:number_of_replicas
-
totalShardsPerNode
API name:total_shards_per_node
-
include
API name:include
Adds all entries of
map
toinclude
. -
include
API name:include
Adds an entry to
include
. -
exclude
API name:exclude
Adds all entries of
map
toexclude
. -
exclude
API name:exclude
Adds an entry to
exclude
. -
require
API name:require
Adds all entries of
map
torequire
. -
require
API name:require
Adds an entry to
require
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AllocateAction.Builder>
-
build
Builds aAllocateAction
.- Specified by:
build
in interfaceObjectBuilder<AllocateAction>
- Throws:
NullPointerException
- if some of the required fields are null.
-