public CreateInstanceConnectEndpointRequest withSecurityGroupIds(java.util.Collection<String> securityGroupIds) {
        setSecurityGroupIds(securityGroupIds);
        return this;
    }
<p>
One or more security groups to associate with the endpoint. If you don't specify a security group, the default
security group for your VPC will be associated with the endpoint.
</p>

@param securityGroupIds
       One or more security groups to associate with the endpoint. If you don't specify a security group, the
       default security group for your VPC will be associated with the endpoint.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateInstanceConnectEndpointRequest.java