Class CfnPhoneNumberMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.connect.CfnPhoneNumberMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPhoneNumberMixinProps>
- Enclosing interface:
CfnPhoneNumberMixinProps
@Stability(Stable)
public static final class CfnPhoneNumberMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPhoneNumberMixinProps>
A builder for
CfnPhoneNumberMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.countryCode(String countryCode) Sets the value ofCfnPhoneNumberMixinProps.getCountryCode()description(String description) Sets the value ofCfnPhoneNumberMixinProps.getDescription()Sets the value ofCfnPhoneNumberMixinProps.getPrefix()sourcePhoneNumberArn(String sourcePhoneNumberArn) Sets the value ofCfnPhoneNumberMixinProps.getSourcePhoneNumberArn()Sets the value ofCfnPhoneNumberMixinProps.getTags()Sets the value ofCfnPhoneNumberMixinProps.getTargetArn()Sets the value ofCfnPhoneNumberMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
countryCode
Sets the value ofCfnPhoneNumberMixinProps.getCountryCode()- Parameters:
countryCode- The ISO country code.- Returns:
this
-
description
Sets the value ofCfnPhoneNumberMixinProps.getDescription()- Parameters:
description- The description of the phone number.- Returns:
this
-
prefix
Sets the value ofCfnPhoneNumberMixinProps.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 CfnPhoneNumberMixinProps.Builder sourcePhoneNumberArn(String sourcePhoneNumberArn) Sets the value ofCfnPhoneNumberMixinProps.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 ofCfnPhoneNumberMixinProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
this
-
targetArn
Sets the value ofCfnPhoneNumberMixinProps.getTargetArn()- Parameters:
targetArn- The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.- Returns:
this
-
type
Sets the value ofCfnPhoneNumberMixinProps.getType()- Parameters:
type- The type of phone number.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPhoneNumberMixinProps>- Returns:
- a new instance of
CfnPhoneNumberMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-