public CreateCapacityReservationFleetRequest withTenancy(String tenancy) {
        setTenancy(tenancy);
        return this;
    }
<p>
Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit this
tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
</p>
<ul>
<li>
<p>
<code>default</code> - The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
Services accounts.
</p>
</li>
<li>
<p>
<code>dedicated</code> - The Capacity Reservations are created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
</p>
</li>
</ul>

@param tenancy
       Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit
       this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:</p>
       <ul>
       <li>
       <p>
       <code>default</code> - The Capacity Reservation Fleet is created on hardware that is shared with other
       Amazon Web Services accounts.
       </p>
       </li>
       <li>
       <p>
       <code>dedicated</code> - The Capacity Reservations are created on single-tenant hardware that is dedicated
       to a single Amazon Web Services account.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see FleetCapacityReservationTenancy
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateCapacityReservationFleetRequest.java