Class CfnProtectConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnProtectConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProtectConfigurationProps>
- Enclosing interface:
CfnProtectConfigurationProps
@Stability(Stable)
public static final class CfnProtectConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProtectConfigurationProps>
A builder for
CfnProtectConfigurationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.countryRuleSet
(IResolvable countryRuleSet) Sets the value ofCfnProtectConfigurationProps.getCountryRuleSet()
countryRuleSet
(CfnProtectConfiguration.CountryRuleSetProperty countryRuleSet) Sets the value ofCfnProtectConfigurationProps.getCountryRuleSet()
deletionProtectionEnabled
(Boolean deletionProtectionEnabled) Sets the value ofCfnProtectConfigurationProps.getDeletionProtectionEnabled()
deletionProtectionEnabled
(IResolvable deletionProtectionEnabled) Sets the value ofCfnProtectConfigurationProps.getDeletionProtectionEnabled()
Sets the value ofCfnProtectConfigurationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
countryRuleSet
@Stability(Stable) public CfnProtectConfigurationProps.Builder countryRuleSet(IResolvable countryRuleSet) Sets the value ofCfnProtectConfigurationProps.getCountryRuleSet()
- Parameters:
countryRuleSet
- The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to.- Returns:
this
-
countryRuleSet
@Stability(Stable) public CfnProtectConfigurationProps.Builder countryRuleSet(CfnProtectConfiguration.CountryRuleSetProperty countryRuleSet) Sets the value ofCfnProtectConfigurationProps.getCountryRuleSet()
- Parameters:
countryRuleSet
- The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnProtectConfigurationProps.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnProtectConfigurationProps.getDeletionProtectionEnabled()
- Parameters:
deletionProtectionEnabled
- The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnProtectConfigurationProps.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnProtectConfigurationProps.getDeletionProtectionEnabled()
- Parameters:
deletionProtectionEnabled
- The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false.- Returns:
this
-
tags
Sets the value ofCfnProtectConfigurationProps.getTags()
- Parameters:
tags
- An array of key and value pair tags that are associated with the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProtectConfigurationProps>
- Returns:
- a new instance of
CfnProtectConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-