Class: AWSCDK::Evidently::CfnExperiment::TreatmentObjectProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Evidently::CfnExperiment::TreatmentObjectProperty
- Defined in:
- evidently/cfn_experiment.rb
Overview
A structure that defines one treatment in an experiment.
A treatment is a variation of the feature that you are including in the experiment.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the treatment.
-
#feature ⇒ String
readonly
The name of the feature for this experiment.
-
#treatment_name ⇒ String
readonly
A name for this treatment.
-
#variation ⇒ String
readonly
The name of the variation to use for this treatment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(feature:, treatment_name:, variation:, description: nil) ⇒ TreatmentObjectProperty
constructor
A new instance of TreatmentObjectProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(feature:, treatment_name:, variation:, description: nil) ⇒ TreatmentObjectProperty
Returns a new instance of TreatmentObjectProperty.
878 879 880 881 882 883 884 885 886 887 |
# File 'evidently/cfn_experiment.rb', line 878 def initialize(feature:, treatment_name:, variation:, description: nil) @feature = feature Jsii::Type.check_type(@feature, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "feature") @treatment_name = treatment_name Jsii::Type.check_type(@treatment_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "treatmentName") @variation = variation Jsii::Type.check_type(@variation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variation") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the treatment.
910 911 912 |
# File 'evidently/cfn_experiment.rb', line 910 def description @description end |
#feature ⇒ String (readonly)
The name of the feature for this experiment.
893 894 895 |
# File 'evidently/cfn_experiment.rb', line 893 def feature @feature end |
#treatment_name ⇒ String (readonly)
A name for this treatment.
It can include up to 127 characters.
900 901 902 |
# File 'evidently/cfn_experiment.rb', line 900 def treatment_name @treatment_name end |
#variation ⇒ String (readonly)
The name of the variation to use for this treatment.
905 906 907 |
# File 'evidently/cfn_experiment.rb', line 905 def variation @variation end |
Class Method Details
.jsii_properties ⇒ Object
912 913 914 915 916 917 918 919 |
# File 'evidently/cfn_experiment.rb', line 912 def self.jsii_properties { :feature => "feature", :treatment_name => "treatmentName", :variation => "variation", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
921 922 923 924 925 926 927 928 929 930 |
# File 'evidently/cfn_experiment.rb', line 921 def to_jsii result = {} result.merge!({ "feature" => @feature, "treatmentName" => @treatment_name, "variation" => @variation, "description" => @description, }) result.compact end |