@Override
    public ApplySecurityGroupsToLoadBalancerResult applySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request) {
        request = beforeClientExecution(request);
        return executeApplySecurityGroupsToLoadBalancer(request);
    }
<p>
Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified
security groups override the previously associated security groups.
</p>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html#elb-vpc-security-groups"
>Security Groups for Load Balancers in a VPC</a> in the <i>Classic Load Balancers Guide</i>.
</p>

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