Class SegmentReplicationRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<SegmentReplicationRequest.Builder>
org.opensearch.client.opensearch.cat.CatRequestBase.AbstractBuilder<SegmentReplicationRequest.Builder>
org.opensearch.client.opensearch.cat.SegmentReplicationRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<SegmentReplicationRequest.Builder,,SegmentReplicationRequest> MutableBuilder<SegmentReplicationRequest.Builder,,SegmentReplicationRequest> ObjectBuilder<SegmentReplicationRequest>
- Enclosing class:
SegmentReplicationRequest
public static class SegmentReplicationRequest.Builder
extends CatRequestBase.AbstractBuilder<SegmentReplicationRequest.Builder>
implements CopyableBuilder<SegmentReplicationRequest.Builder,SegmentReplicationRequest>
Builder for
SegmentReplicationRequest.-
Field Summary
Fields inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.AbstractBuilder
headers, sort -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveOnly(Boolean value) Whentrue, the response only includes ongoing segment replication events.allowNoIndices(Boolean value) Whether to ignore the index if a wildcard index expression resolves to no concrete indexes.build()Builds aSegmentReplicationRequest.The units used to display byte values.completedOnly(Boolean value) Whentrue, the response only includes the last-completed segment replication events.copy()Create a new builderCopyableBuilderthat is a copy of this one.Whentrue, the response includes additional metrics for each stage of a segment replication event.expandWildcards(List<ExpandWildcard> list) Specifies the type of index that wildcard expressions can match.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Specifies the type of index that wildcard expressions can match.ignoreThrottled(Boolean value) Whether specified concrete, expanded, or aliased indexes should be ignored when throttled.ignoreUnavailable(Boolean value) Whether the specified concrete indexes should be ignored when missing or closed.A comma-separated list of data streams, indexes, and aliases used to limit the request.A comma-separated list of data streams, indexes, and aliases used to limit the request.protected SegmentReplicationRequest.Builderself()A comma-separated list of shards to display.A comma-separated list of shards to display.Specifies the time units, for example,5dor7h.The operation timeout.The operation timeout.Methods inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.AbstractBuilder
headers, headers, sort, sortMethods 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<SegmentReplicationRequest.Builder,SegmentReplicationRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SegmentReplicationRequest.Builder>
-
activeOnly
Whentrue, the response only includes ongoing segment replication events.API name:
active_only -
allowNoIndices
Whether to ignore the index if a wildcard index expression resolves to no concrete indexes. This includes the_allstring or when no indexes have been specified.API name:
allow_no_indices -
bytes
The units used to display byte values.API name:
bytes -
completedOnly
Whentrue, the response only includes the last-completed segment replication events.API name:
completed_only -
detailed
Whentrue, the response includes additional metrics for each stage of a segment replication event.API name:
detailed -
expandWildcards
Specifies the type of index that wildcard expressions can match. Supports comma-separated values.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
@Nonnull public final SegmentReplicationRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Specifies the type of index that wildcard expressions can match. Supports comma-separated values.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
ignoreThrottled
Whether specified concrete, expanded, or aliased indexes should be ignored when throttled.API name:
ignore_throttled -
index
A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indexes, omit this parameter or use*or_all.API name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indexes, omit this parameter or use*or_all.API name:
indexAdds one or more values to
index. -
shards
A comma-separated list of shards to display.API name:
shardsAdds all elements of
listtoshards. -
shards
A comma-separated list of shards to display.API name:
shardsAdds one or more values to
shards. -
time
Specifies the time units, for example,5dor7h. For more information, see Supported units.API name:
time -
timeout
The operation timeout.API name:
timeout -
timeout
@Nonnull public final SegmentReplicationRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The operation timeout.API name:
timeout -
build
Builds aSegmentReplicationRequest.- Specified by:
buildin interfaceObjectBuilder<SegmentReplicationRequest>- Throws:
NullPointerException- if some of the required fields are null.
-