public SavingsPlan withProductTypes(SavingsPlanProductType... productTypes) {
        java.util.ArrayList<String> productTypesCopy = new java.util.ArrayList<String>(productTypes.length);
        for (SavingsPlanProductType value : productTypes) {
            productTypesCopy.add(value.toString());
        }
        if (getProductTypes() == null) {
            setProductTypes(productTypesCopy);
        } else {
            getProductTypes().addAll(productTypesCopy);
        }
        return this;
    }
<p>
The product types.
</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