public Instance withSecurityGroups(java.util.Collection<SecurityGroupIdentifier> securityGroups) {
        setSecurityGroups(securityGroups);
        return this;
    }
<p>
The security groups for the instance.
</p>

@param securityGroups
       The security groups for the instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/Instance.java