Class CreatePitResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.CreatePitResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<CreatePitResponse.Builder,,CreatePitResponse> MutableBuilder<CreatePitResponse.Builder,,CreatePitResponse> ObjectBuilder<CreatePitResponse>
- Enclosing class:
CreatePitResponse
public static class CreatePitResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CreatePitResponse.Builder,CreatePitResponse>
Builder for
CreatePitResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCreatePitResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.creationTime(Long value) API name:creation_timeAPI name:pit_idAPI name:_shardsshards(ShardStatistics value) API name:_shardsMethods 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<CreatePitResponse.Builder,CreatePitResponse> - Returns:
- a new builder instance.
-
creationTime
API name:creation_time -
pitId
API name:pit_id -
shards
API name:_shards -
shards
@Nonnull public final CreatePitResponse.Builder shards(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) API name:_shards -
build
Builds aCreatePitResponse.- Specified by:
buildin interfaceObjectBuilder<CreatePitResponse>- Throws:
NullPointerException- if some of the required fields are null.
-