Class: AWSCDK::Connect::CfnUser::PhoneNumberConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnUser::PhoneNumberConfigProperty
- Defined in:
- connect/cfn_user.rb
Overview
Phone Number configuration per channel.
Instance Attribute Summary collapse
-
#channel ⇒ String
readonly
The channels that agents can handle in the Contact Control Panel (CCP).
-
#phone_number ⇒ String?
readonly
The phone number for the user's desk phone.
-
#phone_type ⇒ String
readonly
The phone type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel:, phone_type:, phone_number: nil) ⇒ PhoneNumberConfigProperty
constructor
A new instance of PhoneNumberConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel:, phone_type:, phone_number: nil) ⇒ PhoneNumberConfigProperty
Returns a new instance of PhoneNumberConfigProperty.
900 901 902 903 904 905 906 907 |
# File 'connect/cfn_user.rb', line 900 def initialize(channel:, phone_type:, phone_number: nil) @channel = channel Jsii::Type.check_type(@channel, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channel") @phone_type = phone_type Jsii::Type.check_type(@phone_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneType") @phone_number = phone_number Jsii::Type.check_type(@phone_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneNumber") unless @phone_number.nil? end |
Instance Attribute Details
#channel ⇒ String (readonly)
The channels that agents can handle in the Contact Control Panel (CCP).
913 914 915 |
# File 'connect/cfn_user.rb', line 913 def channel @channel end |
#phone_number ⇒ String? (readonly)
The phone number for the user's desk phone.
923 924 925 |
# File 'connect/cfn_user.rb', line 923 def phone_number @phone_number end |
#phone_type ⇒ String (readonly)
The phone type.
918 919 920 |
# File 'connect/cfn_user.rb', line 918 def phone_type @phone_type end |
Class Method Details
.jsii_properties ⇒ Object
925 926 927 928 929 930 931 |
# File 'connect/cfn_user.rb', line 925 def self.jsii_properties { :channel => "channel", :phone_type => "phoneType", :phone_number => "phoneNumber", } end |
Instance Method Details
#to_jsii ⇒ Object
933 934 935 936 937 938 939 940 941 |
# File 'connect/cfn_user.rb', line 933 def to_jsii result = {} result.merge!({ "channel" => @channel, "phoneType" => @phone_type, "phoneNumber" => @phone_number, }) result.compact end |