public Layer withDefaultSecurityGroupNames(java.util.Collection<String> defaultSecurityGroupNames) {
        setDefaultSecurityGroupNames(defaultSecurityGroupNames);
        return this;
    }
<p>
An array containing the layer's security group names.
</p>

@param defaultSecurityGroupNames
       An array containing the layer's security group names.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Layer.java