AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WhatIfRangeScenario.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QUICKSIGHT_API WhatIfRangeScenario() = default;
36 AWS_QUICKSIGHT_API WhatIfRangeScenario(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
46 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
47 template<typename StartDateT = Aws::Utils::DateTime>
48 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
49 template<typename StartDateT = Aws::Utils::DateTime>
50 WhatIfRangeScenario& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
58 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
59 template<typename EndDateT = Aws::Utils::DateTime>
60 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
61 template<typename EndDateT = Aws::Utils::DateTime>
62 WhatIfRangeScenario& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
64
66
69 inline double GetValue() const { return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
72 inline WhatIfRangeScenario& WithValue(double value) { SetValue(value); return *this;}
74 private:
75
76 Aws::Utils::DateTime m_startDate{};
77 bool m_startDateHasBeenSet = false;
78
79 Aws::Utils::DateTime m_endDate{};
80 bool m_endDateHasBeenSet = false;
81
82 double m_value{0.0};
83 bool m_valueHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace QuickSight
88} // namespace Aws
WhatIfRangeScenario & WithStartDate(StartDateT &&value)
AWS_QUICKSIGHT_API WhatIfRangeScenario & operator=(Aws::Utils::Json::JsonView jsonValue)
WhatIfRangeScenario & WithEndDate(EndDateT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
WhatIfRangeScenario & WithValue(double value)
const Aws::Utils::DateTime & GetEndDate() const
const Aws::Utils::DateTime & GetStartDate() const
AWS_QUICKSIGHT_API WhatIfRangeScenario()=default
AWS_QUICKSIGHT_API WhatIfRangeScenario(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue