AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AddOn.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
28class AddOn {
29 public:
30 AWS_LIGHTSAIL_API AddOn() = default;
31 AWS_LIGHTSAIL_API AddOn(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LIGHTSAIL_API AddOn& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 AddOn& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 template <typename StatusT = Aws::String>
60 void SetStatus(StatusT&& value) {
61 m_statusHasBeenSet = true;
62 m_status = std::forward<StatusT>(value);
63 }
64 template <typename StatusT = Aws::String>
65 AddOn& WithStatus(StatusT&& value) {
66 SetStatus(std::forward<StatusT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetSnapshotTimeOfDay() const { return m_snapshotTimeOfDay; }
79 inline bool SnapshotTimeOfDayHasBeenSet() const { return m_snapshotTimeOfDayHasBeenSet; }
80 template <typename SnapshotTimeOfDayT = Aws::String>
81 void SetSnapshotTimeOfDay(SnapshotTimeOfDayT&& value) {
82 m_snapshotTimeOfDayHasBeenSet = true;
83 m_snapshotTimeOfDay = std::forward<SnapshotTimeOfDayT>(value);
84 }
85 template <typename SnapshotTimeOfDayT = Aws::String>
86 AddOn& WithSnapshotTimeOfDay(SnapshotTimeOfDayT&& value) {
87 SetSnapshotTimeOfDay(std::forward<SnapshotTimeOfDayT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::String& GetNextSnapshotTimeOfDay() const { return m_nextSnapshotTimeOfDay; }
100 inline bool NextSnapshotTimeOfDayHasBeenSet() const { return m_nextSnapshotTimeOfDayHasBeenSet; }
101 template <typename NextSnapshotTimeOfDayT = Aws::String>
102 void SetNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT&& value) {
103 m_nextSnapshotTimeOfDayHasBeenSet = true;
104 m_nextSnapshotTimeOfDay = std::forward<NextSnapshotTimeOfDayT>(value);
105 }
106 template <typename NextSnapshotTimeOfDayT = Aws::String>
107 AddOn& WithNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT&& value) {
108 SetNextSnapshotTimeOfDay(std::forward<NextSnapshotTimeOfDayT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetThreshold() const { return m_threshold; }
119 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
120 template <typename ThresholdT = Aws::String>
121 void SetThreshold(ThresholdT&& value) {
122 m_thresholdHasBeenSet = true;
123 m_threshold = std::forward<ThresholdT>(value);
124 }
125 template <typename ThresholdT = Aws::String>
126 AddOn& WithThreshold(ThresholdT&& value) {
127 SetThreshold(std::forward<ThresholdT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::String& GetDuration() const { return m_duration; }
139 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
140 template <typename DurationT = Aws::String>
141 void SetDuration(DurationT&& value) {
142 m_durationHasBeenSet = true;
143 m_duration = std::forward<DurationT>(value);
144 }
145 template <typename DurationT = Aws::String>
146 AddOn& WithDuration(DurationT&& value) {
147 SetDuration(std::forward<DurationT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_name;
153
154 Aws::String m_status;
155
156 Aws::String m_snapshotTimeOfDay;
157
158 Aws::String m_nextSnapshotTimeOfDay;
159
160 Aws::String m_threshold;
161
162 Aws::String m_duration;
163 bool m_nameHasBeenSet = false;
164 bool m_statusHasBeenSet = false;
165 bool m_snapshotTimeOfDayHasBeenSet = false;
166 bool m_nextSnapshotTimeOfDayHasBeenSet = false;
167 bool m_thresholdHasBeenSet = false;
168 bool m_durationHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Lightsail
173} // namespace Aws
AddOn & WithSnapshotTimeOfDay(SnapshotTimeOfDayT &&value)
Definition AddOn.h:86
const Aws::String & GetDuration() const
Definition AddOn.h:138
bool DurationHasBeenSet() const
Definition AddOn.h:139
void SetSnapshotTimeOfDay(SnapshotTimeOfDayT &&value)
Definition AddOn.h:81
AddOn & WithThreshold(ThresholdT &&value)
Definition AddOn.h:126
AddOn & WithName(NameT &&value)
Definition AddOn.h:47
AddOn & WithNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT &&value)
Definition AddOn.h:107
void SetName(NameT &&value)
Definition AddOn.h:42
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThreshold(ThresholdT &&value)
Definition AddOn.h:121
bool StatusHasBeenSet() const
Definition AddOn.h:58
void SetDuration(DurationT &&value)
Definition AddOn.h:141
void SetStatus(StatusT &&value)
Definition AddOn.h:60
const Aws::String & GetSnapshotTimeOfDay() const
Definition AddOn.h:78
AWS_LIGHTSAIL_API AddOn(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
Definition AddOn.h:119
const Aws::String & GetStatus() const
Definition AddOn.h:57
AddOn & WithStatus(StatusT &&value)
Definition AddOn.h:65
bool SnapshotTimeOfDayHasBeenSet() const
Definition AddOn.h:79
const Aws::String & GetThreshold() const
Definition AddOn.h:118
const Aws::String & GetName() const
Definition AddOn.h:39
void SetNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT &&value)
Definition AddOn.h:102
AWS_LIGHTSAIL_API AddOn()=default
const Aws::String & GetNextSnapshotTimeOfDay() const
Definition AddOn.h:99
AWS_LIGHTSAIL_API AddOn & operator=(Aws::Utils::Json::JsonView jsonValue)
AddOn & WithDuration(DurationT &&value)
Definition AddOn.h:146
bool NameHasBeenSet() const
Definition AddOn.h:40
bool NextSnapshotTimeOfDayHasBeenSet() const
Definition AddOn.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue