Class GetRepositoryRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetRepositoryRequest.Builder>
co.elastic.clients.elasticsearch.snapshot.GetRepositoryRequest.Builder
- All Implemented Interfaces:
WithJson<GetRepositoryRequest.Builder>
,ObjectBuilder<GetRepositoryRequest>
- Enclosing class:
- GetRepositoryRequest
public static class GetRepositoryRequest.Builder
extends RequestBase.AbstractBuilder<GetRepositoryRequest.Builder>
implements ObjectBuilder<GetRepositoryRequest>
Builder for
GetRepositoryRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetRepositoryRequest
.Iftrue
, the request gets information from the local node only.masterTimeout
(Time value) The period to wait for the master node.The period to wait for the master node.A comma-separated list of snapshot repository names used to limit the request.A comma-separated list of snapshot repository names used to limit the request.protected GetRepositoryRequest.Builder
self()
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
-
local
Iftrue
, the request gets information from the local node only. Iffalse
, the request gets information from the master node.API name:
local
-
masterTimeout
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1
.API name:
master_timeout
-
masterTimeout
public final GetRepositoryRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1
.API name:
master_timeout
-
name
A comma-separated list of snapshot repository names used to limit the request. Wildcard (*
) expressions are supported including combining wildcards with exclude patterns starting with-
.To get information about all snapshot repositories registered in the cluster, omit this parameter or use
*
or_all
.API name:
repository
Adds all elements of
list
toname
. -
name
A comma-separated list of snapshot repository names used to limit the request. Wildcard (*
) expressions are supported including combining wildcards with exclude patterns starting with-
.To get information about all snapshot repositories registered in the cluster, omit this parameter or use
*
or_all
.API name:
repository
Adds one or more values to
name
. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetRepositoryRequest.Builder>
-
build
Builds aGetRepositoryRequest
.- Specified by:
build
in interfaceObjectBuilder<GetRepositoryRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-