Class PutAutoscalingPolicyRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.autoscaling.PutAutoscalingPolicyRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<PutAutoscalingPolicyRequest>
- Enclosing class:
- PutAutoscalingPolicyRequest
public static class PutAutoscalingPolicyRequest.Builder extends java.lang.Object implements ObjectBuilder<PutAutoscalingPolicyRequest>
Builder for
PutAutoscalingPolicyRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PutAutoscalingPolicyRequest
build()
Builds aPutAutoscalingPolicyRequest
.PutAutoscalingPolicyRequest.Builder
name(java.lang.String value)
Required - the name of the autoscaling policyPutAutoscalingPolicyRequest.Builder
policy(AutoscalingPolicy value)
Required - Request body.PutAutoscalingPolicyRequest.Builder
policy(java.util.function.Function<AutoscalingPolicy.Builder,ObjectBuilder<AutoscalingPolicy>> fn)
Required - Request body.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
-
name
Required - the name of the autoscaling policyAPI name:
name
-
policy
Required - Request body.API name:
_value_body
-
policy
public PutAutoscalingPolicyRequest.Builder policy(java.util.function.Function<AutoscalingPolicy.Builder,ObjectBuilder<AutoscalingPolicy>> fn)Required - Request body.API name:
_value_body
-
build
Builds aPutAutoscalingPolicyRequest
.- Specified by:
build
in interfaceObjectBuilder<PutAutoscalingPolicyRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-