@SdkInternalApi
    final SetSubnetsResult executeSetSubnets(SetSubnetsRequest setSubnetsRequest) {

        ExecutionContext executionContext = createExecutionContext(setSubnetsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<SetSubnetsRequest> request = null;
        Response<SetSubnetsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new SetSubnetsRequestMarshaller().marshall(super.beforeMarshalling(setSubnetsRequest));
                // 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, "Elastic Load Balancing v2");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetSubnets");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<SetSubnetsResult> responseHandler = new StaxResponseHandler<SetSubnetsResult>(new SetSubnetsResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer,
Network Load Balancer or Gateway Load Balancer. The specified subnets replace the previously enabled subnets.
</p>
<p>
When you specify subnets for a Network Load Balancer, or Gateway Load Balancer you must include all subnets that
were enabled previously, with their existing configurations, plus any additional subnets.
</p>

@param setSubnetsRequest
@return Result of the SetSubnets operation returned by the service.
@throws LoadBalancerNotFoundException
        The specified load balancer does not exist.
@throws InvalidConfigurationRequestException
        The requested configuration is not valid.
@throws SubnetNotFoundException
        The specified subnet does not exist.
@throws InvalidSubnetException
        The specified subnet is out of available addresses.
@throws AllocationIdNotFoundException
        The specified allocation ID does not exist.
@throws AvailabilityZoneNotSupportedException
        The specified Availability Zone is not supported.
@sample AmazonElasticLoadBalancing.SetSubnets
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets"
     target="_top">AWS API Documentation</a>
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/AmazonElasticLoadBalancingClient.java