Class ElasticsearchAutoscalingClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchAutoscalingClient>
co.elastic.clients.elasticsearch.autoscaling.ElasticsearchAutoscalingClient
- All Implemented Interfaces:
Closeable,AutoCloseable
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
ConstructorsConstructorDescriptionElasticsearchAutoscalingClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionDeletes an autoscaling policy.deleteAutoscalingPolicy(Function<DeleteAutoscalingPolicyRequest.Builder, ObjectBuilder<DeleteAutoscalingPolicyRequest>> fn) Deletes an autoscaling policy.Gets the current autoscaling capacity based on the configured autoscaling policy.Retrieves an autoscaling policy.getAutoscalingPolicy(Function<GetAutoscalingPolicyRequest.Builder, ObjectBuilder<GetAutoscalingPolicyRequest>> fn) Retrieves an autoscaling policy.Creates a new autoscaling policy.putAutoscalingPolicy(Function<PutAutoscalingPolicyRequest.Builder, ObjectBuilder<PutAutoscalingPolicyRequest>> fn) Creates a new autoscaling policy.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchAutoscalingClient
-
ElasticsearchAutoscalingClient
public ElasticsearchAutoscalingClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchAutoscalingClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchAutoscalingClient>
-
deleteAutoscalingPolicy
public DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request) throws IOException, ElasticsearchException Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteAutoscalingPolicy
public final DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(Function<DeleteAutoscalingPolicyRequest.Builder, ObjectBuilder<DeleteAutoscalingPolicyRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-
getAutoscalingCapacity
public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws 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:
IOExceptionElasticsearchException- See Also:
-
getAutoscalingPolicy
public GetAutoscalingPolicyResponse getAutoscalingPolicy(GetAutoscalingPolicyRequest request) throws IOException, ElasticsearchException Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
IOExceptionElasticsearchException- See Also:
-
getAutoscalingPolicy
public final GetAutoscalingPolicyResponse getAutoscalingPolicy(Function<GetAutoscalingPolicyRequest.Builder, ObjectBuilder<GetAutoscalingPolicyRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-
putAutoscalingPolicy
public PutAutoscalingPolicyResponse putAutoscalingPolicy(PutAutoscalingPolicyRequest request) throws IOException, ElasticsearchException Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
IOExceptionElasticsearchException- See Also:
-
putAutoscalingPolicy
public final PutAutoscalingPolicyResponse putAutoscalingPolicy(Function<PutAutoscalingPolicyRequest.Builder, ObjectBuilder<PutAutoscalingPolicyRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-