@SdkInternalApi
    final ModifyLoadBalancerAttributesResult executeModifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest modifyLoadBalancerAttributesRequest) {

        ExecutionContext executionContext = createExecutionContext(modifyLoadBalancerAttributesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ModifyLoadBalancerAttributesRequest> request = null;
        Response<ModifyLoadBalancerAttributesResult> response = null;

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

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

            StaxResponseHandler<ModifyLoadBalancerAttributesResult> responseHandler = new StaxResponseHandler<ModifyLoadBalancerAttributesResult>(
                    new ModifyLoadBalancerAttributesResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Modifies the attributes of the specified load balancer.
</p>
<p>
You can modify the load balancer attributes, such as <code>AccessLogs</code>, <code>ConnectionDraining</code>,
and <code>CrossZoneLoadBalancing</code> by either enabling or disabling them. Or, you can modify the load
balancer attribute <code>ConnectionSettings</code> by specifying an idle connection timeout value for your load
balancer.
</p>
<p>
For more information, see the following in the <i>Classic Load Balancers Guide</i>:
</p>
<ul>
<li>
<p>
<a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html">Cross-
Zone Load Balancing</a>
</p>
</li>
<li>
<p>
<a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html">Connection
Draining</a>
</p>
</li>
<li>
<p>
<a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html">Access
Logs</a>
</p>
</li>
<li>
<p>
<a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html">Idle
Connection Timeout</a>
</p>
</li>
</ul>

@param modifyLoadBalancerAttributesRequest
       Contains the parameters for ModifyLoadBalancerAttributes.
@return Result of the ModifyLoadBalancerAttributes operation returned by the service.
@throws LoadBalancerNotFoundException
        The specified load balancer does not exist.
@throws LoadBalancerAttributeNotFoundException
        The specified load balancer attribute does not exist.
@throws InvalidConfigurationRequestException
        The requested configuration change is not valid.
@sample AmazonElasticLoadBalancing.ModifyLoadBalancerAttributes
@see <a
     href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes"
     target="_top">AWS API Documentation</a>
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/AmazonElasticLoadBalancingClient.java