Class: AWSCDK::QuickSight::CfnTemplate::WhatIfPointScenarioProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::WhatIfPointScenarioProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
Provides the forecast to meet the target for a particular date.
Instance Attribute Summary collapse
-
#date ⇒ String
readonly
The date that you need the forecast results for.
-
#value ⇒ Numeric
readonly
The target value that you want to meet for the provided date.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(date:, value:) ⇒ WhatIfPointScenarioProperty
constructor
A new instance of WhatIfPointScenarioProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(date:, value:) ⇒ WhatIfPointScenarioProperty
Returns a new instance of WhatIfPointScenarioProperty.
30362 30363 30364 30365 30366 30367 |
# File 'quick_sight/cfn_template.rb', line 30362 def initialize(date:, value:) @date = date Jsii::Type.check_type(@date, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "date") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value") end |
Instance Attribute Details
#date ⇒ String (readonly)
The date that you need the forecast results for.
30373 30374 30375 |
# File 'quick_sight/cfn_template.rb', line 30373 def date @date end |
#value ⇒ Numeric (readonly)
Note:
Default: - 0
The target value that you want to meet for the provided date.
30379 30380 30381 |
# File 'quick_sight/cfn_template.rb', line 30379 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
30381 30382 30383 30384 30385 30386 |
# File 'quick_sight/cfn_template.rb', line 30381 def self.jsii_properties { :date => "date", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
30388 30389 30390 30391 30392 30393 30394 30395 |
# File 'quick_sight/cfn_template.rb', line 30388 def to_jsii result = {} result.merge!({ "date" => @date, "value" => @value, }) result.compact end |