Class ActionRollover.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ism.ActionRollover.Builder
- All Implemented Interfaces:
CopyableBuilder<ActionRollover.Builder,,ActionRollover> MutableBuilder<ActionRollover.Builder,,ActionRollover> ObjectBuilder<ActionRollover>
- Enclosing class:
ActionRollover
public static class ActionRollover.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ActionRollover.Builder,ActionRollover>
Builder for
ActionRollover.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aActionRollover.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ActionRollover.BuilderWhether to copy the alias to the new index.final ActionRollover.BuilderminDocCount(Number value) The minimum document count to trigger rollover.final ActionRollover.BuilderminIndexAge(String value) The minimum index age to trigger rollover.final ActionRollover.BuilderminPrimaryShardSize(String value) The minimum primary shard size to trigger rollover.final ActionRollover.BuilderThe minimum size to trigger rollover.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<ActionRollover.Builder,ActionRollover> - Returns:
- a new builder instance.
-
copyAlias
Whether to copy the alias to the new index.API name:
copy_alias -
minDocCount
The minimum document count to trigger rollover.API name:
min_doc_count -
minIndexAge
The minimum index age to trigger rollover.API name:
min_index_age -
minPrimaryShardSize
The minimum primary shard size to trigger rollover.API name:
min_primary_shard_size -
minSize
The minimum size to trigger rollover.API name:
min_size -
build
Builds aActionRollover.- Specified by:
buildin interfaceObjectBuilder<ActionRollover>- Throws:
NullPointerException- if some of the required fields are null.
-