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()
Sets the value ofCfnPhoneNumberProps.getTags()
Sets the value ofCfnPhoneNumberProps.getTargetArn()
Sets the value ofCfnPhoneNumberProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
countryCode
Sets the value ofCfnPhoneNumberProps.getCountryCode()
- Parameters:
countryCode
- The ISO country code. This parameter is required.- Returns:
this
-
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
-
type
Sets the value ofCfnPhoneNumberProps.getType()
- Parameters:
type
- The type of phone number. This parameter is required.- 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
-
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
-
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
-