public RuleGroupVariablesPortSetsDetails withDefinition(String... definition) {
        if (this.definition == null) {
            setDefinition(new java.util.ArrayList<String>(definition.length));
        }
        for (String ele : definition) {
            this.definition.add(ele);
        }
        return this;
    }
<p>
The list of port ranges.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDefinition(java.util.Collection)} or {@link #withDefinition(java.util.Collection)} if you want to
override the existing values.
</p>

@param definition
       The list of port ranges.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/RuleGroupVariablesPortSetsDetails.java