AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AddOn.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 Lightsail
22{
23namespace Model
24{
25
32 class AddOn
33 {
34 public:
35 AWS_LIGHTSAIL_API AddOn() = default;
36 AWS_LIGHTSAIL_API AddOn(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API AddOn& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 AddOn& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
61 template<typename StatusT = Aws::String>
62 AddOn& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
64
66
72 inline const Aws::String& GetSnapshotTimeOfDay() const { return m_snapshotTimeOfDay; }
73 inline bool SnapshotTimeOfDayHasBeenSet() const { return m_snapshotTimeOfDayHasBeenSet; }
74 template<typename SnapshotTimeOfDayT = Aws::String>
75 void SetSnapshotTimeOfDay(SnapshotTimeOfDayT&& value) { m_snapshotTimeOfDayHasBeenSet = true; m_snapshotTimeOfDay = std::forward<SnapshotTimeOfDayT>(value); }
76 template<typename SnapshotTimeOfDayT = Aws::String>
77 AddOn& WithSnapshotTimeOfDay(SnapshotTimeOfDayT&& value) { SetSnapshotTimeOfDay(std::forward<SnapshotTimeOfDayT>(value)); return *this;}
79
81
87 inline const Aws::String& GetNextSnapshotTimeOfDay() const { return m_nextSnapshotTimeOfDay; }
88 inline bool NextSnapshotTimeOfDayHasBeenSet() const { return m_nextSnapshotTimeOfDayHasBeenSet; }
89 template<typename NextSnapshotTimeOfDayT = Aws::String>
90 void SetNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT&& value) { m_nextSnapshotTimeOfDayHasBeenSet = true; m_nextSnapshotTimeOfDay = std::forward<NextSnapshotTimeOfDayT>(value); }
91 template<typename NextSnapshotTimeOfDayT = Aws::String>
92 AddOn& WithNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT&& value) { SetNextSnapshotTimeOfDay(std::forward<NextSnapshotTimeOfDayT>(value)); return *this;}
94
96
100 inline const Aws::String& GetThreshold() const { return m_threshold; }
101 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
102 template<typename ThresholdT = Aws::String>
103 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet = true; m_threshold = std::forward<ThresholdT>(value); }
104 template<typename ThresholdT = Aws::String>
105 AddOn& WithThreshold(ThresholdT&& value) { SetThreshold(std::forward<ThresholdT>(value)); return *this;}
107
109
114 inline const Aws::String& GetDuration() const { return m_duration; }
115 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
116 template<typename DurationT = Aws::String>
117 void SetDuration(DurationT&& value) { m_durationHasBeenSet = true; m_duration = std::forward<DurationT>(value); }
118 template<typename DurationT = Aws::String>
119 AddOn& WithDuration(DurationT&& value) { SetDuration(std::forward<DurationT>(value)); return *this;}
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_status;
127 bool m_statusHasBeenSet = false;
128
129 Aws::String m_snapshotTimeOfDay;
130 bool m_snapshotTimeOfDayHasBeenSet = false;
131
132 Aws::String m_nextSnapshotTimeOfDay;
133 bool m_nextSnapshotTimeOfDayHasBeenSet = false;
134
135 Aws::String m_threshold;
136 bool m_thresholdHasBeenSet = false;
137
138 Aws::String m_duration;
139 bool m_durationHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Lightsail
144} // namespace Aws
AddOn & WithSnapshotTimeOfDay(SnapshotTimeOfDayT &&value)
Definition AddOn.h:77
const Aws::String & GetDuration() const
Definition AddOn.h:114
bool DurationHasBeenSet() const
Definition AddOn.h:115
void SetSnapshotTimeOfDay(SnapshotTimeOfDayT &&value)
Definition AddOn.h:75
AddOn & WithThreshold(ThresholdT &&value)
Definition AddOn.h:105
AddOn & WithName(NameT &&value)
Definition AddOn.h:50
AddOn & WithNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT &&value)
Definition AddOn.h:92
void SetName(NameT &&value)
Definition AddOn.h:48
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThreshold(ThresholdT &&value)
Definition AddOn.h:103
bool StatusHasBeenSet() const
Definition AddOn.h:58
void SetDuration(DurationT &&value)
Definition AddOn.h:117
void SetStatus(StatusT &&value)
Definition AddOn.h:60
const Aws::String & GetSnapshotTimeOfDay() const
Definition AddOn.h:72
AWS_LIGHTSAIL_API AddOn(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
Definition AddOn.h:101
const Aws::String & GetStatus() const
Definition AddOn.h:57
AddOn & WithStatus(StatusT &&value)
Definition AddOn.h:62
bool SnapshotTimeOfDayHasBeenSet() const
Definition AddOn.h:73
const Aws::String & GetThreshold() const
Definition AddOn.h:100
const Aws::String & GetName() const
Definition AddOn.h:45
void SetNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT &&value)
Definition AddOn.h:90
AWS_LIGHTSAIL_API AddOn()=default
const Aws::String & GetNextSnapshotTimeOfDay() const
Definition AddOn.h:87
AWS_LIGHTSAIL_API AddOn & operator=(Aws::Utils::Json::JsonView jsonValue)
AddOn & WithDuration(DurationT &&value)
Definition AddOn.h:119
bool NameHasBeenSet() const
Definition AddOn.h:46
bool NextSnapshotTimeOfDayHasBeenSet() const
Definition AddOn.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue