Class: AWSCDK::Cases::CfnCaseRule::BooleanOperandsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cases::CfnCaseRule::BooleanOperandsProperty
- Defined in:
- cases/cfn_case_rule.rb
Overview
Boolean operands for a condition.
In the Amazon Connect admin website, case rules are known as case field conditions . For more information about case field conditions, see Add case field conditions to a case template .
Instance Attribute Summary collapse
-
#operand_one ⇒ AWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::OperandOneProperty
readonly
Represents the left hand operand in the condition.
-
#operand_two ⇒ AWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::OperandTwoProperty
readonly
Represents the right hand operand in the condition.
-
#result ⇒ Boolean, AWSCDK::IResolvable
readonly
The value of the outer rule if the condition evaluates to true.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(operand_one:, operand_two:, result:) ⇒ BooleanOperandsProperty
constructor
A new instance of BooleanOperandsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(operand_one:, operand_two:, result:) ⇒ BooleanOperandsProperty
Returns a new instance of BooleanOperandsProperty.
645 646 647 648 649 650 651 652 |
# File 'cases/cfn_case_rule.rb', line 645 def initialize(operand_one:, operand_two:, result:) @operand_one = operand_one.is_a?(Hash) ? ::AWSCDK::Cases::CfnCaseRule::OperandOneProperty.new(**operand_one.transform_keys(&:to_sym)) : operand_one Jsii::Type.check_type(@operand_one, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNlcy5DZm5DYXNlUnVsZS5PcGVyYW5kT25lUHJvcGVydHkifV19fQ==")), "operandOne") @operand_two = operand_two.is_a?(Hash) ? ::AWSCDK::Cases::CfnCaseRule::OperandTwoProperty.new(**operand_two.transform_keys(&:to_sym)) : operand_two Jsii::Type.check_type(@operand_two, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNlcy5DZm5DYXNlUnVsZS5PcGVyYW5kVHdvUHJvcGVydHkifV19fQ==")), "operandTwo") @result = result Jsii::Type.check_type(@result, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "result") end |
Instance Attribute Details
#operand_one ⇒ AWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::OperandOneProperty (readonly)
Represents the left hand operand in the condition.
658 659 660 |
# File 'cases/cfn_case_rule.rb', line 658 def operand_one @operand_one end |
#operand_two ⇒ AWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::OperandTwoProperty (readonly)
Represents the right hand operand in the condition.
663 664 665 |
# File 'cases/cfn_case_rule.rb', line 663 def operand_two @operand_two end |
#result ⇒ Boolean, AWSCDK::IResolvable (readonly)
The value of the outer rule if the condition evaluates to true.
668 669 670 |
# File 'cases/cfn_case_rule.rb', line 668 def result @result end |
Class Method Details
.jsii_properties ⇒ Object
670 671 672 673 674 675 676 |
# File 'cases/cfn_case_rule.rb', line 670 def self.jsii_properties { :operand_one => "operandOne", :operand_two => "operandTwo", :result => "result", } end |
Instance Method Details
#to_jsii ⇒ Object
678 679 680 681 682 683 684 685 686 |
# File 'cases/cfn_case_rule.rb', line 678 def to_jsii result = {} result.merge!({ "operandOne" => @operand_one, "operandTwo" => @operand_two, "result" => @result, }) result.compact end |