Class: AWSCDK::Wisdom::CfnMessageTemplate::AgentAttributesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_message_template.rb

Overview

Information about an agent.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(first_name: nil, last_name: nil) ⇒ AgentAttributesProperty

Returns a new instance of AgentAttributesProperty.

Parameters:

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

    The agent’s first name as entered in their Amazon Connect user account.

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

    The agent’s last name as entered in their Amazon Connect user account.



658
659
660
661
662
663
# File 'wisdom/cfn_message_template.rb', line 658

def initialize(first_name: nil, last_name: nil)
  @first_name = first_name
  Jsii::Type.check_type(@first_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "firstName") unless @first_name.nil?
  @last_name = last_name
  Jsii::Type.check_type(@last_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastName") unless @last_name.nil?
end

Instance Attribute Details

#first_nameString? (readonly)

The agent’s first name as entered in their Amazon Connect user account.



669
670
671
# File 'wisdom/cfn_message_template.rb', line 669

def first_name
  @first_name
end

#last_nameString? (readonly)

The agent’s last name as entered in their Amazon Connect user account.



674
675
676
# File 'wisdom/cfn_message_template.rb', line 674

def last_name
  @last_name
end

Class Method Details

.jsii_propertiesObject



676
677
678
679
680
681
# File 'wisdom/cfn_message_template.rb', line 676

def self.jsii_properties
  {
    :first_name => "firstName",
    :last_name => "lastName",
  }
end

Instance Method Details

#to_jsiiObject



683
684
685
686
687
688
689
690
# File 'wisdom/cfn_message_template.rb', line 683

def to_jsii
  result = {}
  result.merge!({
    "firstName" => @first_name,
    "lastName" => @last_name,
  })
  result.compact
end