Class IndexSettingsLifecycle.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexSettingsLifecycle.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexSettingsLifecycle.Builder,,IndexSettingsLifecycle> MutableBuilder<IndexSettingsLifecycle.Builder,,IndexSettingsLifecycle> ObjectBuilder<IndexSettingsLifecycle>
- Enclosing class:
IndexSettingsLifecycle
public static class IndexSettingsLifecycle.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexSettingsLifecycle.Builder,IndexSettingsLifecycle>
Builder for
IndexSettingsLifecycle.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexSettingsLifecycle.copy()Create a new builderCopyableBuilderthat is a copy of this one.indexingComplete(Boolean value) API name:indexing_completeRequired - API name:nameoriginationDate(Long value) The timestamp used to calculate the index age for its phase transitions.parseOriginationDate(Boolean value) Whentrue, parses the origination date from the index name.rolloverAlias(String value) The index alias to update when the index rolls over.API name:stepstep(IndexSettingsLifecycleStep value) API name:stepMethods 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<IndexSettingsLifecycle.Builder,IndexSettingsLifecycle> - Returns:
- a new builder instance.
-
indexingComplete
API name:indexing_complete -
name
Required - API name:name -
originationDate
The timestamp used to calculate the index age for its phase transitions. Use this setting if you create a new index that contains old data and want to use the original creation date to calculate the index age. Specified as a Unix epoch value in milliseconds.API name:
origination_date -
parseOriginationDate
Whentrue, parses the origination date from the index name. This origination date is used to calculate the index age for its phase transitions. The index name must match the pattern^.*-{date_format}-\\d+, where thedate_formatisyyyy.MM.ddand the trailing digits are optional. An index that was rolled over would normally match the full format, for examplelogs-2016.10.31-000002). If the index name doesn't match the pattern, index creation fails.API name:
parse_origination_date -
rolloverAlias
The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more information about rolling indexes, see Rollover.API name:
rollover_alias -
step
@Nonnull public final IndexSettingsLifecycle.Builder step(@Nullable IndexSettingsLifecycleStep value) API name:step -
step
@Nonnull public final IndexSettingsLifecycle.Builder step(Function<IndexSettingsLifecycleStep.Builder, ObjectBuilder<IndexSettingsLifecycleStep>> fn) API name:step -
build
Builds aIndexSettingsLifecycle.- Specified by:
buildin interfaceObjectBuilder<IndexSettingsLifecycle>- Throws:
NullPointerException- if some of the required fields are null.
-