public CreateLayerRequest withCustomSecurityGroupIds(String... customSecurityGroupIds) {
        if (this.customSecurityGroupIds == null) {
            setCustomSecurityGroupIds(new com.amazonaws.internal.SdkInternalList<String>(customSecurityGroupIds.length));
        }
        for (String ele : customSecurityGroupIds) {
            this.customSecurityGroupIds.add(ele);
        }
        return this;
    }
<p>
An array containing the layer custom security group IDs.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCustomSecurityGroupIds(java.util.Collection)} or
{@link #withCustomSecurityGroupIds(java.util.Collection)} if you want to override the existing values.
</p>

@param customSecurityGroupIds
       An array containing the layer custom security group IDs.
@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/CreateLayerRequest.java