Class CfnProtectConfiguration.CountryRuleSetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnProtectConfiguration.CountryRuleSetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProtectConfiguration.CountryRuleSetProperty>
- Enclosing interface:
CfnProtectConfiguration.CountryRuleSetProperty
@Stability(Stable)
public static final class CfnProtectConfiguration.CountryRuleSetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProtectConfiguration.CountryRuleSetProperty>
A builder for
CfnProtectConfiguration.CountryRuleSetProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getMms()
mms
(IResolvable mms) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getMms()
Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getSms()
sms
(IResolvable sms) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getSms()
Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getVoice()
voice
(IResolvable voice) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getVoice()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mms
@Stability(Stable) public CfnProtectConfiguration.CountryRuleSetProperty.Builder mms(IResolvable mms) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getMms()
- Parameters:
mms
- The set ofCountryRule
s to control which destination countries End User Messaging can send your MMS messages to.- Returns:
this
-
mms
@Stability(Stable) public CfnProtectConfiguration.CountryRuleSetProperty.Builder mms(List<? extends Object> mms) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getMms()
- Parameters:
mms
- The set ofCountryRule
s to control which destination countries End User Messaging can send your MMS messages to.- Returns:
this
-
sms
@Stability(Stable) public CfnProtectConfiguration.CountryRuleSetProperty.Builder sms(IResolvable sms) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getSms()
- Parameters:
sms
- The set ofCountryRule
s to control which destination countries End User Messaging can send your SMS messages to.- Returns:
this
-
sms
@Stability(Stable) public CfnProtectConfiguration.CountryRuleSetProperty.Builder sms(List<? extends Object> sms) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getSms()
- Parameters:
sms
- The set ofCountryRule
s to control which destination countries End User Messaging can send your SMS messages to.- Returns:
this
-
voice
@Stability(Stable) public CfnProtectConfiguration.CountryRuleSetProperty.Builder voice(IResolvable voice) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getVoice()
- Parameters:
voice
- The set ofCountryRule
s to control which destination countries End User Messaging can send your VOICE messages to.- Returns:
this
-
voice
@Stability(Stable) public CfnProtectConfiguration.CountryRuleSetProperty.Builder voice(List<? extends Object> voice) Sets the value ofCfnProtectConfiguration.CountryRuleSetProperty.getVoice()
- Parameters:
voice
- The set ofCountryRule
s to control which destination countries End User Messaging can send your VOICE messages to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProtectConfiguration.CountryRuleSetProperty>
- Returns:
- a new instance of
CfnProtectConfiguration.CountryRuleSetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-