public void setSecurityGroups(java.util.Collection<SecurityGroupIdentifier> securityGroups) {
        if (securityGroups == null) {
            this.securityGroups = null;
            return;
        }

        this.securityGroups = new java.util.ArrayList<SecurityGroupIdentifier>(securityGroups);
    }
<p>
The security groups for the instance.
</p>

@param securityGroups
       The security groups for the instance.
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/Instance.java