public StartCapacityTaskResult withRequestedInstancePools(InstanceTypeCapacity... requestedInstancePools) {
        if (this.requestedInstancePools == null) {
            setRequestedInstancePools(new java.util.ArrayList<InstanceTypeCapacity>(requestedInstancePools.length));
        }
        for (InstanceTypeCapacity ele : requestedInstancePools) {
            this.requestedInstancePools.add(ele);
        }
        return this;
    }
<p>
List of the instance pools requested in the specified capacity task.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRequestedInstancePools(java.util.Collection)} or
{@link #withRequestedInstancePools(java.util.Collection)} if you want to override the existing values.
</p>

@param requestedInstancePools
       List of the instance pools requested in the specified capacity task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-outposts/src/main/java/com/amazonaws/services/outposts/model/StartCapacityTaskResult.java