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 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,ErrorResponse>_ENDPOINTEndpoint "autoscaling.put_autoscaling_policy". -
Method Summary
Modifier and Type Method Description protected static JsonpDeserializer<PutAutoscalingPolicyRequest>createPutAutoscalingPolicyRequestDeserializer()java.lang.Stringname()Required - the name of the autoscaling policystatic PutAutoscalingPolicyRequestof(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,ObjectBuilder<PutAutoscalingPolicyRequest>> fn)AutoscalingPolicypolicy()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,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.API name:
_value_body -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutAutoscalingPolicyRequestDeserializer
protected static JsonpDeserializer<PutAutoscalingPolicyRequest> createPutAutoscalingPolicyRequestDeserializer()
-