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

        this.securityGroups = new java.util.ArrayList<String>(securityGroups);
    }
<p>
Specifies the security groups associated with the task. These security groups must all be in the same VPC. You
can specify as many as five security groups. If you do not specify a security group, the default security group
for the VPC is used.
</p>

@param securityGroups
       Specifies the security groups associated with the task. These security groups must all be in the same VPC.
       You can specify as many as five security groups. If you do not specify a security group, the default
       security group for the VPC is used.
aws-java-sdk-scheduler/src/main/java/com/amazonaws/services/scheduler/model/AwsVpcConfiguration.java