Class: AWSCDK::BedrockAgentCore::CfnEvaluator::NumericalScaleDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnEvaluator::NumericalScaleDefinitionProperty
- Defined in:
- bedrock_agent_core/cfn_evaluator.rb
Overview
A numerical rating scale option.
Instance Attribute Summary collapse
-
#definition ⇒ String
readonly
The description that explains what this numerical rating represents.
-
#label ⇒ String
readonly
The label that describes this numerical rating option.
-
#value ⇒ Numeric
readonly
The numerical value for this rating scale option.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, label:, value:) ⇒ NumericalScaleDefinitionProperty
constructor
A new instance of NumericalScaleDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, label:, value:) ⇒ NumericalScaleDefinitionProperty
Returns a new instance of NumericalScaleDefinitionProperty.
967 968 969 970 971 972 973 974 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 967 def initialize(definition:, label:, value:) @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") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value") end |
Instance Attribute Details
#definition ⇒ String (readonly)
The description that explains what this numerical rating represents.
980 981 982 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 980 def definition @definition end |
#label ⇒ String (readonly)
The label that describes this numerical rating option.
985 986 987 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 985 def label @label end |
#value ⇒ Numeric (readonly)
The numerical value for this rating scale option.
990 991 992 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 990 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
992 993 994 995 996 997 998 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 992 def self.jsii_properties { :definition => "definition", :label => "label", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1000 1001 1002 1003 1004 1005 1006 1007 1008 |
# File 'bedrock_agent_core/cfn_evaluator.rb', line 1000 def to_jsii result = {} result.merge!({ "definition" => @definition, "label" => @label, "value" => @value, }) result.compact end |