Class RolloverConditions.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.rollover.RolloverConditions.Builder
- All Implemented Interfaces:
CopyableBuilder<RolloverConditions.Builder,,RolloverConditions> MutableBuilder<RolloverConditions.Builder,,RolloverConditions> ObjectBuilder<RolloverConditions>
- Enclosing class:
RolloverConditions
public static class RolloverConditions.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RolloverConditions.Builder,RolloverConditions>
Builder for
RolloverConditions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRolloverConditions.copy()Create a new builderCopyableBuilderthat is a copy of this one.The maximum age of the index before rollover.The maximum age of the index before rollover.maxAgeMillis(Long value) The maximum age in milliseconds of the index before rollover.The maximum number of documents in the index before rollover.maxPrimaryShardDocs(Long value) The maximum number of documents in any primary shard before rollover.maxPrimaryShardSize(String value) The maximum size of any primary shard in the index before rollover.maxPrimaryShardSizeBytes(Long value) The maximum size in bytes of any primary shard in the index before rollover.The maximum size of the index before rollover.maxSizeBytes(Long value) The maximum size in bytes of the index before rollover.The minimum age of the index before rollover.The minimum age of the index before rollover.The minimum number of documents in the index before rollover.minPrimaryShardDocs(Long value) The minimum number of documents in any primary shard before rollover.minPrimaryShardSize(String value) The minimum size of any primary shard in the index before rollover.minPrimaryShardSizeBytes(Long value) The minimum size in bytes of any primary shard in the index before rollover.The minimum size of the index before rollover.minSizeBytes(Long value) The minimum size in bytes of the index before 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<RolloverConditions.Builder,RolloverConditions> - Returns:
- a new builder instance.
-
maxAge
The maximum age of the index before rollover.API name:
max_age -
maxAge
@Nonnull public final RolloverConditions.Builder maxAge(Function<Time.Builder, ObjectBuilder<Time>> fn) The maximum age of the index before rollover.API name:
max_age -
maxAgeMillis
The maximum age in milliseconds of the index before rollover.API name:
max_age_millis -
maxDocs
The maximum number of documents in the index before rollover.API name:
max_docs -
maxPrimaryShardDocs
The maximum number of documents in any primary shard before rollover.API name:
max_primary_shard_docs -
maxPrimaryShardSize
The maximum size of any primary shard in the index before rollover.API name:
max_primary_shard_size -
maxPrimaryShardSizeBytes
The maximum size in bytes of any primary shard in the index before rollover.API name:
max_primary_shard_size_bytes -
maxSize
The maximum size of the index before rollover.API name:
max_size -
maxSizeBytes
The maximum size in bytes of the index before rollover.API name:
max_size_bytes -
minAge
The minimum age of the index before rollover.API name:
min_age -
minAge
@Nonnull public final RolloverConditions.Builder minAge(Function<Time.Builder, ObjectBuilder<Time>> fn) The minimum age of the index before rollover.API name:
min_age -
minDocs
The minimum number of documents in the index before rollover.API name:
min_docs -
minPrimaryShardDocs
The minimum number of documents in any primary shard before rollover.API name:
min_primary_shard_docs -
minPrimaryShardSize
The minimum size of any primary shard in the index before rollover.API name:
min_primary_shard_size -
minPrimaryShardSizeBytes
The minimum size in bytes of any primary shard in the index before rollover.API name:
min_primary_shard_size_bytes -
minSize
The minimum size of the index before rollover.API name:
min_size -
minSizeBytes
The minimum size in bytes of the index before rollover.API name:
min_size_bytes -
build
Builds aRolloverConditions.- Specified by:
buildin interfaceObjectBuilder<RolloverConditions>- Throws:
NullPointerException- if some of the required fields are null.
-