public RuleOption withSettings(String... settings) {
        if (this.settings == null) {
            setSettings(new com.amazonaws.internal.SdkInternalList<String>(settings.length));
        }
        for (String ele : settings) {
            this.settings.add(ele);
        }
        return this;
    }
<p>
The settings for the keyword.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSettings(java.util.Collection)} or {@link #withSettings(java.util.Collection)} if you want to override
the existing values.
</p>

@param settings
       The settings for the keyword.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RuleOption.java