Class: AWSCDK::Personalize::CfnSolution::CategoricalHyperParameterRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Personalize::CfnSolution::CategoricalHyperParameterRangeProperty
- Defined in:
- personalize/cfn_solution.rb
Overview
Provides the name and range of a categorical hyperparameter.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the hyperparameter.
-
#values ⇒ Array<String>?
readonly
A list of the categories for the hyperparameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, values: nil) ⇒ CategoricalHyperParameterRangeProperty
constructor
A new instance of CategoricalHyperParameterRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, values: nil) ⇒ CategoricalHyperParameterRangeProperty
Returns a new instance of CategoricalHyperParameterRangeProperty.
691 692 693 694 695 696 |
# File 'personalize/cfn_solution.rb', line 691 def initialize(name: nil, values: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of the hyperparameter.
702 703 704 |
# File 'personalize/cfn_solution.rb', line 702 def name @name end |
#values ⇒ Array<String>? (readonly)
A list of the categories for the hyperparameter.
707 708 709 |
# File 'personalize/cfn_solution.rb', line 707 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
709 710 711 712 713 714 |
# File 'personalize/cfn_solution.rb', line 709 def self.jsii_properties { :name => "name", :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
716 717 718 719 720 721 722 723 |
# File 'personalize/cfn_solution.rb', line 716 def to_jsii result = {} result.merge!({ "name" => @name, "values" => @values, }) result.compact end |