@SdkInternalApi
    final ClaimDevicesByClaimCodeResult executeClaimDevicesByClaimCode(ClaimDevicesByClaimCodeRequest claimDevicesByClaimCodeRequest) {

        ExecutionContext executionContext = createExecutionContext(claimDevicesByClaimCodeRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ClaimDevicesByClaimCodeRequest> request = null;
        Response<ClaimDevicesByClaimCodeResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new ClaimDevicesByClaimCodeRequestProtocolMarshaller(protocolFactory).marshall(super
                        .beforeMarshalling(claimDevicesByClaimCodeRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT 1Click Devices Service");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ClaimDevicesByClaimCode");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<ClaimDevicesByClaimCodeResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
                    new ClaimDevicesByClaimCodeResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Adds device(s) to your account (i.e., claim one or more devices) if and only if you received a claim code with
the device(s).
</p>

@param claimDevicesByClaimCodeRequest
@return Result of the ClaimDevicesByClaimCode operation returned by the service.
@throws InvalidRequestException
        400 response
@throws InternalFailureException
        500 response
@throws ForbiddenException
        403 response
@sample AWSIoT1ClickDevices.ClaimDevicesByClaimCode
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode"
     target="_top">AWS API Documentation</a>
aws-java-sdk-iot1clickdevices/src/main/java/com/amazonaws/services/iot1clickdevices/AWSIoT1ClickDevicesClient.java