Class: AWSCDK::Lex::CfnBot::SubSlotTypeCompositionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SubSlotTypeCompositionProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Subslot type composition.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Name of a constituent sub slot inside a composite slot.
-
#slot_type_id ⇒ String?
readonly
The unique identifier assigned to a slot type.
- #slot_type_name ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, slot_type_id: nil, slot_type_name: nil) ⇒ SubSlotTypeCompositionProperty
constructor
A new instance of SubSlotTypeCompositionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, slot_type_id: nil, slot_type_name: nil) ⇒ SubSlotTypeCompositionProperty
Returns a new instance of SubSlotTypeCompositionProperty.
6347 6348 6349 6350 6351 6352 6353 6354 |
# File 'lex/cfn_bot.rb', line 6347 def initialize(name:, slot_type_id: nil, slot_type_name: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @slot_type_id = slot_type_id Jsii::Type.check_type(@slot_type_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotTypeId") unless @slot_type_id.nil? @slot_type_name = slot_type_name Jsii::Type.check_type(@slot_type_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotTypeName") unless @slot_type_name.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
Name of a constituent sub slot inside a composite slot.
6360 6361 6362 |
# File 'lex/cfn_bot.rb', line 6360 def name @name end |
#slot_type_id ⇒ String? (readonly)
The unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique slotTypeId of a custom slot type.
6367 6368 6369 |
# File 'lex/cfn_bot.rb', line 6367 def slot_type_id @slot_type_id end |
#slot_type_name ⇒ String? (readonly)
6370 6371 6372 |
# File 'lex/cfn_bot.rb', line 6370 def slot_type_name @slot_type_name end |
Class Method Details
.jsii_properties ⇒ Object
6372 6373 6374 6375 6376 6377 6378 |
# File 'lex/cfn_bot.rb', line 6372 def self.jsii_properties { :name => "name", :slot_type_id => "slotTypeId", :slot_type_name => "slotTypeName", } end |
Instance Method Details
#to_jsii ⇒ Object
6380 6381 6382 6383 6384 6385 6386 6387 6388 |
# File 'lex/cfn_bot.rb', line 6380 def to_jsii result = {} result.merge!({ "name" => @name, "slotTypeId" => @slot_type_id, "slotTypeName" => @slot_type_name, }) result.compact end |