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 Details

    • create

      @Stability(Stable) public static CfnPhoneNumber.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnPhoneNumber.Builder.
    • countryCode

      @Stability(Stable) public CfnPhoneNumber.Builder countryCode(String countryCode)
      The ISO country code.

      Parameters:
      countryCode - The ISO country code. This parameter is required.
      Returns:
      this
    • targetArn

      @Stability(Stable) public CfnPhoneNumber.Builder targetArn(String 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

      @Stability(Stable) public CfnPhoneNumber.Builder type(String type)
      The type of phone number.

      Parameters:
      type - The type of phone number. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnPhoneNumber.Builder description(String description)
      The description of the phone number.

      Parameters:
      description - The description of the phone number. This parameter is required.
      Returns:
      this
    • prefix

      @Stability(Stable) public CfnPhoneNumber.Builder prefix(String 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

      @Stability(Stable) public CfnPhoneNumber.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnPhoneNumber build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnPhoneNumber>
      Returns:
      a newly built instance of CfnPhoneNumber.