Class GetAutoscalingPolicyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetAutoscalingPolicyRequest.Builder>
co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingPolicyRequest.Builder
- All Implemented Interfaces:
WithJson<GetAutoscalingPolicyRequest.Builder>
,ObjectBuilder<GetAutoscalingPolicyRequest>
- Enclosing class:
- GetAutoscalingPolicyRequest
public static class GetAutoscalingPolicyRequest.Builder
extends RequestBase.AbstractBuilder<GetAutoscalingPolicyRequest.Builder>
implements ObjectBuilder<GetAutoscalingPolicyRequest>
Builder for
GetAutoscalingPolicyRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetAutoscalingPolicyRequest
.masterTimeout
(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Required - the name of the autoscaling policyprotected GetAutoscalingPolicyRequest.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
-
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 GetAutoscalingPolicyRequest.Builder masterTimeout(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 - the name of the autoscaling policyAPI name:
name
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetAutoscalingPolicyRequest.Builder>
-
build
Builds aGetAutoscalingPolicyRequest
.- Specified by:
build
in interfaceObjectBuilder<GetAutoscalingPolicyRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-