Class NodeShutdownStatus.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeShutdownStatus.Builder>
co.elastic.clients.elasticsearch.shutdown.get_node.NodeShutdownStatus.Builder
- All Implemented Interfaces:
WithJson<NodeShutdownStatus.Builder>
,ObjectBuilder<NodeShutdownStatus>
- Enclosing class:
- NodeShutdownStatus
public static class NodeShutdownStatus.Builder
extends WithJsonObjectBuilderBase<NodeShutdownStatus.Builder>
implements ObjectBuilder<NodeShutdownStatus>
Builder for
NodeShutdownStatus
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aNodeShutdownStatus
.Required - API name:node_id
Required - API name:persistent_tasks
Required - API name:persistent_tasks
plugins
(PluginsStatus value) Required - API name:plugins
Required - API name:plugins
Required - API name:reason
protected NodeShutdownStatus.Builder
self()
Required - API name:shard_migration
Required - API name:shard_migration
shutdownStartedmillis
(long value) Required - API name:shutdown_startedmillis
status
(ShutdownStatus value) Required - API name:status
type
(ShutdownType value) Required - API name:type
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
-
nodeId
Required - API name:node_id
-
type
Required - API name:type
-
reason
Required - API name:reason
-
shutdownStartedmillis
Required - API name:shutdown_startedmillis
-
status
Required - API name:status
-
shardMigration
Required - API name:shard_migration
-
shardMigration
public final NodeShutdownStatus.Builder shardMigration(Function<ShardMigrationStatus.Builder, ObjectBuilder<ShardMigrationStatus>> fn) Required - API name:shard_migration
-
persistentTasks
Required - API name:persistent_tasks
-
persistentTasks
public final NodeShutdownStatus.Builder persistentTasks(Function<PersistentTaskStatus.Builder, ObjectBuilder<PersistentTaskStatus>> fn) Required - API name:persistent_tasks
-
plugins
Required - API name:plugins
-
plugins
public final NodeShutdownStatus.Builder plugins(Function<PluginsStatus.Builder, ObjectBuilder<PluginsStatus>> fn) Required - API name:plugins
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<NodeShutdownStatus.Builder>
-
build
Builds aNodeShutdownStatus
.- Specified by:
build
in interfaceObjectBuilder<NodeShutdownStatus>
- Throws:
NullPointerException
- if some of the required fields are null.
-