Class RetentionLease.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.RetentionLease.Builder
- All Implemented Interfaces:
CopyableBuilder<RetentionLease.Builder,,RetentionLease> MutableBuilder<RetentionLease.Builder,,RetentionLease> ObjectBuilder<RetentionLease>
- Enclosing class:
RetentionLease
public static class RetentionLease.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RetentionLease.Builder,RetentionLease>
Builder for
RetentionLease.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRetentionLease.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RetentionLease.BuilderRequired - API name:periodfinal RetentionLease.BuilderRequired - API name:periodMethods 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<RetentionLease.Builder,RetentionLease> - Returns:
- a new builder instance.
-
period
Required - API name:period -
period
Required - API name:period -
build
Builds aRetentionLease.- Specified by:
buildin interfaceObjectBuilder<RetentionLease>- Throws:
NullPointerException- if some of the required fields are null.
-