Class CfnSenderIdProps.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnSenderIdProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSenderIdProps>
- Enclosing interface:
CfnSenderIdProps
@Stability(Stable)
public static final class CfnSenderIdProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSenderIdProps>
A builder for
CfnSenderIdProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deletionProtectionEnabled
(Boolean deletionProtectionEnabled) Sets the value ofCfnSenderIdProps.getDeletionProtectionEnabled()
deletionProtectionEnabled
(IResolvable deletionProtectionEnabled) Sets the value ofCfnSenderIdProps.getDeletionProtectionEnabled()
isoCountryCode
(String isoCountryCode) Sets the value ofCfnSenderIdProps.getIsoCountryCode()
Sets the value ofCfnSenderIdProps.getSenderId()
Sets the value ofCfnSenderIdProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isoCountryCode
Sets the value ofCfnSenderIdProps.getIsoCountryCode()
- Parameters:
isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. This parameter is required.- Returns:
this
-
senderId
Sets the value ofCfnSenderIdProps.getSenderId()
- Parameters:
senderId
- The sender ID string to request. This parameter is required.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnSenderIdProps.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnSenderIdProps.getDeletionProtectionEnabled()
- Parameters:
deletionProtectionEnabled
- By default this is set to false. When set to true the sender ID can't be deleted.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnSenderIdProps.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnSenderIdProps.getDeletionProtectionEnabled()
- Parameters:
deletionProtectionEnabled
- By default this is set to false. When set to true the sender ID can't be deleted.- Returns:
this
-
tags
Sets the value ofCfnSenderIdProps.getTags()
- Parameters:
tags
- An array of tags (key and value pairs) to associate with the sender ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSenderIdProps>
- Returns:
- a new instance of
CfnSenderIdProps
- Throws:
NullPointerException
- if any required attribute was not provided
-