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.Builder
A comma-separated list of columns names to display.final SnapshotsRequest.Builder
A comma-separated list of columns names to display.final SnapshotsRequest.Builder
ignoreUnavailable
(Boolean value) Iftrue
, the response does not include information from unavailable snapshots.final SnapshotsRequest.Builder
masterTimeout
(Time value) Period to wait for a connection to the master node.final SnapshotsRequest.Builder
Period to wait for a connection to the master node.final SnapshotsRequest.Builder
repository
(String value, String... values) A comma-separated list of snapshot repositories used to limit the request.final SnapshotsRequest.Builder
repository
(List<String> list) A comma-separated list of snapshot repositories used to limit the request.final SnapshotsRequest.Builder
List of columns that determine how the table should be sorted.final SnapshotsRequest.Builder
List of columns that determine how the table should be sorted.protected SnapshotsRequest.Builder
self()
final SnapshotsRequest.Builder
Unit used to display time values.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:
h
Adds all elements of
list
toh
. -
h
A comma-separated list of columns names to display. It supports simple wildcards.API name:
h
Adds one or more 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._all
returns all repositories. If any repository fails during the request, Elasticsearch returns an error.API name:
repository
Adds all elements of
list
torepository
. -
repository
A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions._all
returns all repositories. If any repository fails during the request, Elasticsearch returns an error.API name:
repository
Adds 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:asc
or:desc
as a suffix to the column name.API name:
s
Adds all elements of
list
tos
. -
s
List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting:asc
or:desc
as a suffix to the column name.API name:
s
Adds one or more values to
s
. -
time
Unit used to display time values.API name:
time
-
self
- Specified by:
self
in classCatRequestBase.AbstractBuilder<SnapshotsRequest.Builder>
-
build
Builds aSnapshotsRequest
.- Specified by:
build
in interfaceObjectBuilder<SnapshotsRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-