public Limits withStorageTypes(StorageType... storageTypes) {
        if (this.storageTypes == null) {
            setStorageTypes(new java.util.ArrayList<StorageType>(storageTypes.length));
        }
        for (StorageType ele : storageTypes) {
            this.storageTypes.add(ele);
        }
        return this;
    }
<p>
Storage-related attributes that are available for a given instance type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStorageTypes(java.util.Collection)} or {@link #withStorageTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param storageTypes
       Storage-related attributes that are available for a given instance type.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/Limits.java