AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LockedSnapshotsInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/LockState.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API LockedSnapshotsInfo() = default;
37 AWS_EC2_API LockedSnapshotsInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
49 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
50 template<typename OwnerIdT = Aws::String>
51 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
52 template<typename OwnerIdT = Aws::String>
53 LockedSnapshotsInfo& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
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) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
64 template<typename SnapshotIdT = Aws::String>
65 LockedSnapshotsInfo& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
67
69
84 inline LockState GetLockState() const { return m_lockState; }
85 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
86 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
87 inline LockedSnapshotsInfo& WithLockState(LockState value) { SetLockState(value); return *this;}
89
91
94 inline int GetLockDuration() const { return m_lockDuration; }
95 inline bool LockDurationHasBeenSet() const { return m_lockDurationHasBeenSet; }
96 inline void SetLockDuration(int value) { m_lockDurationHasBeenSet = true; m_lockDuration = value; }
97 inline LockedSnapshotsInfo& WithLockDuration(int value) { SetLockDuration(value); return *this;}
99
101
104 inline int GetCoolOffPeriod() const { return m_coolOffPeriod; }
105 inline bool CoolOffPeriodHasBeenSet() const { return m_coolOffPeriodHasBeenSet; }
106 inline void SetCoolOffPeriod(int value) { m_coolOffPeriodHasBeenSet = true; m_coolOffPeriod = value; }
107 inline LockedSnapshotsInfo& WithCoolOffPeriod(int value) { SetCoolOffPeriod(value); return *this;}
109
111
115 inline const Aws::Utils::DateTime& GetCoolOffPeriodExpiresOn() const { return m_coolOffPeriodExpiresOn; }
116 inline bool CoolOffPeriodExpiresOnHasBeenSet() const { return m_coolOffPeriodExpiresOnHasBeenSet; }
117 template<typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
118 void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) { m_coolOffPeriodExpiresOnHasBeenSet = true; m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value); }
119 template<typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
120 LockedSnapshotsInfo& WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) { SetCoolOffPeriodExpiresOn(std::forward<CoolOffPeriodExpiresOnT>(value)); return *this;}
122
124
128 inline const Aws::Utils::DateTime& GetLockCreatedOn() const { return m_lockCreatedOn; }
129 inline bool LockCreatedOnHasBeenSet() const { return m_lockCreatedOnHasBeenSet; }
130 template<typename LockCreatedOnT = Aws::Utils::DateTime>
131 void SetLockCreatedOn(LockCreatedOnT&& value) { m_lockCreatedOnHasBeenSet = true; m_lockCreatedOn = std::forward<LockCreatedOnT>(value); }
132 template<typename LockCreatedOnT = Aws::Utils::DateTime>
133 LockedSnapshotsInfo& WithLockCreatedOn(LockCreatedOnT&& value) { SetLockCreatedOn(std::forward<LockCreatedOnT>(value)); return *this;}
135
137
143 inline const Aws::Utils::DateTime& GetLockDurationStartTime() const { return m_lockDurationStartTime; }
144 inline bool LockDurationStartTimeHasBeenSet() const { return m_lockDurationStartTimeHasBeenSet; }
145 template<typename LockDurationStartTimeT = Aws::Utils::DateTime>
146 void SetLockDurationStartTime(LockDurationStartTimeT&& value) { m_lockDurationStartTimeHasBeenSet = true; m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value); }
147 template<typename LockDurationStartTimeT = Aws::Utils::DateTime>
148 LockedSnapshotsInfo& WithLockDurationStartTime(LockDurationStartTimeT&& value) { SetLockDurationStartTime(std::forward<LockDurationStartTimeT>(value)); return *this;}
150
152
156 inline const Aws::Utils::DateTime& GetLockExpiresOn() const { return m_lockExpiresOn; }
157 inline bool LockExpiresOnHasBeenSet() const { return m_lockExpiresOnHasBeenSet; }
158 template<typename LockExpiresOnT = Aws::Utils::DateTime>
159 void SetLockExpiresOn(LockExpiresOnT&& value) { m_lockExpiresOnHasBeenSet = true; m_lockExpiresOn = std::forward<LockExpiresOnT>(value); }
160 template<typename LockExpiresOnT = Aws::Utils::DateTime>
161 LockedSnapshotsInfo& WithLockExpiresOn(LockExpiresOnT&& value) { SetLockExpiresOn(std::forward<LockExpiresOnT>(value)); return *this;}
163 private:
164
165 Aws::String m_ownerId;
166 bool m_ownerIdHasBeenSet = false;
167
168 Aws::String m_snapshotId;
169 bool m_snapshotIdHasBeenSet = false;
170
171 LockState m_lockState{LockState::NOT_SET};
172 bool m_lockStateHasBeenSet = false;
173
174 int m_lockDuration{0};
175 bool m_lockDurationHasBeenSet = false;
176
177 int m_coolOffPeriod{0};
178 bool m_coolOffPeriodHasBeenSet = false;
179
180 Aws::Utils::DateTime m_coolOffPeriodExpiresOn{};
181 bool m_coolOffPeriodExpiresOnHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lockCreatedOn{};
184 bool m_lockCreatedOnHasBeenSet = false;
185
186 Aws::Utils::DateTime m_lockDurationStartTime{};
187 bool m_lockDurationStartTimeHasBeenSet = false;
188
189 Aws::Utils::DateTime m_lockExpiresOn{};
190 bool m_lockExpiresOnHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace EC2
195} // 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