Class PutAutoscalingPolicyRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.autoscaling.PutAutoscalingPolicyRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutAutoscalingPolicyRequest
extends RequestBase
implements JsonpSerializable
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and
ECK. Direct use is not supported.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutAutoscalingPolicyRequest>
Endpoint "autoscaling.put_autoscaling_policy
". -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonpDeserializer<PutAutoscalingPolicyRequest>
final String
name()
Required - the name of the autoscaling policystatic PutAutoscalingPolicyRequest
final AutoscalingPolicy
policy()
Required - Request body.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
public static final Endpoint<PutAutoscalingPolicyRequest,PutAutoscalingPolicyResponse, _ENDPOINTErrorResponse> Endpoint "autoscaling.put_autoscaling_policy
".
-
-
Method Details
-
of
-
name
Required - the name of the autoscaling policyAPI name:
name
-
policy
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
createPutAutoscalingPolicyRequestDeserializer
protected static JsonpDeserializer<PutAutoscalingPolicyRequest> createPutAutoscalingPolicyRequestDeserializer()
-