Class CfnProtectConfiguration.CountryRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnProtectConfiguration.CountryRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProtectConfiguration.CountryRuleProperty>
- Enclosing interface:
CfnProtectConfiguration.CountryRuleProperty
@Stability(Stable)
public static final class CfnProtectConfiguration.CountryRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProtectConfiguration.CountryRuleProperty>
A builder for
CfnProtectConfiguration.CountryRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.countryCode(String countryCode) Sets the value ofCfnProtectConfiguration.CountryRuleProperty.getCountryCode()protectStatus(String protectStatus) Sets the value ofCfnProtectConfiguration.CountryRuleProperty.getProtectStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
countryCode
@Stability(Stable) public CfnProtectConfiguration.CountryRuleProperty.Builder countryCode(String countryCode) Sets the value ofCfnProtectConfiguration.CountryRuleProperty.getCountryCode()- Parameters:
countryCode- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. This parameter is required.- Returns:
this
-
protectStatus
@Stability(Stable) public CfnProtectConfiguration.CountryRuleProperty.Builder protectStatus(String protectStatus) Sets the value ofCfnProtectConfiguration.CountryRuleProperty.getProtectStatus()- Parameters:
protectStatus- The types of protection that can be used. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProtectConfiguration.CountryRuleProperty>- Returns:
- a new instance of
CfnProtectConfiguration.CountryRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-