public SavingsPlan withProductTypes(String... productTypes) {
        if (this.productTypes == null) {
            setProductTypes(new java.util.ArrayList<String>(productTypes.length));
        }
        for (String ele : productTypes) {
            this.productTypes.add(ele);
        }
        return this;
    }
<p>
The product types.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setProductTypes(java.util.Collection)} or {@link #withProductTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param productTypes
       The product types.
@return Returns a reference to this object so that method calls can be chained together.
@see SavingsPlanProductType
aws-java-sdk-savingsplans/src/main/java/com/amazonaws/services/savingsplans/model/SavingsPlan.java