AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LockSnapshotResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/LockState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_EC2_API LockSnapshotResponse() = default;
36
37
39
42 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
43 template<typename SnapshotIdT = Aws::String>
44 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
45 template<typename SnapshotIdT = Aws::String>
46 LockSnapshotResponse& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
48
50
65 inline LockState GetLockState() const { return m_lockState; }
66 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
67 inline LockSnapshotResponse& WithLockState(LockState value) { SetLockState(value); return *this;}
69
71
74 inline int GetLockDuration() const { return m_lockDuration; }
75 inline void SetLockDuration(int value) { m_lockDurationHasBeenSet = true; m_lockDuration = value; }
76 inline LockSnapshotResponse& WithLockDuration(int value) { SetLockDuration(value); return *this;}
78
80
83 inline int GetCoolOffPeriod() const { return m_coolOffPeriod; }
84 inline void SetCoolOffPeriod(int value) { m_coolOffPeriodHasBeenSet = true; m_coolOffPeriod = value; }
85 inline LockSnapshotResponse& WithCoolOffPeriod(int value) { SetCoolOffPeriod(value); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetCoolOffPeriodExpiresOn() const { return m_coolOffPeriodExpiresOn; }
94 template<typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
95 void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) { m_coolOffPeriodExpiresOnHasBeenSet = true; m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value); }
96 template<typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
97 LockSnapshotResponse& WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) { SetCoolOffPeriodExpiresOn(std::forward<CoolOffPeriodExpiresOnT>(value)); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetLockCreatedOn() const { return m_lockCreatedOn; }
106 template<typename LockCreatedOnT = Aws::Utils::DateTime>
107 void SetLockCreatedOn(LockCreatedOnT&& value) { m_lockCreatedOnHasBeenSet = true; m_lockCreatedOn = std::forward<LockCreatedOnT>(value); }
108 template<typename LockCreatedOnT = Aws::Utils::DateTime>
109 LockSnapshotResponse& WithLockCreatedOn(LockCreatedOnT&& value) { SetLockCreatedOn(std::forward<LockCreatedOnT>(value)); return *this;}
111
113
117 inline const Aws::Utils::DateTime& GetLockExpiresOn() const { return m_lockExpiresOn; }
118 template<typename LockExpiresOnT = Aws::Utils::DateTime>
119 void SetLockExpiresOn(LockExpiresOnT&& value) { m_lockExpiresOnHasBeenSet = true; m_lockExpiresOn = std::forward<LockExpiresOnT>(value); }
120 template<typename LockExpiresOnT = Aws::Utils::DateTime>
121 LockSnapshotResponse& WithLockExpiresOn(LockExpiresOnT&& value) { SetLockExpiresOn(std::forward<LockExpiresOnT>(value)); return *this;}
123
125
129 inline const Aws::Utils::DateTime& GetLockDurationStartTime() const { return m_lockDurationStartTime; }
130 template<typename LockDurationStartTimeT = Aws::Utils::DateTime>
131 void SetLockDurationStartTime(LockDurationStartTimeT&& value) { m_lockDurationStartTimeHasBeenSet = true; m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value); }
132 template<typename LockDurationStartTimeT = Aws::Utils::DateTime>
133 LockSnapshotResponse& WithLockDurationStartTime(LockDurationStartTimeT&& value) { SetLockDurationStartTime(std::forward<LockDurationStartTimeT>(value)); return *this;}
135
137
138 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
139 template<typename ResponseMetadataT = ResponseMetadata>
140 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
141 template<typename ResponseMetadataT = ResponseMetadata>
142 LockSnapshotResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
144 private:
145
146 Aws::String m_snapshotId;
147 bool m_snapshotIdHasBeenSet = false;
148
149 LockState m_lockState{LockState::NOT_SET};
150 bool m_lockStateHasBeenSet = false;
151
152 int m_lockDuration{0};
153 bool m_lockDurationHasBeenSet = false;
154
155 int m_coolOffPeriod{0};
156 bool m_coolOffPeriodHasBeenSet = false;
157
158 Aws::Utils::DateTime m_coolOffPeriodExpiresOn{};
159 bool m_coolOffPeriodExpiresOnHasBeenSet = false;
160
161 Aws::Utils::DateTime m_lockCreatedOn{};
162 bool m_lockCreatedOnHasBeenSet = false;
163
164 Aws::Utils::DateTime m_lockExpiresOn{};
165 bool m_lockExpiresOnHasBeenSet = false;
166
167 Aws::Utils::DateTime m_lockDurationStartTime{};
168 bool m_lockDurationStartTimeHasBeenSet = false;
169
170 ResponseMetadata m_responseMetadata;
171 bool m_responseMetadataHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace EC2
176} // 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