Class GetStateResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingestion.GetStateResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GetStateResponse.Builder,,GetStateResponse> MutableBuilder<GetStateResponse.Builder,,GetStateResponse> ObjectBuilder<GetStateResponse>
- Enclosing class:
GetStateResponse
public static class GetStateResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GetStateResponse.Builder,GetStateResponse>
Builder for
GetStateResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetStateResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GetStateResponse.BuilderingestionState(String key, List<ShardIngestionState> value) Ingestion state for a given index and its shards.final GetStateResponse.BuilderIngestion state for a given index and its shards.final GetStateResponse.BuildernextPageToken(String value) Specifies the next page token.final GetStateResponse.BuilderAPI name:_shardsfinal GetStateResponse.Buildershards(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<GetStateResponse.Builder,GetStateResponse> - Returns:
- a new builder instance.
-
ingestionState
@Nonnull public final GetStateResponse.Builder ingestionState(Map<String, List<ShardIngestionState>> map) Ingestion state for a given index and its shards.API name:
ingestion_stateAdds all elements of
maptoingestionState. -
ingestionState
@Nonnull public final GetStateResponse.Builder ingestionState(String key, List<ShardIngestionState> value) Ingestion state for a given index and its shards.API name:
ingestion_stateAdds an entry to
ingestionState. -
nextPageToken
Specifies the next page token. Pass this token in the request to retrieve contents of the next page.API name:
next_page_token -
shards
API name:_shards -
shards
@Nonnull public final GetStateResponse.Builder shards(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) API name:_shards -
build
Builds aGetStateResponse.- Specified by:
buildin interfaceObjectBuilder<GetStateResponse>- Throws:
NullPointerException- if some of the required fields are null.
-