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:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutAutoscalingPolicyRequest.Builder
Builder 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>
_DESERIALIZER
static Endpoint<PutAutoscalingPolicyRequest,PutAutoscalingPolicyResponse,ErrorResponse>
_ENDPOINT
Endpoint "autoscaling.put_autoscaling_policy
". -
Method Summary
Modifier and Type Method Description protected static JsonpDeserializer<PutAutoscalingPolicyRequest>
createPutAutoscalingPolicyRequestDeserializer()
java.lang.String
name()
Required - the name of the autoscaling policystatic PutAutoscalingPolicyRequest
of(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,ObjectBuilder<PutAutoscalingPolicyRequest>> fn)
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
public static final Endpoint<PutAutoscalingPolicyRequest,PutAutoscalingPolicyResponse,ErrorResponse> _ENDPOINTEndpoint "autoscaling.put_autoscaling_policy
".
-
-
Method Details
-
of
public static PutAutoscalingPolicyRequest of(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,ObjectBuilder<PutAutoscalingPolicyRequest>> fn) -
name
public final java.lang.String 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()
-