AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LockedSnapshotsInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/LockState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API LockedSnapshotsInfo() = default;
32 AWS_EC2_API LockedSnapshotsInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
43 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
44 template <typename OwnerIdT = Aws::String>
45 void SetOwnerId(OwnerIdT&& value) {
46 m_ownerIdHasBeenSet = true;
47 m_ownerId = std::forward<OwnerIdT>(value);
48 }
49 template <typename OwnerIdT = Aws::String>
50 LockedSnapshotsInfo& WithOwnerId(OwnerIdT&& value) {
51 SetOwnerId(std::forward<OwnerIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
61 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
62 template <typename SnapshotIdT = Aws::String>
63 void SetSnapshotId(SnapshotIdT&& value) {
64 m_snapshotIdHasBeenSet = true;
65 m_snapshotId = std::forward<SnapshotIdT>(value);
66 }
67 template <typename SnapshotIdT = Aws::String>
68 LockedSnapshotsInfo& WithSnapshotId(SnapshotIdT&& value) {
69 SetSnapshotId(std::forward<SnapshotIdT>(value));
70 return *this;
71 }
73
75
90 inline LockState GetLockState() const { return m_lockState; }
91 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
92 inline void SetLockState(LockState value) {
93 m_lockStateHasBeenSet = true;
94 m_lockState = value;
95 }
97 SetLockState(value);
98 return *this;
99 }
101
103
106 inline int GetLockDuration() const { return m_lockDuration; }
107 inline bool LockDurationHasBeenSet() const { return m_lockDurationHasBeenSet; }
108 inline void SetLockDuration(int value) {
109 m_lockDurationHasBeenSet = true;
110 m_lockDuration = value;
111 }
113 SetLockDuration(value);
114 return *this;
115 }
117
119
122 inline int GetCoolOffPeriod() const { return m_coolOffPeriod; }
123 inline bool CoolOffPeriodHasBeenSet() const { return m_coolOffPeriodHasBeenSet; }
124 inline void SetCoolOffPeriod(int value) {
125 m_coolOffPeriodHasBeenSet = true;
126 m_coolOffPeriod = value;
127 }
129 SetCoolOffPeriod(value);
130 return *this;
131 }
133
135
139 inline const Aws::Utils::DateTime& GetCoolOffPeriodExpiresOn() const { return m_coolOffPeriodExpiresOn; }
140 inline bool CoolOffPeriodExpiresOnHasBeenSet() const { return m_coolOffPeriodExpiresOnHasBeenSet; }
141 template <typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
142 void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) {
143 m_coolOffPeriodExpiresOnHasBeenSet = true;
144 m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value);
145 }
146 template <typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
147 LockedSnapshotsInfo& WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) {
148 SetCoolOffPeriodExpiresOn(std::forward<CoolOffPeriodExpiresOnT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::Utils::DateTime& GetLockCreatedOn() const { return m_lockCreatedOn; }
159 inline bool LockCreatedOnHasBeenSet() const { return m_lockCreatedOnHasBeenSet; }
160 template <typename LockCreatedOnT = Aws::Utils::DateTime>
161 void SetLockCreatedOn(LockCreatedOnT&& value) {
162 m_lockCreatedOnHasBeenSet = true;
163 m_lockCreatedOn = std::forward<LockCreatedOnT>(value);
164 }
165 template <typename LockCreatedOnT = Aws::Utils::DateTime>
166 LockedSnapshotsInfo& WithLockCreatedOn(LockCreatedOnT&& value) {
167 SetLockCreatedOn(std::forward<LockCreatedOnT>(value));
168 return *this;
169 }
171
173
179 inline const Aws::Utils::DateTime& GetLockDurationStartTime() const { return m_lockDurationStartTime; }
180 inline bool LockDurationStartTimeHasBeenSet() const { return m_lockDurationStartTimeHasBeenSet; }
181 template <typename LockDurationStartTimeT = Aws::Utils::DateTime>
182 void SetLockDurationStartTime(LockDurationStartTimeT&& value) {
183 m_lockDurationStartTimeHasBeenSet = true;
184 m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value);
185 }
186 template <typename LockDurationStartTimeT = Aws::Utils::DateTime>
187 LockedSnapshotsInfo& WithLockDurationStartTime(LockDurationStartTimeT&& value) {
188 SetLockDurationStartTime(std::forward<LockDurationStartTimeT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::Utils::DateTime& GetLockExpiresOn() const { return m_lockExpiresOn; }
199 inline bool LockExpiresOnHasBeenSet() const { return m_lockExpiresOnHasBeenSet; }
200 template <typename LockExpiresOnT = Aws::Utils::DateTime>
201 void SetLockExpiresOn(LockExpiresOnT&& value) {
202 m_lockExpiresOnHasBeenSet = true;
203 m_lockExpiresOn = std::forward<LockExpiresOnT>(value);
204 }
205 template <typename LockExpiresOnT = Aws::Utils::DateTime>
206 LockedSnapshotsInfo& WithLockExpiresOn(LockExpiresOnT&& value) {
207 SetLockExpiresOn(std::forward<LockExpiresOnT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_ownerId;
213
214 Aws::String m_snapshotId;
215
216 LockState m_lockState{LockState::NOT_SET};
217
218 int m_lockDuration{0};
219
220 int m_coolOffPeriod{0};
221
222 Aws::Utils::DateTime m_coolOffPeriodExpiresOn{};
223
224 Aws::Utils::DateTime m_lockCreatedOn{};
225
226 Aws::Utils::DateTime m_lockDurationStartTime{};
227
228 Aws::Utils::DateTime m_lockExpiresOn{};
229 bool m_ownerIdHasBeenSet = false;
230 bool m_snapshotIdHasBeenSet = false;
231 bool m_lockStateHasBeenSet = false;
232 bool m_lockDurationHasBeenSet = false;
233 bool m_coolOffPeriodHasBeenSet = false;
234 bool m_coolOffPeriodExpiresOnHasBeenSet = false;
235 bool m_lockCreatedOnHasBeenSet = false;
236 bool m_lockDurationStartTimeHasBeenSet = false;
237 bool m_lockExpiresOnHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace EC2
242} // namespace Aws
LockedSnapshotsInfo & WithOwnerId(OwnerIdT &&value)
AWS_EC2_API LockedSnapshotsInfo()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetLockExpiresOn() const
void SetLockCreatedOn(LockCreatedOnT &&value)
AWS_EC2_API LockedSnapshotsInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LockedSnapshotsInfo & WithLockCreatedOn(LockCreatedOnT &&value)
const Aws::String & GetOwnerId() const
LockedSnapshotsInfo & WithLockDuration(int value)
const Aws::Utils::DateTime & GetCoolOffPeriodExpiresOn() const
void SetLockExpiresOn(LockExpiresOnT &&value)
void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
LockedSnapshotsInfo & WithLockDurationStartTime(LockDurationStartTimeT &&value)
LockedSnapshotsInfo & WithLockState(LockState value)
AWS_EC2_API LockedSnapshotsInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSnapshotId() const
LockedSnapshotsInfo & WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
LockedSnapshotsInfo & WithSnapshotId(SnapshotIdT &&value)
LockedSnapshotsInfo & WithLockExpiresOn(LockExpiresOnT &&value)
void SetLockDurationStartTime(LockDurationStartTimeT &&value)
const Aws::Utils::DateTime & GetLockCreatedOn() const
const Aws::Utils::DateTime & GetLockDurationStartTime() const
LockedSnapshotsInfo & WithCoolOffPeriod(int value)
void SetSnapshotId(SnapshotIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream