public ImportInstanceLaunchSpecification withGroupNames(java.util.Collection<String> groupNames) {
        setGroupNames(groupNames);
        return this;
    }
<p>
The security group names.
</p>

@param groupNames
       The security group names.
@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/ImportInstanceLaunchSpecification.java