Class SnapshotsRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder<SnapshotsRequest.Builder>
-
- org.opensearch.client.opensearch.cat.SnapshotsRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder
- Enclosing class:
- SnapshotsRequest
public static class SnapshotsRequest.Builder extends CatRequestBase.CatRequestBaseBuilder<SnapshotsRequest.Builder>
Builder forSnapshotsRequest.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder
headers, sort
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotsRequestbuild()Builds aSnapshotsRequest.SnapshotsRequest.BuilderignoreUnavailable(java.lang.Boolean value)Set to true to ignore unavailable snapshotsSnapshotsRequest.Builderrepository(java.lang.String value, java.lang.String... values)Name of repository from which to fetch the snapshot informationSnapshotsRequest.Builderrepository(java.util.List<java.lang.String> list)Name of repository from which to fetch the snapshot informationprotected SnapshotsRequest.Builderself()-
Methods inherited from class org.opensearch.client.opensearch.cat.CatRequestBase.CatRequestBaseBuilder
headers, sort
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
ignoreUnavailable
public final SnapshotsRequest.Builder ignoreUnavailable(@Nullable java.lang.Boolean value)
Set to true to ignore unavailable snapshotsAPI name:
ignore_unavailable
-
repository
public final SnapshotsRequest.Builder repository(java.util.List<java.lang.String> list)
Name of repository from which to fetch the snapshot informationAPI name:
repositoryAdds all elements of
listtorepository.
-
repository
public final SnapshotsRequest.Builder repository(java.lang.String value, java.lang.String... values)
Name of repository from which to fetch the snapshot informationAPI name:
repositoryAdds one or more values to
repository.
-
build
public SnapshotsRequest build()
Builds aSnapshotsRequest.- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
self
protected SnapshotsRequest.Builder self()
- Specified by:
selfin classCatRequestBase.CatRequestBaseBuilder<SnapshotsRequest.Builder>
-
-