@SdkInternalApi
    final UpdateProtectionGroupResult executeUpdateProtectionGroup(UpdateProtectionGroupRequest updateProtectionGroupRequest) {

        ExecutionContext executionContext = createExecutionContext(updateProtectionGroupRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<UpdateProtectionGroupRequest> request = null;
        Response<UpdateProtectionGroupResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new UpdateProtectionGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateProtectionGroupRequest));
                // 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, "Shield");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateProtectionGroup");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Updates an existing protection group. A protection group is a grouping of protected resources so they can be
handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
</p>

@param updateProtectionGroupRequest
@return Result of the UpdateProtectionGroup operation returned by the service.
@throws InternalErrorException
        Exception that indicates that a problem occurred with the service infrastructure. You can retry the
        request.
@throws ResourceNotFoundException
        Exception indicating the specified resource does not exist. If available, this exception includes details
        in additional properties.
@throws OptimisticLockException
        Exception that indicates that the resource state has been modified by another client. Retrieve the
        resource and then retry your request.
@throws InvalidParameterException
        Exception that indicates that the parameters passed to the API are invalid. If available, this exception
        includes details in additional properties.
@sample AWSShield.UpdateProtectionGroup
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateProtectionGroup" target="_top">AWS
     API Documentation</a>
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/AWSShieldClient.java