Class: AWSCDK::Connect::CfnUser::UserPhoneConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_user.rb

Overview

Contains information about the phone configuration settings for a user.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(after_contact_work_time_limit: nil, auto_accept: nil, desk_phone_number: nil, persistent_connection: nil, phone_type: nil) ⇒ UserPhoneConfigProperty

Returns a new instance of UserPhoneConfigProperty.

Parameters:

  • after_contact_work_time_limit (Numeric, nil) (defaults to: nil)

    The After Call Work (ACW) timeout setting, in seconds.

  • auto_accept (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    The Auto accept setting.

  • desk_phone_number (String, nil) (defaults to: nil)

    The phone number for the user's desk phone.

  • persistent_connection (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    The persistent connection setting for the user.

  • phone_type (String, nil) (defaults to: nil)

    The phone type.



1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'connect/cfn_user.rb', line 1040

def initialize(after_contact_work_time_limit: nil, auto_accept: nil, desk_phone_number: nil, persistent_connection: nil, phone_type: nil)
  @after_contact_work_time_limit = after_contact_work_time_limit
  Jsii::Type.check_type(@after_contact_work_time_limit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "afterContactWorkTimeLimit") unless @after_contact_work_time_limit.nil?
  @auto_accept = auto_accept
  Jsii::Type.check_type(@auto_accept, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoAccept") unless @auto_accept.nil?
  @desk_phone_number = desk_phone_number
  Jsii::Type.check_type(@desk_phone_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deskPhoneNumber") unless @desk_phone_number.nil?
  @persistent_connection = persistent_connection
  Jsii::Type.check_type(@persistent_connection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "persistentConnection") unless @persistent_connection.nil?
  @phone_type = phone_type
  Jsii::Type.check_type(@phone_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneType") unless @phone_type.nil?
end

Instance Attribute Details

#after_contact_work_time_limitNumeric? (readonly)

The After Call Work (ACW) timeout setting, in seconds.

This parameter has a minimum value of 0 and a maximum value of 2,000,000 seconds (24 days). Enter 0 if you don't want to allocate a specific amount of ACW time. It essentially means an indefinite amount of time. When the conversation ends, ACW starts; the agent must choose Close contact to end ACW.

When returned by a SearchUsers call, AfterContactWorkTimeLimit is returned in milliseconds.



1061
1062
1063
# File 'connect/cfn_user.rb', line 1061

def after_contact_work_time_limit
  @after_contact_work_time_limit
end

#auto_acceptBoolean, ... (readonly)

The Auto accept setting.



1066
1067
1068
# File 'connect/cfn_user.rb', line 1066

def auto_accept
  @auto_accept
end

#desk_phone_numberString? (readonly)

The phone number for the user's desk phone.



1071
1072
1073
# File 'connect/cfn_user.rb', line 1071

def desk_phone_number
  @desk_phone_number
end

#persistent_connectionBoolean, ... (readonly)

The persistent connection setting for the user.



1076
1077
1078
# File 'connect/cfn_user.rb', line 1076

def persistent_connection
  @persistent_connection
end

#phone_typeString? (readonly)

The phone type.



1081
1082
1083
# File 'connect/cfn_user.rb', line 1081

def phone_type
  @phone_type
end

Class Method Details

.jsii_propertiesObject



1083
1084
1085
1086
1087
1088
1089
1090
1091
# File 'connect/cfn_user.rb', line 1083

def self.jsii_properties
  {
    :after_contact_work_time_limit => "afterContactWorkTimeLimit",
    :auto_accept => "autoAccept",
    :desk_phone_number => "deskPhoneNumber",
    :persistent_connection => "persistentConnection",
    :phone_type => "phoneType",
  }
end

Instance Method Details

#to_jsiiObject



1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
# File 'connect/cfn_user.rb', line 1093

def to_jsii
  result = {}
  result.merge!({
    "afterContactWorkTimeLimit" => @after_contact_work_time_limit,
    "autoAccept" => @auto_accept,
    "deskPhoneNumber" => @desk_phone_number,
    "persistentConnection" => @persistent_connection,
    "phoneType" => @phone_type,
  })
  result.compact
end