com.amazonaws.services.cognitoidentity.AmazonCognitoIdentityAsync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-android-sdk-mobileanalytics Show documentation
Show all versions of aws-android-sdk-mobileanalytics Show documentation
Amazon Web Services SDK for Android
/*
* Copyright 2010-2014 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.cognitoidentity;
import java.util.concurrent.Future;
import com.amazonaws.AmazonClientException;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.AsyncHandler;
import com.amazonaws.services.cognitoidentity.model.*;
/**
* Interface for accessing AmazonCognitoIdentity asynchronously.
* Each asynchronous method will return a Java Future object, and users are also allowed
* to provide a callback handler.
*
*/
public interface AmazonCognitoIdentityAsync extends AmazonCognitoIdentity {
/**
*
* @param unlinkDeveloperIdentityRequest Container for the necessary
* parameters to execute the UnlinkDeveloperIdentity operation on
* AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* UnlinkDeveloperIdentity service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future unlinkDeveloperIdentityAsync(UnlinkDeveloperIdentityRequest unlinkDeveloperIdentityRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param unlinkDeveloperIdentityRequest Container for the necessary
* parameters to execute the UnlinkDeveloperIdentity operation on
* AmazonCognitoIdentity.
* @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
* UnlinkDeveloperIdentity service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future unlinkDeveloperIdentityAsync(UnlinkDeveloperIdentityRequest unlinkDeveloperIdentityRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeIdentityPoolRequest Container for the necessary
* parameters to execute the DescribeIdentityPool operation on
* AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* DescribeIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeIdentityPoolAsync(DescribeIdentityPoolRequest describeIdentityPoolRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param describeIdentityPoolRequest Container for the necessary
* parameters to execute the DescribeIdentityPool operation on
* AmazonCognitoIdentity.
* @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
* DescribeIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future describeIdentityPoolAsync(DescribeIdentityPoolRequest describeIdentityPoolRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getIdRequest Container for the necessary parameters to execute
* the GetId operation on AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the GetId
* service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getIdAsync(GetIdRequest getIdRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getIdRequest Container for the necessary parameters to execute
* the GetId operation on AmazonCognitoIdentity.
* @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 GetId
* service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getIdAsync(GetIdRequest getIdRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param deleteIdentityPoolRequest Container for the necessary
* parameters to execute the DeleteIdentityPool operation on
* AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* DeleteIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future deleteIdentityPoolAsync(DeleteIdentityPoolRequest deleteIdentityPoolRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param deleteIdentityPoolRequest Container for the necessary
* parameters to execute the DeleteIdentityPool operation on
* AmazonCognitoIdentity.
* @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
* DeleteIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future deleteIdentityPoolAsync(DeleteIdentityPoolRequest deleteIdentityPoolRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param updateIdentityPoolRequest Container for the necessary
* parameters to execute the UpdateIdentityPool operation on
* AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* UpdateIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future updateIdentityPoolAsync(UpdateIdentityPoolRequest updateIdentityPoolRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param updateIdentityPoolRequest Container for the necessary
* parameters to execute the UpdateIdentityPool operation on
* AmazonCognitoIdentity.
* @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
* UpdateIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future updateIdentityPoolAsync(UpdateIdentityPoolRequest updateIdentityPoolRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listIdentityPoolsRequest Container for the necessary parameters
* to execute the ListIdentityPools operation on AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* ListIdentityPools service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listIdentityPoolsAsync(ListIdentityPoolsRequest listIdentityPoolsRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listIdentityPoolsRequest Container for the necessary parameters
* to execute the ListIdentityPools operation on AmazonCognitoIdentity.
* @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
* ListIdentityPools service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listIdentityPoolsAsync(ListIdentityPoolsRequest listIdentityPoolsRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param mergeDeveloperIdentitiesRequest Container for the necessary
* parameters to execute the MergeDeveloperIdentities operation on
* AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* MergeDeveloperIdentities service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future mergeDeveloperIdentitiesAsync(MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param mergeDeveloperIdentitiesRequest Container for the necessary
* parameters to execute the MergeDeveloperIdentities operation on
* AmazonCognitoIdentity.
* @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
* MergeDeveloperIdentities service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future mergeDeveloperIdentitiesAsync(MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getOpenIdTokenRequest Container for the necessary parameters to
* execute the GetOpenIdToken operation on AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* GetOpenIdToken service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getOpenIdTokenAsync(GetOpenIdTokenRequest getOpenIdTokenRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getOpenIdTokenRequest Container for the necessary parameters to
* execute the GetOpenIdToken operation on AmazonCognitoIdentity.
* @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
* GetOpenIdToken service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getOpenIdTokenAsync(GetOpenIdTokenRequest getOpenIdTokenRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param lookupDeveloperIdentityRequest Container for the necessary
* parameters to execute the LookupDeveloperIdentity operation on
* AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* LookupDeveloperIdentity service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future lookupDeveloperIdentityAsync(LookupDeveloperIdentityRequest lookupDeveloperIdentityRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param lookupDeveloperIdentityRequest Container for the necessary
* parameters to execute the LookupDeveloperIdentity operation on
* AmazonCognitoIdentity.
* @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
* LookupDeveloperIdentity service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future lookupDeveloperIdentityAsync(LookupDeveloperIdentityRequest lookupDeveloperIdentityRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param unlinkIdentityRequest Container for the necessary parameters to
* execute the UnlinkIdentity operation on AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* UnlinkIdentity service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future unlinkIdentityAsync(UnlinkIdentityRequest unlinkIdentityRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param unlinkIdentityRequest Container for the necessary parameters to
* execute the UnlinkIdentity operation on AmazonCognitoIdentity.
* @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
* UnlinkIdentity service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future unlinkIdentityAsync(UnlinkIdentityRequest unlinkIdentityRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listIdentitiesRequest Container for the necessary parameters to
* execute the ListIdentities operation on AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* ListIdentities service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listIdentitiesAsync(ListIdentitiesRequest listIdentitiesRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param listIdentitiesRequest Container for the necessary parameters to
* execute the ListIdentities operation on AmazonCognitoIdentity.
* @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
* ListIdentities service method, as returned by AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future listIdentitiesAsync(ListIdentitiesRequest listIdentitiesRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getOpenIdTokenForDeveloperIdentityRequest Container for the
* necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity
* operation on AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* GetOpenIdTokenForDeveloperIdentity service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getOpenIdTokenForDeveloperIdentityAsync(GetOpenIdTokenForDeveloperIdentityRequest getOpenIdTokenForDeveloperIdentityRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param getOpenIdTokenForDeveloperIdentityRequest Container for the
* necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity
* operation on AmazonCognitoIdentity.
* @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
* GetOpenIdTokenForDeveloperIdentity service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future getOpenIdTokenForDeveloperIdentityAsync(GetOpenIdTokenForDeveloperIdentityRequest getOpenIdTokenForDeveloperIdentityRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param createIdentityPoolRequest Container for the necessary
* parameters to execute the CreateIdentityPool operation on
* AmazonCognitoIdentity.
*
* @return A Java Future object containing the response from the
* CreateIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future createIdentityPoolAsync(CreateIdentityPoolRequest createIdentityPoolRequest)
throws AmazonServiceException, AmazonClientException;
/**
*
* @param createIdentityPoolRequest Container for the necessary
* parameters to execute the CreateIdentityPool operation on
* AmazonCognitoIdentity.
* @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
* CreateIdentityPool service method, as returned by
* AmazonCognitoIdentity.
*
*
* @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 AmazonCognitoIdentity indicating
* either a problem with the data in the request, or a server side issue.
*/
public Future createIdentityPoolAsync(CreateIdentityPoolRequest createIdentityPoolRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException;
}