public class AmazonCognitoSyncClient extends com.amazonaws.AmazonWebServiceClient implements AmazonCognitoSync
| Modifier and Type | Field and Description |
|---|---|
protected List<com.amazonaws.transform.JsonErrorUnmarshaller> |
jsonErrorUnmarshallers
List of exception unmarshallers for all AmazonCognitoSync exceptions.
|
| Constructor and Description |
|---|
AmazonCognitoSyncClient()
Deprecated.
|
AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials.
|
AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentials awsCredentials,
com.amazonaws.ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials
and client configuration options.
|
AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials provider.
|
AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
com.amazonaws.ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials
provider and client configuration options.
|
AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
com.amazonaws.ClientConfiguration clientConfiguration,
com.amazonaws.http.HttpClient httpClient)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials
provider, client configuration options and request metric collector.
|
AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
com.amazonaws.ClientConfiguration clientConfiguration,
com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
Deprecated.
|
AmazonCognitoSyncClient(com.amazonaws.ClientConfiguration clientConfiguration)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DeleteDatasetResult |
deleteDataset(DeleteDatasetRequest deleteDatasetRequest) |
DescribeDatasetResult |
describeDataset(DescribeDatasetRequest describeDatasetRequest) |
com.amazonaws.ResponseMetadata |
getCachedResponseMetadata(com.amazonaws.AmazonWebServiceRequest request)
Deprecated.
ResponseMetadata cache can hold up to 50 requests and
responses in memory and will cause memory issue. This method
now always returns null.
|
ListDatasetsResult |
listDatasets(ListDatasetsRequest listDatasetsRequest) |
ListRecordsResult |
listRecords(ListRecordsRequest listRecordsRequest) |
RegisterDeviceResult |
registerDevice(RegisterDeviceRequest registerDeviceRequest) |
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("https://cognito-sync.us-east-1.amazonaws.com").
|
void |
setEndpoint(String endpoint,
String serviceName,
String regionId) |
SubscribeToDatasetResult |
subscribeToDataset(SubscribeToDatasetRequest subscribeToDatasetRequest) |
UnsubscribeFromDatasetResult |
unsubscribeFromDataset(UnsubscribeFromDatasetRequest unsubscribeFromDatasetRequest) |
UpdateRecordsResult |
updateRecords(UpdateRecordsRequest updateRecordsRequest) |
addRequestHandler, addRequestHandler, configSigner, configSigner, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegion, shutdownprotected List<com.amazonaws.transform.JsonErrorUnmarshaller> jsonErrorUnmarshallers
@Deprecated public AmazonCognitoSyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain@Deprecated public AmazonCognitoSyncClient(com.amazonaws.ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChainpublic AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentials awsCredentials,
com.amazonaws.ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).public AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
com.amazonaws.ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).@Deprecated public AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider, com.amazonaws.ClientConfiguration clientConfiguration, com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).requestMetricCollector - optional request metric collectorpublic AmazonCognitoSyncClient(com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider,
com.amazonaws.ClientConfiguration clientConfiguration,
com.amazonaws.http.HttpClient httpClient)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).httpClient - A http clientpublic UpdateRecordsResult updateRecords(UpdateRecordsRequest updateRecordsRequest)
updateRecords in interface AmazonCognitoSyncupdateRecordsRequest - Container for the necessary parameters to
execute the UpdateRecords service method on AmazonCognitoSync.LimitExceededExceptionTooManyRequestsExceptionResourceConflictExceptionInvalidParameterExceptionResourceNotFoundExceptionInvalidLambdaFunctionOutputExceptionNotAuthorizedExceptionLambdaThrottledExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 UnsubscribeFromDatasetResult unsubscribeFromDataset(UnsubscribeFromDatasetRequest unsubscribeFromDatasetRequest)
unsubscribeFromDataset in interface AmazonCognitoSyncunsubscribeFromDatasetRequest - Container for the necessary
parameters to execute the UnsubscribeFromDataset service method on
AmazonCognitoSync.TooManyRequestsExceptionInvalidConfigurationExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 SubscribeToDatasetResult subscribeToDataset(SubscribeToDatasetRequest subscribeToDatasetRequest)
subscribeToDataset in interface AmazonCognitoSyncsubscribeToDatasetRequest - Container for the necessary
parameters to execute the SubscribeToDataset service method on
AmazonCognitoSync.TooManyRequestsExceptionInvalidConfigurationExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 ListDatasetsResult listDatasets(ListDatasetsRequest listDatasetsRequest)
listDatasets in interface AmazonCognitoSynclistDatasetsRequest - Container for the necessary parameters to
execute the ListDatasets service method on AmazonCognitoSync.TooManyRequestsExceptionInvalidParameterExceptionNotAuthorizedExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 ListRecordsResult listRecords(ListRecordsRequest listRecordsRequest)
listRecords in interface AmazonCognitoSynclistRecordsRequest - Container for the necessary parameters to
execute the ListRecords service method on AmazonCognitoSync.TooManyRequestsExceptionInvalidParameterExceptionNotAuthorizedExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 DescribeDatasetResult describeDataset(DescribeDatasetRequest describeDatasetRequest)
describeDataset in interface AmazonCognitoSyncdescribeDatasetRequest - Container for the necessary parameters
to execute the DescribeDataset service method on AmazonCognitoSync.TooManyRequestsExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 DeleteDatasetResult deleteDataset(DeleteDatasetRequest deleteDatasetRequest)
deleteDataset in interface AmazonCognitoSyncdeleteDatasetRequest - Container for the necessary parameters to
execute the DeleteDataset service method on AmazonCognitoSync.TooManyRequestsExceptionResourceConflictExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 RegisterDeviceResult registerDevice(RegisterDeviceRequest registerDeviceRequest)
registerDevice in interface AmazonCognitoSyncregisterDeviceRequest - Container for the necessary parameters to
execute the RegisterDevice service method on AmazonCognitoSync.TooManyRequestsExceptionInvalidConfigurationExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptioncom.amazonaws.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.com.amazonaws.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 void setEndpoint(String endpoint)
AmazonCognitoSync
Callers can pass in just the endpoint (ex: "cognito-sync.us-east-1.amazonaws.com") or a full
URL, including the protocol (ex: "https://cognito-sync.us-east-1.amazonaws.com"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setEndpoint in interface AmazonCognitoSyncsetEndpoint in class com.amazonaws.AmazonWebServiceClientendpoint - The endpoint (ex: "cognito-sync.us-east-1.amazonaws.com") or a full URL,
including the protocol (ex: "https://cognito-sync.us-east-1.amazonaws.com") of
the region specific AWS endpoint this client will communicate
with.public void setEndpoint(String endpoint, String serviceName, String regionId) throws IllegalArgumentException
setEndpoint in class com.amazonaws.AmazonWebServiceClientIllegalArgumentException@Deprecated public com.amazonaws.ResponseMetadata getCachedResponseMetadata(com.amazonaws.AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonCognitoSyncrequest - The originally executed requestCopyright © 2015. All rights reserved.