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.Builderh(CatSnapshotsColumn value, CatSnapshotsColumn... values) A comma-separated list of columns names to display.final SnapshotsRequest.BuilderA comma-separated list of columns names to display.final SnapshotsRequest.BuilderA comma-separated list of columns names to display.final SnapshotsRequest.BuilderignoreUnavailable(Boolean value) Iftrue, the response does not include information from unavailable snapshots.final SnapshotsRequest.BuildermasterTimeout(Time value) Period to wait for a connection to the master node.final SnapshotsRequest.BuilderPeriod to wait for a connection to the master node.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.final SnapshotsRequest.BuilderList of columns that determine how the table should be sorted.final SnapshotsRequest.BuilderList of columns that determine how the table should be sorted.protected SnapshotsRequest.Builderself()final SnapshotsRequest.BuilderUnit used to display time values.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
-
h
A comma-separated list of columns names to display. It supports simple wildcards.API name:
hAdds all elements of
listtoh. -
h
A comma-separated list of columns names to display. It supports simple wildcards.API name:
hAdds one or more values to
h. -
h
A comma-separated list of columns names to display. It supports simple wildcards.API name:
hAdds one or more enum values to
h. -
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout -
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout -
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. -
s
List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting:ascor:descas a suffix to the column name.API name:
sAdds all elements of
listtos. -
s
List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting:ascor:descas a suffix to the column name.API name:
sAdds one or more values to
s. -
time
Unit used to display time values.API name:
time -
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.
-