AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LockSnapshotResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/LockState.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
27 public:
28 AWS_EC2_API LockSnapshotResponse() = default;
31
33
36 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
37 template <typename SnapshotIdT = Aws::String>
38 void SetSnapshotId(SnapshotIdT&& value) {
39 m_snapshotIdHasBeenSet = true;
40 m_snapshotId = std::forward<SnapshotIdT>(value);
41 }
42 template <typename SnapshotIdT = Aws::String>
43 LockSnapshotResponse& WithSnapshotId(SnapshotIdT&& value) {
44 SetSnapshotId(std::forward<SnapshotIdT>(value));
45 return *this;
46 }
48
50
65 inline LockState GetLockState() const { return m_lockState; }
66 inline void SetLockState(LockState value) {
67 m_lockStateHasBeenSet = true;
68 m_lockState = value;
69 }
71 SetLockState(value);
72 return *this;
73 }
75
77
80 inline int GetLockDuration() const { return m_lockDuration; }
81 inline void SetLockDuration(int value) {
82 m_lockDurationHasBeenSet = true;
83 m_lockDuration = value;
84 }
86 SetLockDuration(value);
87 return *this;
88 }
90
92
95 inline int GetCoolOffPeriod() const { return m_coolOffPeriod; }
96 inline void SetCoolOffPeriod(int value) {
97 m_coolOffPeriodHasBeenSet = true;
98 m_coolOffPeriod = value;
99 }
101 SetCoolOffPeriod(value);
102 return *this;
103 }
105
107
111 inline const Aws::Utils::DateTime& GetCoolOffPeriodExpiresOn() const { return m_coolOffPeriodExpiresOn; }
112 template <typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
113 void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) {
114 m_coolOffPeriodExpiresOnHasBeenSet = true;
115 m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value);
116 }
117 template <typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
118 LockSnapshotResponse& WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) {
119 SetCoolOffPeriodExpiresOn(std::forward<CoolOffPeriodExpiresOnT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::Utils::DateTime& GetLockCreatedOn() const { return m_lockCreatedOn; }
130 template <typename LockCreatedOnT = Aws::Utils::DateTime>
131 void SetLockCreatedOn(LockCreatedOnT&& value) {
132 m_lockCreatedOnHasBeenSet = true;
133 m_lockCreatedOn = std::forward<LockCreatedOnT>(value);
134 }
135 template <typename LockCreatedOnT = Aws::Utils::DateTime>
136 LockSnapshotResponse& WithLockCreatedOn(LockCreatedOnT&& value) {
137 SetLockCreatedOn(std::forward<LockCreatedOnT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Utils::DateTime& GetLockExpiresOn() const { return m_lockExpiresOn; }
148 template <typename LockExpiresOnT = Aws::Utils::DateTime>
149 void SetLockExpiresOn(LockExpiresOnT&& value) {
150 m_lockExpiresOnHasBeenSet = true;
151 m_lockExpiresOn = std::forward<LockExpiresOnT>(value);
152 }
153 template <typename LockExpiresOnT = Aws::Utils::DateTime>
154 LockSnapshotResponse& WithLockExpiresOn(LockExpiresOnT&& value) {
155 SetLockExpiresOn(std::forward<LockExpiresOnT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Utils::DateTime& GetLockDurationStartTime() const { return m_lockDurationStartTime; }
166 template <typename LockDurationStartTimeT = Aws::Utils::DateTime>
167 void SetLockDurationStartTime(LockDurationStartTimeT&& value) {
168 m_lockDurationStartTimeHasBeenSet = true;
169 m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value);
170 }
171 template <typename LockDurationStartTimeT = Aws::Utils::DateTime>
172 LockSnapshotResponse& WithLockDurationStartTime(LockDurationStartTimeT&& value) {
173 SetLockDurationStartTime(std::forward<LockDurationStartTimeT>(value));
174 return *this;
175 }
177
179
180 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
181 template <typename ResponseMetadataT = ResponseMetadata>
182 void SetResponseMetadata(ResponseMetadataT&& value) {
183 m_responseMetadataHasBeenSet = true;
184 m_responseMetadata = std::forward<ResponseMetadataT>(value);
185 }
186 template <typename ResponseMetadataT = ResponseMetadata>
187 LockSnapshotResponse& WithResponseMetadata(ResponseMetadataT&& value) {
188 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_snapshotId;
194
195 LockState m_lockState{LockState::NOT_SET};
196
197 int m_lockDuration{0};
198
199 int m_coolOffPeriod{0};
200
201 Aws::Utils::DateTime m_coolOffPeriodExpiresOn{};
202
203 Aws::Utils::DateTime m_lockCreatedOn{};
204
205 Aws::Utils::DateTime m_lockExpiresOn{};
206
207 Aws::Utils::DateTime m_lockDurationStartTime{};
208
209 ResponseMetadata m_responseMetadata;
210 bool m_snapshotIdHasBeenSet = false;
211 bool m_lockStateHasBeenSet = false;
212 bool m_lockDurationHasBeenSet = false;
213 bool m_coolOffPeriodHasBeenSet = false;
214 bool m_coolOffPeriodExpiresOnHasBeenSet = false;
215 bool m_lockCreatedOnHasBeenSet = false;
216 bool m_lockExpiresOnHasBeenSet = false;
217 bool m_lockDurationStartTimeHasBeenSet = false;
218 bool m_responseMetadataHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace EC2
223} // namespace Aws
void SetLockCreatedOn(LockCreatedOnT &&value)
LockSnapshotResponse & WithCoolOffPeriod(int value)
LockSnapshotResponse & WithLockState(LockState value)
const Aws::Utils::DateTime & GetLockDurationStartTime() const
LockSnapshotResponse & WithLockExpiresOn(LockExpiresOnT &&value)
const Aws::Utils::DateTime & GetCoolOffPeriodExpiresOn() const
void SetResponseMetadata(ResponseMetadataT &&value)
LockSnapshotResponse & WithLockDuration(int value)
LockSnapshotResponse & WithSnapshotId(SnapshotIdT &&value)
const ResponseMetadata & GetResponseMetadata() const
LockSnapshotResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API LockSnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
LockSnapshotResponse & WithLockDurationStartTime(LockDurationStartTimeT &&value)
void SetLockExpiresOn(LockExpiresOnT &&value)
const Aws::Utils::DateTime & GetLockExpiresOn() const
LockSnapshotResponse & WithLockCreatedOn(LockCreatedOnT &&value)
void SetLockDurationStartTime(LockDurationStartTimeT &&value)
LockSnapshotResponse & WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
const Aws::Utils::DateTime & GetLockCreatedOn() const
AWS_EC2_API LockSnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API LockSnapshotResponse()=default
void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
const Aws::String & GetSnapshotId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument