Class CreatePitRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<CreatePitRequest.Builder>
org.opensearch.client.opensearch.core.CreatePitRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<CreatePitRequest.Builder,,CreatePitRequest> MutableBuilder<CreatePitRequest.Builder,,CreatePitRequest> ObjectBuilder<CreatePitRequest>
- Enclosing class:
CreatePitRequest
public static class CreatePitRequest.Builder
extends RequestBase.AbstractBuilder<CreatePitRequest.Builder>
implements CopyableBuilder<CreatePitRequest.Builder,CreatePitRequest>
Builder for
CreatePitRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CreatePitRequest.BuilderallowPartialPitCreation(Boolean value) Allow if point in time can be created with partial failures.build()Builds aCreatePitRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CreatePitRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Whether to expand wildcard expression to concrete indexes that are open, closed or both.final CreatePitRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indexes that are open, closed or both.final CreatePitRequest.BuilderRequired - Comma-separated list of indexes; use_allor empty string to perform the operation on all indexes.final CreatePitRequest.BuilderRequired - Comma-separated list of indexes; use_allor empty string to perform the operation on all indexes.final CreatePitRequest.BuilderSpecify the keep alive for point in time.final CreatePitRequest.BuilderSpecify the keep alive for point in time.final CreatePitRequest.Builderpreference(String value) Specify the node or shard the operation should be performed on.final CreatePitRequest.BuilderComma-separated list of specific routing values.final CreatePitRequest.BuilderComma-separated list of specific routing values.protected CreatePitRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods 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<CreatePitRequest.Builder,CreatePitRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CreatePitRequest.Builder>
-
allowPartialPitCreation
Allow if point in time can be created with partial failures.API name:
allow_partial_pit_creation -
expandWildcards
Whether to expand wildcard expression to concrete indexes that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
@Nonnull public final CreatePitRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indexes that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
index
Required - Comma-separated list of indexes; use_allor empty string to perform the operation on all indexes.API name:
indexAdds all elements of
listtoindex. -
index
Required - Comma-separated list of indexes; use_allor empty string to perform the operation on all indexes.API name:
indexAdds one or more values to
index. -
keepAlive
Specify the keep alive for point in time.API name:
keep_alive -
keepAlive
@Nonnull public final CreatePitRequest.Builder keepAlive(Function<Time.Builder, ObjectBuilder<Time>> fn) Specify the keep alive for point in time.API name:
keep_alive -
preference
Specify the node or shard the operation should be performed on.API name:
preference -
routing
Comma-separated list of specific routing values.API name:
routingAdds all elements of
listtorouting. -
routing
Comma-separated list of specific routing values.API name:
routingAdds one or more values to
routing. -
build
Builds aCreatePitRequest.- Specified by:
buildin interfaceObjectBuilder<CreatePitRequest>- Throws:
NullPointerException- if some of the required fields are null.
-