public AdditionalDetail withRuleGroupTypePairs(RuleGroupTypePair... ruleGroupTypePairs) {
        if (this.ruleGroupTypePairs == null) {
            setRuleGroupTypePairs(new com.amazonaws.internal.SdkInternalList<RuleGroupTypePair>(ruleGroupTypePairs.length));
        }
        for (RuleGroupTypePair ele : ruleGroupTypePairs) {
            this.ruleGroupTypePairs.add(ele);
        }
        return this;
    }
<p>
The rule group type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRuleGroupTypePairs(java.util.Collection)} or {@link #withRuleGroupTypePairs(java.util.Collection)} if
you want to override the existing values.
</p>

@param ruleGroupTypePairs
       The rule group type.
@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/AdditionalDetail.java