Class CfnRuleGroup.PriceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.PriceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.PriceProperty>
- Enclosing interface:
CfnRuleGroup.PriceProperty
@Stability(Stable)
public static final class CfnRuleGroup.PriceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.PriceProperty>
A builder for
CfnRuleGroup.PriceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRuleGroup.PriceProperty.getAmount()build()Builds the configured instance.Sets the value ofCfnRuleGroup.PriceProperty.getCurrency()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amount
Sets the value ofCfnRuleGroup.PriceProperty.getAmount()- Parameters:
amount- The price amount. This parameter is required.- Returns:
this
-
currency
Sets the value ofCfnRuleGroup.PriceProperty.getCurrency()- Parameters:
currency- The cryptocurrency to use for payment. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.PriceProperty>- Returns:
- a new instance of
CfnRuleGroup.PriceProperty - Throws:
NullPointerException- if any required attribute was not provided
-