public Layer withDefaultSecurityGroupNames(String... defaultSecurityGroupNames) {
        if (this.defaultSecurityGroupNames == null) {
            setDefaultSecurityGroupNames(new com.amazonaws.internal.SdkInternalList<String>(defaultSecurityGroupNames.length));
        }
        for (String ele : defaultSecurityGroupNames) {
            this.defaultSecurityGroupNames.add(ele);
        }
        return this;
    }
public Layer withDefaultSecurityGroupNames ( String ... defaultSecurityGroupNames ) { if ( this . defaultSecurityGroupNames == null ) { setDefaultSecurityGroupNames ( new com . amazonaws . internal . SdkInternalList < String > ( defaultSecurityGroupNames . length ) ) ; } for ( String ele : defaultSecurityGroupNames ) { this . defaultSecurityGroupNames . add ( ele ) ; } return this ; }
<p>
An array containing the layer's security group names.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDefaultSecurityGroupNames(java.util.Collection)} or
{@link #withDefaultSecurityGroupNames(java.util.Collection)} if you want to override the existing values.
</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.