@Override
    public SetSecurityGroupsResult setSecurityGroups(SetSecurityGroupsRequest request) {
        request = beforeClientExecution(request);
        return executeSetSecurityGroups(request);
    }
<p>
Associates the specified security groups with the specified Application Load Balancer or Network Load Balancer.
The specified security groups override the previously associated security groups.
</p>
<p>
You can't perform this operation on a Network Load Balancer unless you specified a security group for the load
balancer when you created it.
</p>
<p>
You can't associate a security group with a Gateway Load Balancer.
</p>

@param setSecurityGroupsRequest
@return Result of the SetSecurityGroups operation returned by the service.
@throws LoadBalancerNotFoundException
        The specified load balancer does not exist.
@throws InvalidConfigurationRequestException
        The requested configuration is not valid.
@throws InvalidSecurityGroupException
        The specified security group does not exist.
@sample AmazonElasticLoadBalancing.SetSecurityGroups
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups"
     target="_top">AWS API Documentation</a>
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/AmazonElasticLoadBalancingClient.java