Class CfnPricingRule.CustomTierProperty.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnPricingRule.CustomTierProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPricingRule.CustomTierProperty>
- Enclosing interface:
CfnPricingRule.CustomTierProperty
@Stability(Stable)
public static final class CfnPricingRule.CustomTierProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPricingRule.CustomTierProperty>
A builder for
CfnPricingRule.CustomTierProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeginRangeInclusive(Number beginRangeInclusive) Sets the value ofCfnPricingRule.CustomTierProperty.getBeginRangeInclusive()build()Builds the configured instance.endRangeExclusive(Number endRangeExclusive) Sets the value ofCfnPricingRule.CustomTierProperty.getEndRangeExclusive()Sets the value ofCfnPricingRule.CustomTierProperty.getRateValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
beginRangeInclusive
@Stability(Stable) public CfnPricingRule.CustomTierProperty.Builder beginRangeInclusive(Number beginRangeInclusive) Sets the value ofCfnPricingRule.CustomTierProperty.getBeginRangeInclusive()- Parameters:
beginRangeInclusive- The inclusive beginning of the tier's usage range. This parameter is required.- Returns:
this
-
rateValue
Sets the value ofCfnPricingRule.CustomTierProperty.getRateValue()- Parameters:
rateValue- The custom rate applied to usage within the tier's range. This parameter is required.- Returns:
this
-
endRangeExclusive
@Stability(Stable) public CfnPricingRule.CustomTierProperty.Builder endRangeExclusive(Number endRangeExclusive) Sets the value ofCfnPricingRule.CustomTierProperty.getEndRangeExclusive()- Parameters:
endRangeExclusive- The exclusive end of the tier's usage range. Omit for the last tier (infinity).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPricingRule.CustomTierProperty>- Returns:
- a new instance of
CfnPricingRule.CustomTierProperty - Throws:
NullPointerException- if any required attribute was not provided
-