Class ElasticsearchAutoscalingAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchAutoscalingAsyncClient>
co.elastic.clients.elasticsearch.autoscaling.ElasticsearchAutoscalingAsyncClient
public class ElasticsearchAutoscalingAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchAutoscalingAsyncClient>
Client for the autoscaling namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchAutoscalingAsyncClient(ElasticsearchTransport transport)ElasticsearchAutoscalingAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeleteAutoscalingPolicyResponse>deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request)Deletes an autoscaling policy.java.util.concurrent.CompletableFuture<DeleteAutoscalingPolicyResponse>deleteAutoscalingPolicy(java.util.function.Function<DeleteAutoscalingPolicyRequest.Builder,ObjectBuilder<DeleteAutoscalingPolicyRequest>> fn)Deletes an autoscaling policy.java.util.concurrent.CompletableFuture<GetAutoscalingCapacityResponse>getAutoscalingCapacity()Gets the current autoscaling capacity based on the configured autoscaling policy.java.util.concurrent.CompletableFuture<GetAutoscalingPolicyResponse>getAutoscalingPolicy(GetAutoscalingPolicyRequest request)Retrieves an autoscaling policy.java.util.concurrent.CompletableFuture<GetAutoscalingPolicyResponse>getAutoscalingPolicy(java.util.function.Function<GetAutoscalingPolicyRequest.Builder,ObjectBuilder<GetAutoscalingPolicyRequest>> fn)Retrieves an autoscaling policy.java.util.concurrent.CompletableFuture<PutAutoscalingPolicyResponse>putAutoscalingPolicy(PutAutoscalingPolicyRequest request)Creates a new autoscaling policy.java.util.concurrent.CompletableFuture<PutAutoscalingPolicyResponse>putAutoscalingPolicy(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,ObjectBuilder<PutAutoscalingPolicyRequest>> fn)Creates a new autoscaling policy.ElasticsearchAutoscalingAsyncClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchAutoscalingAsyncClient
-
ElasticsearchAutoscalingAsyncClient
public ElasticsearchAutoscalingAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchAutoscalingAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchAutoscalingAsyncClient>
-
deleteAutoscalingPolicy
public java.util.concurrent.CompletableFuture<DeleteAutoscalingPolicyResponse> deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request)Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- See Also:
- Documentation on elastic.co
-
deleteAutoscalingPolicy
public final java.util.concurrent.CompletableFuture<DeleteAutoscalingPolicyResponse> deleteAutoscalingPolicy(java.util.function.Function<DeleteAutoscalingPolicyRequest.Builder,ObjectBuilder<DeleteAutoscalingPolicyRequest>> fn)Deletes 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- See Also:
- Documentation on elastic.co
-
getAutoscalingCapacity
public java.util.concurrent.CompletableFuture<GetAutoscalingCapacityResponse> getAutoscalingCapacity()Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- See Also:
- Documentation on elastic.co
-
getAutoscalingPolicy
public java.util.concurrent.CompletableFuture<GetAutoscalingPolicyResponse> getAutoscalingPolicy(GetAutoscalingPolicyRequest request)Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- See Also:
- Documentation on elastic.co
-
getAutoscalingPolicy
public final java.util.concurrent.CompletableFuture<GetAutoscalingPolicyResponse> getAutoscalingPolicy(java.util.function.Function<GetAutoscalingPolicyRequest.Builder,ObjectBuilder<GetAutoscalingPolicyRequest>> fn)Retrieves 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- See Also:
- Documentation on elastic.co
-
putAutoscalingPolicy
public java.util.concurrent.CompletableFuture<PutAutoscalingPolicyResponse> putAutoscalingPolicy(PutAutoscalingPolicyRequest request)Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- See Also:
- Documentation on elastic.co
-
putAutoscalingPolicy
public final java.util.concurrent.CompletableFuture<PutAutoscalingPolicyResponse> putAutoscalingPolicy(java.util.function.Function<PutAutoscalingPolicyRequest.Builder,ObjectBuilder<PutAutoscalingPolicyRequest>> fn)Creates 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- See Also:
- Documentation on elastic.co
-