Class ExistsComponentTemplateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.ExistsComponentTemplateRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<ExistsComponentTemplateRequest>
- Enclosing class:
- ExistsComponentTemplateRequest
public static class ExistsComponentTemplateRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<ExistsComponentTemplateRequest>
Builder for
ExistsComponentTemplateRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ExistsComponentTemplateRequest
build()
Builds aExistsComponentTemplateRequest
.ExistsComponentTemplateRequest.Builder
local(java.lang.Boolean value)
If true, the request retrieves information from the local node only.ExistsComponentTemplateRequest.Builder
masterTimeout(Time value)
Period to wait for a connection to the master node.ExistsComponentTemplateRequest.Builder
masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a connection to the master node.ExistsComponentTemplateRequest.Builder
name(java.lang.String value, java.lang.String... values)
Required - Comma-separated list of component template names used to limit the request.ExistsComponentTemplateRequest.Builder
name(java.util.List<java.lang.String> list)
Required - Comma-separated list of component template names used to limit the request.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
local
If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.API name:
local
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
masterTimeout
public final ExistsComponentTemplateRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
name
Required - Comma-separated list of component template names used to limit the request. Wildcard (*) expressions are supported.API name:
name
Adds all elements of
list
toname
. -
name
public final ExistsComponentTemplateRequest.Builder name(java.lang.String value, java.lang.String... values)Required - Comma-separated list of component template names used to limit the request. Wildcard (*) expressions are supported.API name:
name
Adds one or more values to
name
. -
build
Builds aExistsComponentTemplateRequest
.- Specified by:
build
in interfaceObjectBuilder<ExistsComponentTemplateRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-