Class PutAutoscalingPolicyRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.autoscaling.PutAutoscalingPolicyRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class PutAutoscalingPolicyRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPutAutoscalingPolicyRequest.BuilderBuilder forPutAutoscalingPolicyRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutAutoscalingPolicyRequest>_DESERIALIZERstatic Endpoint<PutAutoscalingPolicyRequest,PutAutoscalingPolicyResponse,ElasticsearchError>ENDPOINTEndpoint "autoscaling.put_autoscaling_policy". -
Constructor Summary
Constructors Constructor Description PutAutoscalingPolicyRequest(PutAutoscalingPolicyRequest.Builder builder)PutAutoscalingPolicyRequest(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,PutAutoscalingPolicyRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description protected static JsonpDeserializer<PutAutoscalingPolicyRequest>createPutAutoscalingPolicyRequestDeserializer()java.lang.Stringname()Required - the name of the autoscaling policyAutoscalingPolicypolicy()Required - Request body.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this value to JSON.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
ENDPOINT
public static final Endpoint<PutAutoscalingPolicyRequest,PutAutoscalingPolicyResponse,ElasticsearchError> ENDPOINTEndpoint "autoscaling.put_autoscaling_policy".
-
-
Constructor Details
-
PutAutoscalingPolicyRequest
-
PutAutoscalingPolicyRequest
public PutAutoscalingPolicyRequest(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,PutAutoscalingPolicyRequest.Builder> fn)
-
-
Method Details
-
name
public java.lang.String name()Required - the name of the autoscaling policyAPI name:
name -
policy
Required - Request body.API name:
_value_body -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutAutoscalingPolicyRequestDeserializer
protected static JsonpDeserializer<PutAutoscalingPolicyRequest> createPutAutoscalingPolicyRequestDeserializer()
-