Class: AWSCDK::QuickSight::CfnDashboard::WhatIfPointScenarioProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::WhatIfPointScenarioProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
33161 33162 33163 33164 33165 33166 |
# File 'quick_sight/cfn_dashboard.rb', line 33161 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.
33172 33173 33174 |
# File 'quick_sight/cfn_dashboard.rb', line 33172 def date @date end |
#value ⇒ Numeric (readonly)
Note:
Default: - 0
The target value that you want to meet for the provided date.
33178 33179 33180 |
# File 'quick_sight/cfn_dashboard.rb', line 33178 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
33180 33181 33182 33183 33184 33185 |
# File 'quick_sight/cfn_dashboard.rb', line 33180 def self.jsii_properties { :date => "date", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
33187 33188 33189 33190 33191 33192 33193 33194 |
# File 'quick_sight/cfn_dashboard.rb', line 33187 def to_jsii result = {} result.merge!({ "date" => @date, "value" => @value, }) result.compact end |