Class SnapshotsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch.cat.CatRequestBase.AbstractBuilder<SnapshotsRequest.Builder>
co.elastic.clients.elasticsearch.cat.SnapshotsRequest.Builder
- All Implemented Interfaces:
WithJson<SnapshotsRequest.Builder>,ObjectBuilder<SnapshotsRequest>
- Enclosing class:
- SnapshotsRequest
public static class SnapshotsRequest.Builder
extends CatRequestBase.AbstractBuilder<SnapshotsRequest.Builder>
implements ObjectBuilder<SnapshotsRequest>
Builder for
SnapshotsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotsRequest.final SnapshotsRequest.BuilderignoreUnavailable(Boolean value) Iftrue, the response does not include information from unavailable snapshots.final SnapshotsRequest.Builderrepository(String value, String... values) A comma-separated list of snapshot repositories used to limit the request.final SnapshotsRequest.Builderrepository(List<String> list) A comma-separated list of snapshot repositories used to limit the request.protected SnapshotsRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repository
A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions._allreturns all repositories. If any repository fails during the request, Elasticsearch returns an error.API name:
repositoryAdds all elements of
listtorepository. -
repository
A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions._allreturns all repositories. If any repository fails during the request, Elasticsearch returns an error.API name:
repositoryAdds one or more values to
repository. -
self
- Specified by:
selfin classCatRequestBase.AbstractBuilder<SnapshotsRequest.Builder>
-
build
Builds aSnapshotsRequest.- Specified by:
buildin interfaceObjectBuilder<SnapshotsRequest>- Throws:
NullPointerException- if some of the required fields are null.