Class: AWSCDK::QuickSight::CfnAnalysis::WhatIfPointScenarioProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.rb

Overview

Provides the forecast to meet the target for a particular date.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date:, value:) ⇒ WhatIfPointScenarioProperty

Returns a new instance of WhatIfPointScenarioProperty.

Parameters:

  • date (String)

    The date that you need the forecast results for.

  • value (Numeric)

    The target value that you want to meet for the provided date.



32090
32091
32092
32093
32094
32095
# File 'quick_sight/cfn_analysis.rb', line 32090

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

#dateString (readonly)

The date that you need the forecast results for.



32101
32102
32103
# File 'quick_sight/cfn_analysis.rb', line 32101

def date
  @date
end

#valueNumeric (readonly)

Note:

Default: - 0

The target value that you want to meet for the provided date.



32107
32108
32109
# File 'quick_sight/cfn_analysis.rb', line 32107

def value
  @value
end

Class Method Details

.jsii_propertiesObject



32109
32110
32111
32112
32113
32114
# File 'quick_sight/cfn_analysis.rb', line 32109

def self.jsii_properties
  {
    :date => "date",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



32116
32117
32118
32119
32120
32121
32122
32123
# File 'quick_sight/cfn_analysis.rb', line 32116

def to_jsii
  result = {}
  result.merge!({
    "date" => @date,
    "value" => @value,
  })
  result.compact
end