Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * 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.route53domains;
  
  import java.net.*;
  import java.util.*;
  
  
  import com.amazonaws.*;
  
Client for accessing AmazonRoute53Domains. All service calls made using this client are blocking, and will not return until the service call completes.

  
  public class AmazonRoute53DomainsClient extends AmazonWebServiceClient implements AmazonRoute53Domains {

    
Provider for AWS credentials.
  
  
      private static final Log log = LogFactory.getLog(AmazonRoute53Domains.class);

    
List of exception unmarshallers for all AmazonRoute53Domains exceptions.
  
      protected List<JsonErrorUnmarshallerjsonErrorUnmarshallers;

    
Constructs a new client to invoke service methods on AmazonRoute53Domains. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AmazonRoute53DomainsClient() {
          this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
      }

    
Constructs a new client to invoke service methods on AmazonRoute53Domains. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonRoute53Domains (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
  
      public AmazonRoute53DomainsClient(ClientConfiguration clientConfiguration) {
          this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);
      }

    
Constructs a new client to invoke service methods on AmazonRoute53Domains using the specified AWS account credentials.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonRoute53DomainsClient(AWSCredentials awsCredentials) {
         this(awsCredentialsnew ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonRoute53Domains using the specified AWS account credentials and client configuration options.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
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 AmazonRoute53Domains (ex: proxy settings, retry counts, etc.).
 
     public AmazonRoute53DomainsClient(AWSCredentials awsCredentialsClientConfiguration clientConfiguration) {
         super(adjustClientConfiguration(clientConfiguration));
         
         this. = new StaticCredentialsProvider(awsCredentials);
         
         init();
     }

    
Constructs a new client to invoke service methods on AmazonRoute53Domains using the specified AWS account credentials provider.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonRoute53DomainsClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvidernew ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonRoute53Domains using the specified AWS account credentials provider and client configuration options.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
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 AmazonRoute53Domains (ex: proxy settings, retry counts, etc.).
 
     public AmazonRoute53DomainsClient(AWSCredentialsProvider awsCredentialsProviderClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfigurationnull);
     }

    
Constructs a new client to invoke service methods on AmazonRoute53Domains using the specified AWS account credentials provider, client configuration options and request metric collector.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
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 AmazonRoute53Domains (ex: proxy settings, retry counts, etc.).
requestMetricCollector optional request metric collector
 
     public AmazonRoute53DomainsClient(AWSCredentialsProvider awsCredentialsProvider,
             ClientConfiguration clientConfiguration,
             RequestMetricCollector requestMetricCollector) {
         super(adjustClientConfiguration(clientConfiguration), requestMetricCollector);
         
         this. = awsCredentialsProvider;
         
         init();
     }
 
     private void init() {
         
         
         // calling this.setEndPoint(...) will also modify the signer accordingly
         this.setEndpoint("route53domains.us-east-1.amazonaws.com");
         
         HandlerChainFactory chainFactory = new HandlerChainFactory();
         .addAll(chainFactory.newRequestHandlerChain(
                 "/com/amazonaws/services/route53domains/request.handlers"));
         .addAll(chainFactory.newRequestHandler2Chain(
                 "/com/amazonaws/services/route53domains/request.handler2s"));
     }
 
         ClientConfiguration config = orig;
         
         return config;
     }

    

This operation checks the availability of one domain name. You can access this API without authenticating. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.

Parameters:
checkDomainAvailabilityRequest Container for the necessary parameters to execute the CheckDomainAvailability service method on AmazonRoute53Domains.
Returns:
The response from the CheckDomainAvailability service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.UnsupportedTLDException
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public CheckDomainAvailabilityResult checkDomainAvailability(CheckDomainAvailabilityRequest checkDomainAvailabilityRequest) {
         ExecutionContext executionContext = createExecutionContext(checkDomainAvailabilityRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CheckDomainAvailabilityRequestrequest = null;
         Response<CheckDomainAvailabilityResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CheckDomainAvailabilityRequestMarshaller().marshall(super.beforeMarshalling(checkDomainAvailabilityRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<CheckDomainAvailabilityResultJsonUnmarshallerContextunmarshaller =
                 new CheckDomainAvailabilityResultJsonUnmarshaller();
             JsonResponseHandler<CheckDomainAvailabilityResultresponseHandler =
                 new JsonResponseHandler<CheckDomainAvailabilityResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation updates the contact information for a particular domain. Information for at least one contact (registrant, administrator, or technical) must be supplied for update.

If the update is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

Parameters:
updateDomainContactRequest Container for the necessary parameters to execute the UpdateDomainContact service method on AmazonRoute53Domains.
Returns:
The response from the UpdateDomainContact service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.DuplicateRequestException
com.amazonaws.services.route53domains.model.TLDRulesViolationException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public UpdateDomainContactResult updateDomainContact(UpdateDomainContactRequest updateDomainContactRequest) {
         ExecutionContext executionContext = createExecutionContext(updateDomainContactRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateDomainContactRequestrequest = null;
         Response<UpdateDomainContactResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateDomainContactRequestMarshaller().marshall(super.beforeMarshalling(updateDomainContactRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<UpdateDomainContactResultJsonUnmarshallerContextunmarshaller =
                 new UpdateDomainContactResultJsonUnmarshaller();
             JsonResponseHandler<UpdateDomainContactResultresponseHandler =
                 new JsonResponseHandler<UpdateDomainContactResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation configures Amazon Route 53 to automatically renew the specified domain before the domain registration expires. The cost of renewing your domain registration is billed to your AWS account.

The period during which you can renew a domain name varies by TLD. For a list of TLDs and their renewal policies, see "Renewal, restoration, and deletion times" on the website for our registrar partner, Gandi. Route 53 requires that you renew before the end of the renewal period that is listed on the Gandi website so we can complete processing before the deadline.

Parameters:
enableDomainAutoRenewRequest Container for the necessary parameters to execute the EnableDomainAutoRenew service method on AmazonRoute53Domains.
Returns:
The response from the EnableDomainAutoRenew service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public EnableDomainAutoRenewResult enableDomainAutoRenew(EnableDomainAutoRenewRequest enableDomainAutoRenewRequest) {
         ExecutionContext executionContext = createExecutionContext(enableDomainAutoRenewRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<EnableDomainAutoRenewRequestrequest = null;
         Response<EnableDomainAutoRenewResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new EnableDomainAutoRenewRequestMarshaller().marshall(super.beforeMarshalling(enableDomainAutoRenewRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<EnableDomainAutoRenewResultJsonUnmarshallerContextunmarshaller =
                 new EnableDomainAutoRenewResultJsonUnmarshaller();
             JsonResponseHandler<EnableDomainAutoRenewResultresponseHandler =
                 new JsonResponseHandler<EnableDomainAutoRenewResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation returns the operation IDs of operations that are not yet complete.

Parameters:
listOperationsRequest Container for the necessary parameters to execute the ListOperations service method on AmazonRoute53Domains.
Returns:
The response from the ListOperations service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public ListOperationsResult listOperations(ListOperationsRequest listOperationsRequest) {
         ExecutionContext executionContext = createExecutionContext(listOperationsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListOperationsRequestrequest = null;
         Response<ListOperationsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListOperationsRequestMarshaller().marshall(super.beforeMarshalling(listOperationsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<ListOperationsResultJsonUnmarshallerContextunmarshaller =
                 new ListOperationsResultJsonUnmarshaller();
             JsonResponseHandler<ListOperationsResultresponseHandler =
                 new JsonResponseHandler<ListOperationsResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.

Parameters:
listDomainsRequest Container for the necessary parameters to execute the ListDomains service method on AmazonRoute53Domains.
Returns:
The response from the ListDomains service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public ListDomainsResult listDomains(ListDomainsRequest listDomainsRequest) {
         ExecutionContext executionContext = createExecutionContext(listDomainsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListDomainsRequestrequest = null;
         Response<ListDomainsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListDomainsRequestMarshaller().marshall(super.beforeMarshalling(listDomainsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<ListDomainsResultJsonUnmarshallerContextunmarshaller =
                 new ListDomainsResultJsonUnmarshaller();
             JsonResponseHandler<ListDomainsResultresponseHandler =
                 new JsonResponseHandler<ListDomainsResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation returns the current status of an operation that is not completed.

Parameters:
getOperationDetailRequest Container for the necessary parameters to execute the GetOperationDetail service method on AmazonRoute53Domains.
Returns:
The response from the GetOperationDetail service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public GetOperationDetailResult getOperationDetail(GetOperationDetailRequest getOperationDetailRequest) {
         ExecutionContext executionContext = createExecutionContext(getOperationDetailRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetOperationDetailRequestrequest = null;
         Response<GetOperationDetailResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetOperationDetailRequestMarshaller().marshall(super.beforeMarshalling(getOperationDetailRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<GetOperationDetailResultJsonUnmarshallerContextunmarshaller =
                 new GetOperationDetailResultJsonUnmarshaller();
             JsonResponseHandler<GetOperationDetailResultresponseHandler =
                 new JsonResponseHandler<GetOperationDetailResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation removes the transfer lock on the domain (specifically the clientTransferProhibited status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

Parameters:
disableDomainTransferLockRequest Container for the necessary parameters to execute the DisableDomainTransferLock service method on AmazonRoute53Domains.
Returns:
The response from the DisableDomainTransferLock service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.DuplicateRequestException
com.amazonaws.services.route53domains.model.TLDRulesViolationException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(disableDomainTransferLockRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DisableDomainTransferLockRequestrequest = null;
         Response<DisableDomainTransferLockResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DisableDomainTransferLockRequestMarshaller().marshall(super.beforeMarshalling(disableDomainTransferLockRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DisableDomainTransferLockResultJsonUnmarshallerContextunmarshaller =
                 new DisableDomainTransferLockResultJsonUnmarshaller();
             JsonResponseHandler<DisableDomainTransferLockResultresponseHandler =
                 new JsonResponseHandler<DisableDomainTransferLockResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation sets the transfer lock on the domain (specifically the clientTransferProhibited status) to prevent domain transfers. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

Parameters:
enableDomainTransferLockRequest Container for the necessary parameters to execute the EnableDomainTransferLock service method on AmazonRoute53Domains.
Returns:
The response from the EnableDomainTransferLock service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.DuplicateRequestException
com.amazonaws.services.route53domains.model.TLDRulesViolationException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(enableDomainTransferLockRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<EnableDomainTransferLockRequestrequest = null;
         Response<EnableDomainTransferLockResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new EnableDomainTransferLockRequestMarshaller().marshall(super.beforeMarshalling(enableDomainTransferLockRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<EnableDomainTransferLockResultJsonUnmarshallerContextunmarshaller =
                 new EnableDomainTransferLockResultJsonUnmarshaller();
             JsonResponseHandler<EnableDomainTransferLockResultresponseHandler =
                 new JsonResponseHandler<EnableDomainTransferLockResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.

If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

Parameters:
updateDomainNameserversRequest Container for the necessary parameters to execute the UpdateDomainNameservers service method on AmazonRoute53Domains.
Returns:
The response from the UpdateDomainNameservers service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.DuplicateRequestException
com.amazonaws.services.route53domains.model.TLDRulesViolationException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public UpdateDomainNameserversResult updateDomainNameservers(UpdateDomainNameserversRequest updateDomainNameserversRequest) {
         ExecutionContext executionContext = createExecutionContext(updateDomainNameserversRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateDomainNameserversRequestrequest = null;
         Response<UpdateDomainNameserversResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateDomainNameserversRequestMarshaller().marshall(super.beforeMarshalling(updateDomainNameserversRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<UpdateDomainNameserversResultJsonUnmarshallerContextunmarshaller =
                 new UpdateDomainNameserversResultJsonUnmarshaller();
             JsonResponseHandler<UpdateDomainNameserversResultresponseHandler =
                 new JsonResponseHandler<UpdateDomainNameserversResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation disables automatic renewal of domain registration for the specified domain.

NOTE:Caution! Amazon Route 53 doesn't have a manual renewal process, so if you disable automatic renewal, registration for the domain will not be renewed when the expiration date passes, and you will lose control of the domain name.

Parameters:
disableDomainAutoRenewRequest Container for the necessary parameters to execute the DisableDomainAutoRenew service method on AmazonRoute53Domains.
Returns:
The response from the DisableDomainAutoRenew service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public DisableDomainAutoRenewResult disableDomainAutoRenew(DisableDomainAutoRenewRequest disableDomainAutoRenewRequest) {
         ExecutionContext executionContext = createExecutionContext(disableDomainAutoRenewRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DisableDomainAutoRenewRequestrequest = null;
         Response<DisableDomainAutoRenewResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DisableDomainAutoRenewRequestMarshaller().marshall(super.beforeMarshalling(disableDomainAutoRenewRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DisableDomainAutoRenewResultJsonUnmarshallerContextunmarshaller =
                 new DisableDomainAutoRenewResultJsonUnmarshaller();
             JsonResponseHandler<DisableDomainAutoRenewResultresponseHandler =
                 new JsonResponseHandler<DisableDomainAutoRenewResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation registers a domain. Domains are registered by the AWS registrar partner, Gandi. For some top-level domains (TLDs), this operation requires extra parameters.

When you register a domain, Amazon Route 53 does the following:

  • Creates a Amazon Route 53 hosted zone that has the same name as the domain. Amazon Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.
  • Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.
  • Optionally enables privacy protection, so WHOIS queries return contact information for our registrar partner, Gandi, instead of the information you entered for registrant, admin, and tech contacts.
  • If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.
  • Charges your AWS account an amount based on the top-level domain. For more information, see Amazon Route 53 Pricing .

Parameters:
registerDomainRequest Container for the necessary parameters to execute the RegisterDomain service method on AmazonRoute53Domains.
Returns:
The response from the RegisterDomain service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.UnsupportedTLDException
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.DuplicateRequestException
com.amazonaws.services.route53domains.model.TLDRulesViolationException
com.amazonaws.services.route53domains.model.DomainLimitExceededException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public RegisterDomainResult registerDomain(RegisterDomainRequest registerDomainRequest) {
         ExecutionContext executionContext = createExecutionContext(registerDomainRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<RegisterDomainRequestrequest = null;
         Response<RegisterDomainResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new RegisterDomainRequestMarshaller().marshall(super.beforeMarshalling(registerDomainRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<RegisterDomainResultJsonUnmarshallerContextunmarshaller =
                 new RegisterDomainResultJsonUnmarshaller();
             JsonResponseHandler<RegisterDomainResultresponseHandler =
                 new JsonResponseHandler<RegisterDomainResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation returns detailed information about the domain. The domain's contact information is also returned as part of the output.

Parameters:
getDomainDetailRequest Container for the necessary parameters to execute the GetDomainDetail service method on AmazonRoute53Domains.
Returns:
The response from the GetDomainDetail service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public GetDomainDetailResult getDomainDetail(GetDomainDetailRequest getDomainDetailRequest) {
         ExecutionContext executionContext = createExecutionContext(getDomainDetailRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetDomainDetailRequestrequest = null;
         Response<GetDomainDetailResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetDomainDetailRequestMarshaller().marshall(super.beforeMarshalling(getDomainDetailRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<GetDomainDetailResultJsonUnmarshallerContextunmarshaller =
                 new GetDomainDetailResultJsonUnmarshaller();
             JsonResponseHandler<GetDomainDetailResultresponseHandler =
                 new JsonResponseHandler<GetDomainDetailResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

This operation adds or updates tags for a specified domain.

All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.

Parameters:
updateTagsForDomainRequest Container for the necessary parameters to execute the UpdateTagsForDomain service method on AmazonRoute53Domains.
Returns:
The response from the UpdateTagsForDomain service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
 
     public UpdateTagsForDomainResult updateTagsForDomain(UpdateTagsForDomainRequest updateTagsForDomainRequest) {
         ExecutionContext executionContext = createExecutionContext(updateTagsForDomainRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateTagsForDomainRequestrequest = null;
         Response<UpdateTagsForDomainResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateTagsForDomainRequestMarshaller().marshall(super.beforeMarshalling(updateTagsForDomainRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<UpdateTagsForDomainResultJsonUnmarshallerContextunmarshaller =
                new UpdateTagsForDomainResultJsonUnmarshaller();
            JsonResponseHandler<UpdateTagsForDomainResultresponseHandler =
                new JsonResponseHandler<UpdateTagsForDomainResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.

Parameters:
retrieveDomainAuthCodeRequest Container for the necessary parameters to execute the RetrieveDomainAuthCode service method on AmazonRoute53Domains.
Returns:
The response from the RetrieveDomainAuthCode service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(retrieveDomainAuthCodeRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RetrieveDomainAuthCodeRequestrequest = null;
        Response<RetrieveDomainAuthCodeResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RetrieveDomainAuthCodeRequestMarshaller().marshall(super.beforeMarshalling(retrieveDomainAuthCodeRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<RetrieveDomainAuthCodeResultJsonUnmarshallerContextunmarshaller =
                new RetrieveDomainAuthCodeResultJsonUnmarshaller();
            JsonResponseHandler<RetrieveDomainAuthCodeResultresponseHandler =
                new JsonResponseHandler<RetrieveDomainAuthCodeResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

This operation transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered with the AWS registrar partner, Gandi.

For transfer requirements, a detailed procedure, and information about viewing the status of a domain transfer, see Transferring Registration for a Domain to Amazon Route 53 in the Amazon Route 53 Developer Guide.

If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you consider transferring your DNS service to Amazon Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.

NOTE:Caution! If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable.

If the transfer is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the transfer doesn't complete successfully, the domain registrant will be notified by email.

Parameters:
transferDomainRequest Container for the necessary parameters to execute the TransferDomain service method on AmazonRoute53Domains.
Returns:
The response from the TransferDomain service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.UnsupportedTLDException
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.DuplicateRequestException
com.amazonaws.services.route53domains.model.TLDRulesViolationException
com.amazonaws.services.route53domains.model.DomainLimitExceededException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
    public TransferDomainResult transferDomain(TransferDomainRequest transferDomainRequest) {
        ExecutionContext executionContext = createExecutionContext(transferDomainRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<TransferDomainRequestrequest = null;
        Response<TransferDomainResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new TransferDomainRequestMarshaller().marshall(super.beforeMarshalling(transferDomainRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<TransferDomainResultJsonUnmarshallerContextunmarshaller =
                new TransferDomainResultJsonUnmarshaller();
            JsonResponseHandler<TransferDomainResultresponseHandler =
                new JsonResponseHandler<TransferDomainResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

This operation updates the specified domain contact's privacy setting. When the privacy option is enabled, personal information such as postal or email address is hidden from the results of a public WHOIS query. The privacy services are provided by the AWS registrar, Gandi. For more information, see the Gandi privacy features .

This operation only affects the privacy of the specified contact type (registrant, administrator, or tech). Successful acceptance returns an operation ID that you can use with GetOperationDetail to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

Parameters:
updateDomainContactPrivacyRequest Container for the necessary parameters to execute the UpdateDomainContactPrivacy service method on AmazonRoute53Domains.
Returns:
The response from the UpdateDomainContactPrivacy service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.DuplicateRequestException
com.amazonaws.services.route53domains.model.TLDRulesViolationException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(updateDomainContactPrivacyRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<UpdateDomainContactPrivacyRequestrequest = null;
        Response<UpdateDomainContactPrivacyResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new UpdateDomainContactPrivacyRequestMarshaller().marshall(super.beforeMarshalling(updateDomainContactPrivacyRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
                new UpdateDomainContactPrivacyResultJsonUnmarshaller();
            JsonResponseHandler<UpdateDomainContactPrivacyResultresponseHandler =
                new JsonResponseHandler<UpdateDomainContactPrivacyResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

This operation returns all of the tags that are associated with the specified domain.

All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.

Parameters:
listTagsForDomainRequest Container for the necessary parameters to execute the ListTagsForDomain service method on AmazonRoute53Domains.
Returns:
The response from the ListTagsForDomain service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
    public ListTagsForDomainResult listTagsForDomain(ListTagsForDomainRequest listTagsForDomainRequest) {
        ExecutionContext executionContext = createExecutionContext(listTagsForDomainRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListTagsForDomainRequestrequest = null;
        Response<ListTagsForDomainResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListTagsForDomainRequestMarshaller().marshall(super.beforeMarshalling(listTagsForDomainRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<ListTagsForDomainResultJsonUnmarshallerContextunmarshaller =
                new ListTagsForDomainResultJsonUnmarshaller();
            JsonResponseHandler<ListTagsForDomainResultresponseHandler =
                new JsonResponseHandler<ListTagsForDomainResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

This operation deletes the specified tags for a domain.

All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.

Parameters:
deleteTagsForDomainRequest Container for the necessary parameters to execute the DeleteTagsForDomain service method on AmazonRoute53Domains.
Returns:
The response from the DeleteTagsForDomain service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.amazonaws.services.route53domains.model.OperationLimitExceededException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
    public DeleteTagsForDomainResult deleteTagsForDomain(DeleteTagsForDomainRequest deleteTagsForDomainRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteTagsForDomainRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DeleteTagsForDomainRequestrequest = null;
        Response<DeleteTagsForDomainResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteTagsForDomainRequestMarshaller().marshall(super.beforeMarshalling(deleteTagsForDomainRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<DeleteTagsForDomainResultJsonUnmarshallerContextunmarshaller =
                new DeleteTagsForDomainResultJsonUnmarshaller();
            JsonResponseHandler<DeleteTagsForDomainResultresponseHandler =
                new JsonResponseHandler<DeleteTagsForDomainResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

This operation returns the operation IDs of operations that are not yet complete.

Returns:
The response from the ListOperations service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
        return listOperations(new ListOperationsRequest());
    }
    
    

This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.

Returns:
The response from the ListDomains service method, as returned by AmazonRoute53Domains.
Throws:
com.amazonaws.services.route53domains.model.InvalidInputException
com.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 AmazonRoute53Domains indicating either a problem with the data in the request, or a server side issue.
        return listDomains(new ListDomainsRequest());
    }
    @Override
    public void setEndpoint(String endpoint) {
        super.setEndpoint(endpoint);
    }
    @Override
    public void setEndpoint(String endpointString serviceNameString regionIdthrows IllegalArgumentException {
        super.setEndpoint(endpointserviceNameregionId);
    }

    
Returns additional metadata for a previously executed successful, request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.

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.

Parameters:
request The originally executed request
Returns:
The response metadata for the specified request, or null if none is available.
        return .getResponseMetadataForRequest(request);
    }
    private <X, Y extends AmazonWebServiceRequestResponse<X> invoke(Request<Y> request,
            HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,
            ExecutionContext executionContext) {
        request.setEndpoint();
        request.setTimeOffset();
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        AWSCredentials credentials;
        awsRequestMetrics.startEvent(.);
        try {
            credentials = .getCredentials();
        } finally {
            awsRequestMetrics.endEvent(.);
        }
        AmazonWebServiceRequest originalRequest = request.getOriginalRequest();
        if (originalRequest != null && originalRequest.getRequestCredentials() != null) {
            credentials = originalRequest.getRequestCredentials();
        }
        executionContext.setCredentials(credentials);
        JsonErrorResponseHandler errorResponseHandler = new JsonErrorResponseHandler();
        Response<X> result = .execute(requestresponseHandler,
                errorResponseHandlerexecutionContext);
        return result;
    }
}
        
New to GrepCode? Check out our FAQ X