Class ActionSnapshot.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.ActionSnapshot.Builder
- All Implemented Interfaces:
CopyableBuilder<ActionSnapshot.Builder,,ActionSnapshot> MutableBuilder<ActionSnapshot.Builder,,ActionSnapshot> ObjectBuilder<ActionSnapshot>
- Enclosing class:
ActionSnapshot
public static class ActionSnapshot.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ActionSnapshot.Builder,ActionSnapshot>
Builder for
ActionSnapshot.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aActionSnapshot.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ActionSnapshot.BuilderincludeGlobalState(Boolean value) Whether to include the global state in the snapshot.final ActionSnapshot.Builderrepository(String value) The repository to store the snapshot.final ActionSnapshot.BuilderThe name of the snapshot.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ActionSnapshot.Builder,ActionSnapshot> - Returns:
- a new builder instance.
-
includeGlobalState
Whether to include the global state in the snapshot.API name:
include_global_state -
repository
The repository to store the snapshot.API name:
repository -
snapshot
The name of the snapshot.API name:
snapshot -
build
Builds aActionSnapshot.- Specified by:
buildin interfaceObjectBuilder<ActionSnapshot>- Throws:
NullPointerException- if some of the required fields are null.
-