AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
WhatIfRangeScenario.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QuickSight {
20namespace Model {
21
29 public:
30 AWS_QUICKSIGHT_API WhatIfRangeScenario() = default;
31 AWS_QUICKSIGHT_API WhatIfRangeScenario(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
40 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
41 template <typename StartDateT = Aws::Utils::DateTime>
42 void SetStartDate(StartDateT&& value) {
43 m_startDateHasBeenSet = true;
44 m_startDate = std::forward<StartDateT>(value);
45 }
46 template <typename StartDateT = Aws::Utils::DateTime>
47 WhatIfRangeScenario& WithStartDate(StartDateT&& value) {
48 SetStartDate(std::forward<StartDateT>(value));
49 return *this;
50 }
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) {
61 m_endDateHasBeenSet = true;
62 m_endDate = std::forward<EndDateT>(value);
63 }
64 template <typename EndDateT = Aws::Utils::DateTime>
65 WhatIfRangeScenario& WithEndDate(EndDateT&& value) {
66 SetEndDate(std::forward<EndDateT>(value));
67 return *this;
68 }
70
72
75 inline double GetValue() const { return m_value; }
76 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
77 inline void SetValue(double value) {
78 m_valueHasBeenSet = true;
79 m_value = value;
80 }
81 inline WhatIfRangeScenario& WithValue(double value) {
82 SetValue(value);
83 return *this;
84 }
86 private:
87 Aws::Utils::DateTime m_startDate{};
88
89 Aws::Utils::DateTime m_endDate{};
90
91 double m_value{0.0};
92 bool m_startDateHasBeenSet = false;
93 bool m_endDateHasBeenSet = false;
94 bool m_valueHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace QuickSight
99} // 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