public InstanceFleet withInstanceTypeSpecifications(InstanceTypeSpecification... instanceTypeSpecifications) {
        if (this.instanceTypeSpecifications == null) {
            setInstanceTypeSpecifications(new com.amazonaws.internal.SdkInternalList<InstanceTypeSpecification>(instanceTypeSpecifications.length));
        }
        for (InstanceTypeSpecification ele : instanceTypeSpecifications) {
            this.instanceTypeSpecifications.add(ele);
        }
        return this;
    }
<p>
An array of specifications for the instance types that comprise an instance fleet.
</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
       An array of specifications for the instance types that comprise an instance fleet.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/InstanceFleet.java