public AmazonRedshiftNodeData withAdvancedOptions(AmazonRedshiftAdvancedOption... advancedOptions) {
        if (this.advancedOptions == null) {
            setAdvancedOptions(new java.util.ArrayList<AmazonRedshiftAdvancedOption>(advancedOptions.length));
        }
        for (AmazonRedshiftAdvancedOption ele : advancedOptions) {
            this.advancedOptions.add(ele);
        }
        return this;
    }
<p>
Optional values when connecting to the Redshift cluster.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAdvancedOptions(java.util.Collection)} or {@link #withAdvancedOptions(java.util.Collection)} if you
want to override the existing values.
</p>

@param advancedOptions
       Optional values when connecting to the Redshift cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/AmazonRedshiftNodeData.java