public DescribeCapacityReservationsRequest withCapacityReservationIds(String... capacityReservationIds) {
        if (this.capacityReservationIds == null) {
            setCapacityReservationIds(new com.amazonaws.internal.SdkInternalList<String>(capacityReservationIds.length));
        }
        for (String ele : capacityReservationIds) {
            this.capacityReservationIds.add(ele);
        }
        return this;
    }
<p>
The ID of the Capacity Reservation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCapacityReservationIds(java.util.Collection)} or
{@link #withCapacityReservationIds(java.util.Collection)} if you want to override the existing values.
</p>

@param capacityReservationIds
       The ID of the Capacity Reservation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeCapacityReservationsRequest.java