main.java.com.amazonaws.services.cognitosync.AmazonCognitoSyncAsync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-android-sdk-s3 Show documentation
Show all versions of aws-android-sdk-s3 Show documentation
The AWS Android SDK for Amazon S3 module holds the client classes that are used for communicating with Amazon Simple Storage Service
/*
* Copyright 2010-2015 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.cognitosync;
import java.util.concurrent.Future;
import com.amazonaws.AmazonClientException;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.AsyncHandler;
import com.amazonaws.services.cognitosync.model.*;
/**
* Interface for accessing AmazonCognitoSync asynchronously.
* Each asynchronous method will return a Java Future object, and users are also allowed
* to provide a callback handler.
*
*/
public interface AmazonCognitoSyncAsync extends AmazonCognitoSync {
/**
*
* @param updateRecordsRequest Container for the necessary parameters to
* execute the UpdateRecords operation on AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* UpdateRecords service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future updateRecordsAsync(UpdateRecordsRequest updateRecordsRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param updateRecordsRequest Container for the necessary parameters to
* execute the UpdateRecords operation on AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* UpdateRecords service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future updateRecordsAsync(UpdateRecordsRequest updateRecordsRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeIdentityUsageRequest Container for the necessary
* parameters to execute the DescribeIdentityUsage operation on
* AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* DescribeIdentityUsage service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeIdentityUsageAsync(DescribeIdentityUsageRequest describeIdentityUsageRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeIdentityUsageRequest Container for the necessary
* parameters to execute the DescribeIdentityUsage operation on
* AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* DescribeIdentityUsage service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeIdentityUsageAsync(DescribeIdentityUsageRequest describeIdentityUsageRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param setIdentityPoolConfigurationRequest Container for the necessary
* parameters to execute the SetIdentityPoolConfiguration operation on
* AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* SetIdentityPoolConfiguration service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future setIdentityPoolConfigurationAsync(SetIdentityPoolConfigurationRequest setIdentityPoolConfigurationRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param setIdentityPoolConfigurationRequest Container for the necessary
* parameters to execute the SetIdentityPoolConfiguration operation on
* AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* SetIdentityPoolConfiguration service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future setIdentityPoolConfigurationAsync(SetIdentityPoolConfigurationRequest setIdentityPoolConfigurationRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getIdentityPoolConfigurationRequest Container for the necessary
* parameters to execute the GetIdentityPoolConfiguration operation on
* AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* GetIdentityPoolConfiguration service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getIdentityPoolConfigurationAsync(GetIdentityPoolConfigurationRequest getIdentityPoolConfigurationRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getIdentityPoolConfigurationRequest Container for the necessary
* parameters to execute the GetIdentityPoolConfiguration operation on
* AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* GetIdentityPoolConfiguration service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getIdentityPoolConfigurationAsync(GetIdentityPoolConfigurationRequest getIdentityPoolConfigurationRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param unsubscribeFromDatasetRequest Container for the necessary
* parameters to execute the UnsubscribeFromDataset operation on
* AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* UnsubscribeFromDataset service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future unsubscribeFromDatasetAsync(UnsubscribeFromDatasetRequest unsubscribeFromDatasetRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param unsubscribeFromDatasetRequest Container for the necessary
* parameters to execute the UnsubscribeFromDataset operation on
* AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* UnsubscribeFromDataset service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future unsubscribeFromDatasetAsync(UnsubscribeFromDatasetRequest unsubscribeFromDatasetRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param subscribeToDatasetRequest Container for the necessary
* parameters to execute the SubscribeToDataset operation on
* AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* SubscribeToDataset service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future subscribeToDatasetAsync(SubscribeToDatasetRequest subscribeToDatasetRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param subscribeToDatasetRequest Container for the necessary
* parameters to execute the SubscribeToDataset operation on
* AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* SubscribeToDataset service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future subscribeToDatasetAsync(SubscribeToDatasetRequest subscribeToDatasetRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeIdentityPoolUsageRequest Container for the necessary
* parameters to execute the DescribeIdentityPoolUsage operation on
* AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* DescribeIdentityPoolUsage service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeIdentityPoolUsageAsync(DescribeIdentityPoolUsageRequest describeIdentityPoolUsageRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeIdentityPoolUsageRequest Container for the necessary
* parameters to execute the DescribeIdentityPoolUsage operation on
* AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* DescribeIdentityPoolUsage service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeIdentityPoolUsageAsync(DescribeIdentityPoolUsageRequest describeIdentityPoolUsageRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listDatasetsRequest Container for the necessary parameters to
* execute the ListDatasets operation on AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* ListDatasets service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listDatasetsAsync(ListDatasetsRequest listDatasetsRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listDatasetsRequest Container for the necessary parameters to
* execute the ListDatasets operation on AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* ListDatasets service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listDatasetsAsync(ListDatasetsRequest listDatasetsRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listIdentityPoolUsageRequest Container for the necessary
* parameters to execute the ListIdentityPoolUsage operation on
* AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* ListIdentityPoolUsage service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listIdentityPoolUsageAsync(ListIdentityPoolUsageRequest listIdentityPoolUsageRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listIdentityPoolUsageRequest Container for the necessary
* parameters to execute the ListIdentityPoolUsage operation on
* AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* ListIdentityPoolUsage service method, as returned by
* AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listIdentityPoolUsageAsync(ListIdentityPoolUsageRequest listIdentityPoolUsageRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listRecordsRequest Container for the necessary parameters to
* execute the ListRecords operation on AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* ListRecords service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listRecordsAsync(ListRecordsRequest listRecordsRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listRecordsRequest Container for the necessary parameters to
* execute the ListRecords operation on AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* ListRecords service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listRecordsAsync(ListRecordsRequest listRecordsRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeDatasetRequest Container for the necessary parameters
* to execute the DescribeDataset operation on AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* DescribeDataset service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeDatasetAsync(DescribeDatasetRequest describeDatasetRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeDatasetRequest Container for the necessary parameters
* to execute the DescribeDataset operation on AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* DescribeDataset service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeDatasetAsync(DescribeDatasetRequest describeDatasetRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param deleteDatasetRequest Container for the necessary parameters to
* execute the DeleteDataset operation on AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* DeleteDataset service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future deleteDatasetAsync(DeleteDatasetRequest deleteDatasetRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param deleteDatasetRequest Container for the necessary parameters to
* execute the DeleteDataset operation on AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* DeleteDataset service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future deleteDatasetAsync(DeleteDatasetRequest deleteDatasetRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param registerDeviceRequest Container for the necessary parameters to
* execute the RegisterDevice operation on AmazonCognitoSync.
*
* @return A Java Future object containing the response from the
* RegisterDevice service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future registerDeviceAsync(RegisterDeviceRequest registerDeviceRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param registerDeviceRequest Container for the necessary parameters to
* execute the RegisterDevice operation on AmazonCognitoSync.
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the implementation of
* the four callback methods in this interface to process the operation
* result or handle the exception.
*
* @return A Java Future object containing the response from the
* RegisterDevice service method, as returned by AmazonCognitoSync.
*
*
* @throws AmazonClientException
* If any internal errors are encountered inside the client while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws AmazonServiceException
* If an error response is returned by AmazonCognitoSync indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future registerDeviceAsync(RegisterDeviceRequest registerDeviceRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
}