Class: AWSCDK::BedrockAgentCore::CfnEvaluator::NumericalScaleDefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_evaluator.rb

Overview

A numerical rating scale option.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition:, label:, value:) ⇒ NumericalScaleDefinitionProperty

Returns a new instance of NumericalScaleDefinitionProperty.

Parameters:

  • definition (String)

    The description that explains what this numerical rating represents.

  • label (String)

    The label that describes this numerical rating option.

  • value (Numeric)

    The numerical value for this rating scale option.



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

#definitionString (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

#labelString (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

#valueNumeric (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_propertiesObject



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_jsiiObject



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