public CreateCapacityReservationFleetRequest withInstanceTypeSpecifications(ReservationFleetInstanceSpecification... instanceTypeSpecifications) {
        if (this.instanceTypeSpecifications == null) {
            setInstanceTypeSpecifications(new com.amazonaws.internal.SdkInternalList<ReservationFleetInstanceSpecification>(instanceTypeSpecifications.length));
        }
        for (ReservationFleetInstanceSpecification ele : instanceTypeSpecifications) {
            this.instanceTypeSpecifications.add(ele);
        }
        return this;
    }
<p>
Information about the instance types for which to reserve the capacity.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstanceTypeSpecifications(java.util.Collection)} or
{@link #withInstanceTypeSpecifications(java.util.Collection)} if you want to override the existing values.
</p>

@param instanceTypeSpecifications
       Information about the instance types for which to reserve the capacity.
@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/CreateCapacityReservationFleetRequest.java