public void setAllSecurityGroups(java.util.Collection<GroupIdentifier> allSecurityGroups) {
        if (allSecurityGroups == null) {
            this.allSecurityGroups = null;
            return;
        }

        this.allSecurityGroups = new com.amazonaws.internal.SdkInternalList<GroupIdentifier>(allSecurityGroups);
    }
<p>
The IDs of the security groups.
</p>

@param allSecurityGroups
       The IDs of the security groups.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/LaunchSpecification.java