Class CfnPhoneNumberProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnPhoneNumberProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPhoneNumberProps>
- Enclosing interface:
CfnPhoneNumberProps
@Stability(Stable)
public static final class CfnPhoneNumberProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPhoneNumberProps>
A builder for
CfnPhoneNumberProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.countryCode
(String countryCode) Sets the value ofCfnPhoneNumberProps.getCountryCode()
description
(String description) Sets the value ofCfnPhoneNumberProps.getDescription()
Sets the value ofCfnPhoneNumberProps.getPrefix()
sourcePhoneNumberArn
(String sourcePhoneNumberArn) Sets the value ofCfnPhoneNumberProps.getSourcePhoneNumberArn()
Sets the value ofCfnPhoneNumberProps.getTags()
Sets the value ofCfnPhoneNumberProps.getTargetArn()
Sets the value ofCfnPhoneNumberProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetArn
Sets the value ofCfnPhoneNumberProps.getTargetArn()
- Parameters:
targetArn
- The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to. This parameter is required.- Returns:
this
-
countryCode
Sets the value ofCfnPhoneNumberProps.getCountryCode()
- Parameters:
countryCode
- The ISO country code.- Returns:
this
-
description
Sets the value ofCfnPhoneNumberProps.getDescription()
- Parameters:
description
- The description of the phone number.- Returns:
this
-
prefix
Sets the value ofCfnPhoneNumberProps.getPrefix()
- Parameters:
prefix
- The prefix of the phone number. If provided, it must contain+
as part of the country code. Pattern :^\\+[0-9]{1,15}
- Returns:
this
-
sourcePhoneNumberArn
@Stability(Stable) public CfnPhoneNumberProps.Builder sourcePhoneNumberArn(String sourcePhoneNumberArn) Sets the value ofCfnPhoneNumberProps.getSourcePhoneNumberArn()
- Parameters:
sourcePhoneNumberArn
- The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging. If it is from AWS End User Messaging, it looks like the ARN of the phone number that was imported from AWS End User Messaging.- Returns:
this
-
tags
Sets the value ofCfnPhoneNumberProps.getTags()
- Parameters:
tags
- The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
this
-
type
Sets the value ofCfnPhoneNumberProps.getType()
- Parameters:
type
- The type of phone number.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPhoneNumberProps>
- Returns:
- a new instance of
CfnPhoneNumberProps
- Throws:
NullPointerException
- if any required attribute was not provided
-