/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.docdbelastic; import javax.annotation.Generated; import com.amazonaws.services.docdbelastic.model.*; /** * Interface for accessing DocDB Elastic asynchronously. Each asynchronous method will return a Java Future object * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive * notification when an asynchronous operation completes. *

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.docdbelastic.AbstractAmazonDocDBElasticAsync} instead. *

*

*

* The new Amazon Elastic DocumentDB service endpoint. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonDocDBElasticAsync extends AmazonDocDBElastic { /** *

* Creates a new Elastic DocumentDB cluster and returns its Cluster structure. *

* * @param createClusterRequest * @return A Java Future containing the result of the CreateCluster operation returned by the service. * @sample AmazonDocDBElasticAsync.CreateCluster * @see AWS * API Documentation */ java.util.concurrent.Future createClusterAsync(CreateClusterRequest createClusterRequest); /** *

* Creates a new Elastic DocumentDB cluster and returns its Cluster structure. *

* * @param createClusterRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CreateCluster operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.CreateCluster * @see AWS * API Documentation */ java.util.concurrent.Future createClusterAsync(CreateClusterRequest createClusterRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Creates a snapshot of a cluster. *

* * @param createClusterSnapshotRequest * @return A Java Future containing the result of the CreateClusterSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsync.CreateClusterSnapshot * @see AWS API Documentation */ java.util.concurrent.Future createClusterSnapshotAsync(CreateClusterSnapshotRequest createClusterSnapshotRequest); /** *

* Creates a snapshot of a cluster. *

* * @param createClusterSnapshotRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CreateClusterSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.CreateClusterSnapshot * @see AWS API Documentation */ java.util.concurrent.Future createClusterSnapshotAsync(CreateClusterSnapshotRequest createClusterSnapshotRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Delete a Elastic DocumentDB cluster. *

* * @param deleteClusterRequest * @return A Java Future containing the result of the DeleteCluster operation returned by the service. * @sample AmazonDocDBElasticAsync.DeleteCluster * @see AWS * API Documentation */ java.util.concurrent.Future deleteClusterAsync(DeleteClusterRequest deleteClusterRequest); /** *

* Delete a Elastic DocumentDB cluster. *

* * @param deleteClusterRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DeleteCluster operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.DeleteCluster * @see AWS * API Documentation */ java.util.concurrent.Future deleteClusterAsync(DeleteClusterRequest deleteClusterRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Delete a Elastic DocumentDB snapshot. *

* * @param deleteClusterSnapshotRequest * @return A Java Future containing the result of the DeleteClusterSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsync.DeleteClusterSnapshot * @see AWS API Documentation */ java.util.concurrent.Future deleteClusterSnapshotAsync(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest); /** *

* Delete a Elastic DocumentDB snapshot. *

* * @param deleteClusterSnapshotRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DeleteClusterSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.DeleteClusterSnapshot * @see AWS API Documentation */ java.util.concurrent.Future deleteClusterSnapshotAsync(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Returns information about a specific Elastic DocumentDB cluster. *

* * @param getClusterRequest * @return A Java Future containing the result of the GetCluster operation returned by the service. * @sample AmazonDocDBElasticAsync.GetCluster * @see AWS API * Documentation */ java.util.concurrent.Future getClusterAsync(GetClusterRequest getClusterRequest); /** *

* Returns information about a specific Elastic DocumentDB cluster. *

* * @param getClusterRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetCluster operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.GetCluster * @see AWS API * Documentation */ java.util.concurrent.Future getClusterAsync(GetClusterRequest getClusterRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Returns information about a specific Elastic DocumentDB snapshot *

* * @param getClusterSnapshotRequest * @return A Java Future containing the result of the GetClusterSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsync.GetClusterSnapshot * @see AWS API Documentation */ java.util.concurrent.Future getClusterSnapshotAsync(GetClusterSnapshotRequest getClusterSnapshotRequest); /** *

* Returns information about a specific Elastic DocumentDB snapshot *

* * @param getClusterSnapshotRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetClusterSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.GetClusterSnapshot * @see AWS API Documentation */ java.util.concurrent.Future getClusterSnapshotAsync(GetClusterSnapshotRequest getClusterSnapshotRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Returns information about Elastic DocumentDB snapshots for a specified cluster. *

* * @param listClusterSnapshotsRequest * @return A Java Future containing the result of the ListClusterSnapshots operation returned by the service. * @sample AmazonDocDBElasticAsync.ListClusterSnapshots * @see AWS API Documentation */ java.util.concurrent.Future listClusterSnapshotsAsync(ListClusterSnapshotsRequest listClusterSnapshotsRequest); /** *

* Returns information about Elastic DocumentDB snapshots for a specified cluster. *

* * @param listClusterSnapshotsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListClusterSnapshots operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.ListClusterSnapshots * @see AWS API Documentation */ java.util.concurrent.Future listClusterSnapshotsAsync(ListClusterSnapshotsRequest listClusterSnapshotsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Returns information about provisioned Elastic DocumentDB clusters. *

* * @param listClustersRequest * @return A Java Future containing the result of the ListClusters operation returned by the service. * @sample AmazonDocDBElasticAsync.ListClusters * @see AWS API * Documentation */ java.util.concurrent.Future listClustersAsync(ListClustersRequest listClustersRequest); /** *

* Returns information about provisioned Elastic DocumentDB clusters. *

* * @param listClustersRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListClusters operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.ListClusters * @see AWS API * Documentation */ java.util.concurrent.Future listClustersAsync(ListClustersRequest listClustersRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists all tags on a Elastic DocumentDB resource *

* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonDocDBElasticAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); /** *

* Lists all tags on a Elastic DocumentDB resource *

* * @param listTagsForResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Restores a Elastic DocumentDB cluster from a snapshot. *

* * @param restoreClusterFromSnapshotRequest * @return A Java Future containing the result of the RestoreClusterFromSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsync.RestoreClusterFromSnapshot * @see AWS API Documentation */ java.util.concurrent.Future restoreClusterFromSnapshotAsync( RestoreClusterFromSnapshotRequest restoreClusterFromSnapshotRequest); /** *

* Restores a Elastic DocumentDB cluster from a snapshot. *

* * @param restoreClusterFromSnapshotRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the RestoreClusterFromSnapshot operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.RestoreClusterFromSnapshot * @see AWS API Documentation */ java.util.concurrent.Future restoreClusterFromSnapshotAsync( RestoreClusterFromSnapshotRequest restoreClusterFromSnapshotRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Adds metadata tags to a Elastic DocumentDB resource *

* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonDocDBElasticAsync.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); /** *

* Adds metadata tags to a Elastic DocumentDB resource *

* * @param tagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Removes metadata tags to a Elastic DocumentDB resource *

* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonDocDBElasticAsync.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); /** *

* Removes metadata tags to a Elastic DocumentDB resource *

* * @param untagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version * setting up a backup window and maintenance window *

* * @param updateClusterRequest * @return A Java Future containing the result of the UpdateCluster operation returned by the service. * @sample AmazonDocDBElasticAsync.UpdateCluster * @see AWS * API Documentation */ java.util.concurrent.Future updateClusterAsync(UpdateClusterRequest updateClusterRequest); /** *

* Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version * setting up a backup window and maintenance window *

* * @param updateClusterRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UpdateCluster operation returned by the service. * @sample AmazonDocDBElasticAsyncHandler.UpdateCluster * @see AWS * API Documentation */ java.util.concurrent.Future updateClusterAsync(UpdateClusterRequest updateClusterRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); }