public InstanceRequirementsRequest withOnDemandMaxPricePercentageOverLowestPrice(Integer onDemandMaxPricePercentageOverLowestPrice) {
        setOnDemandMaxPricePercentageOverLowestPrice(onDemandMaxPricePercentageOverLowestPrice);
        return this;
    }
<p>
[Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than 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. 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>
To indicate no price protection threshold, specify a high value, such as <code>999999</code>.
</p>
<p>
This parameter is not supported for <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html"
>GetSpotPlacementScores</a> and <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html"
>GetInstanceTypesFromInstanceRequirements</a>.
</p>
<note>
<p>
If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or <code>memory-mib</code>, the price
protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
</p>
</note>
<p>
Default: <code>20</code>
</p>

@param onDemandMaxPricePercentageOverLowestPrice
       [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than 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. 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>
       To indicate no price protection threshold, specify a high value, such as <code>999999</code>.
       </p>
       <p>
       This parameter is not supported for <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html"
       >GetSpotPlacementScores</a> and <a href=
       "https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html"
       >GetInstanceTypesFromInstanceRequirements</a>.
       </p>
       <note>
       <p>
       If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or <code>memory-mib</code>, the price
       protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance
       price.
       </p>
       </note>
       <p>
       Default: <code>20</code>
@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/InstanceRequirementsRequest.java