Class UpgradeJobSnapshotResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.UpgradeJobSnapshotResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<UpgradeJobSnapshotResponse>
- Enclosing class:
- UpgradeJobSnapshotResponse
public static class UpgradeJobSnapshotResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<UpgradeJobSnapshotResponse>
Builder for
UpgradeJobSnapshotResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description UpgradeJobSnapshotResponse
build()
Builds aUpgradeJobSnapshotResponse
.UpgradeJobSnapshotResponse.Builder
completed(boolean value)
Required - When true, this means the task is complete.UpgradeJobSnapshotResponse.Builder
node(java.lang.String value)
Required - The ID of the assigned node for the upgrade task if it is still running.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
node
Required - The ID of the assigned node for the upgrade task if it is still running.API name:
node
-
completed
Required - When true, this means the task is complete. When false, it is still running.API name:
completed
-
build
Builds aUpgradeJobSnapshotResponse
.- Specified by:
build
in interfaceObjectBuilder<UpgradeJobSnapshotResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-