public DescribePoolsResult withPools(PoolInformation... pools) {
        if (this.pools == null) {
            setPools(new java.util.ArrayList<PoolInformation>(pools.length));
        }
        for (PoolInformation ele : pools) {
            this.pools.add(ele);
        }
        return this;
    }
<p>
An array of PoolInformation objects that contain the details for the requested pools.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPools(java.util.Collection)} or {@link #withPools(java.util.Collection)} if you want to override the
existing values.
</p>

@param pools
       An array of PoolInformation objects that contain the details for the requested pools.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpointsmsvoicev2/src/main/java/com/amazonaws/services/pinpointsmsvoicev2/model/DescribePoolsResult.java