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
Create or update an autoscaling policy.
NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutAutoscalingPolicyRequest>Endpoint "autoscaling.put_autoscaling_policy". -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonpDeserializer<PutAutoscalingPolicyRequest>final TimePeriod to wait for a connection to the master node.final Stringname()Required - the name of the autoscaling policystatic PutAutoscalingPolicyRequestfinal AutoscalingPolicypolicy()Required - Request body.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final Timetimeout()Period to wait for a response.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
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
name
Required - the name of the autoscaling policyAPI name:
name -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
policy
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutAutoscalingPolicyRequestDeserializer
protected static JsonpDeserializer<PutAutoscalingPolicyRequest> createPutAutoscalingPolicyRequestDeserializer()
-