Class CfnRuleGroup.MonetizationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.MonetizationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.MonetizationConfigProperty>
- Enclosing interface:
CfnRuleGroup.MonetizationConfigProperty
@Stability(Stable)
public static final class CfnRuleGroup.MonetizationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.MonetizationConfigProperty>
A builder for
CfnRuleGroup.MonetizationConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cryptoConfig(IResolvable cryptoConfig) Sets the value ofCfnRuleGroup.MonetizationConfigProperty.getCryptoConfig()cryptoConfig(CfnRuleGroup.CryptoConfigProperty cryptoConfig) Sets the value ofCfnRuleGroup.MonetizationConfigProperty.getCryptoConfig()currencyMode(String currencyMode) Sets the value ofCfnRuleGroup.MonetizationConfigProperty.getCurrencyMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cryptoConfig
@Stability(Stable) public CfnRuleGroup.MonetizationConfigProperty.Builder cryptoConfig(IResolvable cryptoConfig) Sets the value ofCfnRuleGroup.MonetizationConfigProperty.getCryptoConfig()- Parameters:
cryptoConfig- Configures cryptocurrency payment settings.- Returns:
this
-
cryptoConfig
@Stability(Stable) public CfnRuleGroup.MonetizationConfigProperty.Builder cryptoConfig(CfnRuleGroup.CryptoConfigProperty cryptoConfig) Sets the value ofCfnRuleGroup.MonetizationConfigProperty.getCryptoConfig()- Parameters:
cryptoConfig- Configures cryptocurrency payment settings.- Returns:
this
-
currencyMode
@Stability(Stable) public CfnRuleGroup.MonetizationConfigProperty.Builder currencyMode(String currencyMode) Sets the value ofCfnRuleGroup.MonetizationConfigProperty.getCurrencyMode()- Parameters:
currencyMode- The currency mode for monetization. Use REAL for production payments and TEST for testing with testnet currencies.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.MonetizationConfigProperty>- Returns:
- a new instance of
CfnRuleGroup.MonetizationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-