Interface CfnProtectConfiguration.CountryRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnProtectConfiguration.CountryRuleProperty.Jsii$Proxy
- Enclosing class:
CfnProtectConfiguration
@Stability(Stable)
public static interface CfnProtectConfiguration.CountryRuleProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the type of protection to use for a country.
For example, to set Canada as allowed, the CountryRule
would be formatted as follows:
{ "CountryCode": "CA", "ProtectStatus": "ALLOW" }
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.smsvoice.*; CountryRuleProperty countryRuleProperty = CountryRuleProperty.builder() .countryCode("countryCode") .protectStatus("protectStatus") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnProtectConfiguration.CountryRuleProperty
static final class
An implementation forCfnProtectConfiguration.CountryRuleProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.The types of protection that can be used.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCountryCode
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.- See Also:
-
getProtectStatus
The types of protection that can be used.- See Also:
-
builder
-