Class CfnPhoneNumber.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnPhoneNumber.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPhoneNumber>
- Enclosing class:
CfnPhoneNumber
@Stability(Stable)
public static final class CfnPhoneNumber.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPhoneNumber>
A fluent builder for
CfnPhoneNumber
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
countryCode
(String countryCode) The ISO country code.static CfnPhoneNumber.Builder
description
(String description) The description of the phone number.The prefix of the phone number.The tags used to organize, track, or control access for this resource.The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.The type of phone number.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnPhoneNumber.Builder
.
-
countryCode
The ISO country code.- Parameters:
countryCode
- The ISO country code. This parameter is required.- Returns:
this
-
targetArn
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.- 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
The type of phone number.- Parameters:
type
- The type of phone number. This parameter is required.- Returns:
this
-
description
The description of the phone number.- Parameters:
description
- The description of the phone number. This parameter is required.- Returns:
this
-
prefix
The prefix of the phone number. If provided, it must contain+
as part of the country code.Pattern :
^\\+[0-9]{1,15}
- Parameters:
prefix
- The prefix of the phone number. If provided, it must contain+
as part of the country code. This parameter is required.- Returns:
this
-
tags
The tags used to organize, track, or control access for this resource.For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPhoneNumber>
- Returns:
- a newly built instance of
CfnPhoneNumber
.
-