public String getCapacityReservationPreference() {
        return this.capacityReservationPreference;
    }
<p>
Indicates the instance's Capacity Reservation preferences. Possible preferences include:
</p>
<ul>
<li>
<p>
<code>open</code> - The instance can run in any <code>open</code> Capacity Reservation that has matching
attributes (instance type, platform, Availability Zone).
</p>
</li>
<li>
<p>
<code>none</code> - The instance avoids running in a Capacity Reservation even if one is available. The instance
runs in On-Demand capacity.
</p>
</li>
</ul>

@return Indicates the instance's Capacity Reservation preferences. Possible preferences include:</p>
        <ul>
        <li>
        <p>
        <code>open</code> - The instance can run in any <code>open</code> Capacity Reservation that has matching
        attributes (instance type, platform, Availability Zone).
        </p>
        </li>
        <li>
        <p>
        <code>none</code> - The instance avoids running in a Capacity Reservation even if one is available. The
        instance runs in On-Demand capacity.
        </p>
        </li>
@see CapacityReservationPreference
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/LaunchTemplateCapacityReservationSpecificationResponse.java