public ListTapePoolsResult withPoolInfos(PoolInfo... poolInfos) {
        if (this.poolInfos == null) {
            setPoolInfos(new com.amazonaws.internal.SdkInternalList<PoolInfo>(poolInfos.length));
        }
        for (PoolInfo ele : poolInfos) {
            this.poolInfos.add(ele);
        }
        return this;
    }
<p>
An array of <code>PoolInfo</code> objects, where each object describes a single custom tape pool. If there are no
custom tape pools, the <code>PoolInfos</code> is an empty array.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPoolInfos(java.util.Collection)} or {@link #withPoolInfos(java.util.Collection)} if you want to
override the existing values.
</p>

@param poolInfos
       An array of <code>PoolInfo</code> objects, where each object describes a single custom tape pool. If there
       are no custom tape pools, the <code>PoolInfos</code> is an empty array.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/ListTapePoolsResult.java