Class ElasticsearchAutoscalingClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchAutoscalingClient>
co.elastic.clients.elasticsearch.autoscaling.ElasticsearchAutoscalingClient
public class ElasticsearchAutoscalingClient extends ApiClient<ElasticsearchTransport,ElasticsearchAutoscalingClient>
Client for the autoscaling namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchAutoscalingClient(ElasticsearchTransport transport)
ElasticsearchAutoscalingClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Methods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchAutoscalingClient
-
ElasticsearchAutoscalingClient
public ElasticsearchAutoscalingClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchAutoscalingClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchAutoscalingClient>
-
deleteAutoscalingPolicy
public DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteAutoscalingPolicy
public final DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(java.util.function.Function<DeleteAutoscalingPolicyRequest.Builder,ObjectBuilder<DeleteAutoscalingPolicyRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Parameters:
fn
- a function that initializes a builder to create theDeleteAutoscalingPolicyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getAutoscalingCapacity
public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws java.io.IOException, ElasticsearchExceptionGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getAutoscalingPolicy
public GetAutoscalingPolicyResponse getAutoscalingPolicy(GetAutoscalingPolicyRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getAutoscalingPolicy
public final GetAutoscalingPolicyResponse getAutoscalingPolicy(java.util.function.Function<GetAutoscalingPolicyRequest.Builder,ObjectBuilder<GetAutoscalingPolicyRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Parameters:
fn
- a function that initializes a builder to create theGetAutoscalingPolicyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putAutoscalingPolicy
public PutAutoscalingPolicyResponse putAutoscalingPolicy(PutAutoscalingPolicyRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putAutoscalingPolicy
public final PutAutoscalingPolicyResponse putAutoscalingPolicy(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,ObjectBuilder<PutAutoscalingPolicyRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Parameters:
fn
- a function that initializes a builder to create thePutAutoscalingPolicyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-