public Integer getMaxSpotPriceAsPercentageOfOptimalOnDemandPrice() {
        return this.maxSpotPriceAsPercentageOfOptimalOnDemandPrice;
    }
<p>
[Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand
price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance
type with your specified attributes. If no current generation C, M, or R instance type matches your attributes,
then the identified price is from the lowest priced current generation instance types, and failing that, from the
lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance
types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
</p>
<p>
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
</p>
<p>
If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or <code>memory-mib</code>, the price
protection threshold is based on the per vCPU or per memory price instead of the per instance price.
</p>
<note>
<p>
Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or
<code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If you don't specify either, Amazon
EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types.
To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types
that match your attributes, include one of these parameters and specify a high value, such as <code>999999</code>
.
</p>
</note>

@return [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified
        On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C,
        M, or R instance type with your specified attributes. If no current generation C, M, or R instance type
        matches your attributes, then the identified price is from the lowest priced current generation instance
        types, and failing that, from the lowest priced previous generation instance types that match your
        attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types
        whose price exceeds your specified threshold.</p>
        <p>
        The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
        </p>
        <p>
        If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or <code>memory-mib</code>, the price
        protection threshold is based on the per vCPU or per memory price instead of the per instance price.
        </p>
        <note>
        <p>
        Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or
        <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If you don't specify
        either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide
        range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want
        to consider all instance types that match your attributes, include one of these parameters and specify a
        high value, such as <code>999999</code>.
        </p>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/InstanceRequirementsRequest.java