Class: AWSCDK::BedrockAgentCore::CfnEvaluator::CategoricalScaleDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnEvaluator::CategoricalScaleDefinitionProperty
- Defined in:
- bedrock_agent_core/cfn_evaluator.rb
Overview
A categorical rating scale option.
Instance Attribute Summary collapse
-
#definition ⇒ String
readonly
The description that explains what this categorical rating represents.
-
#label ⇒ String
readonly
The label of this categorical rating option.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, label:) ⇒ CategoricalScaleDefinitionProperty
constructor
A new instance of CategoricalScaleDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, label:) ⇒ CategoricalScaleDefinitionProperty
Returns a new instance of CategoricalScaleDefinitionProperty.
665 666 667 668 669 670 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 665 def initialize(definition:, label:) @definition = definition Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "definition") @label = label Jsii::Type.check_type(@label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "label") end |
Instance Attribute Details
#definition ⇒ String (readonly)
The description that explains what this categorical rating represents.
676 677 678 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 676 def definition @definition end |
#label ⇒ String (readonly)
The label of this categorical rating option.
681 682 683 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 681 def label @label end |
Class Method Details
.jsii_properties ⇒ Object
683 684 685 686 687 688 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 683 def self.jsii_properties { :definition => "definition", :label => "label", } end |
Instance Method Details
#to_jsii ⇒ Object
690 691 692 693 694 695 696 697 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 690 def to_jsii result = {} result.merge!({ "definition" => @definition, "label" => @label, }) result.compact end |