AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
43 inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
44 inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
45 inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
46 inline LockSnapshotResponse& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
47 inline LockSnapshotResponse& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
48 inline LockSnapshotResponse& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
50
52
67 inline const LockState& GetLockState() const{ return m_lockState; }
68 inline void SetLockState(const LockState& value) { m_lockState = value; }
69 inline void SetLockState(LockState&& value) { m_lockState = std::move(value); }
70 inline LockSnapshotResponse& WithLockState(const LockState& value) { SetLockState(value); return *this;}
71 inline LockSnapshotResponse& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
73
75
78 inline int GetLockDuration() const{ return m_lockDuration; }
79 inline void SetLockDuration(int value) { m_lockDuration = value; }
80 inline LockSnapshotResponse& WithLockDuration(int value) { SetLockDuration(value); return *this;}
82
84
87 inline int GetCoolOffPeriod() const{ return m_coolOffPeriod; }
88 inline void SetCoolOffPeriod(int value) { m_coolOffPeriod = value; }
89 inline LockSnapshotResponse& WithCoolOffPeriod(int value) { SetCoolOffPeriod(value); return *this;}
91
93
97 inline const Aws::Utils::DateTime& GetCoolOffPeriodExpiresOn() const{ return m_coolOffPeriodExpiresOn; }
98 inline void SetCoolOffPeriodExpiresOn(const Aws::Utils::DateTime& value) { m_coolOffPeriodExpiresOn = value; }
99 inline void SetCoolOffPeriodExpiresOn(Aws::Utils::DateTime&& value) { m_coolOffPeriodExpiresOn = std::move(value); }
103
105
109 inline const Aws::Utils::DateTime& GetLockCreatedOn() const{ return m_lockCreatedOn; }
110 inline void SetLockCreatedOn(const Aws::Utils::DateTime& value) { m_lockCreatedOn = value; }
111 inline void SetLockCreatedOn(Aws::Utils::DateTime&& value) { m_lockCreatedOn = std::move(value); }
113 inline LockSnapshotResponse& WithLockCreatedOn(Aws::Utils::DateTime&& value) { SetLockCreatedOn(std::move(value)); return *this;}
115
117
121 inline const Aws::Utils::DateTime& GetLockExpiresOn() const{ return m_lockExpiresOn; }
122 inline void SetLockExpiresOn(const Aws::Utils::DateTime& value) { m_lockExpiresOn = value; }
123 inline void SetLockExpiresOn(Aws::Utils::DateTime&& value) { m_lockExpiresOn = std::move(value); }
125 inline LockSnapshotResponse& WithLockExpiresOn(Aws::Utils::DateTime&& value) { SetLockExpiresOn(std::move(value)); return *this;}
127
129
133 inline const Aws::Utils::DateTime& GetLockDurationStartTime() const{ return m_lockDurationStartTime; }
134 inline void SetLockDurationStartTime(const Aws::Utils::DateTime& value) { m_lockDurationStartTime = value; }
135 inline void SetLockDurationStartTime(Aws::Utils::DateTime&& value) { m_lockDurationStartTime = std::move(value); }
139
141
142 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
143 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
144 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
146 inline LockSnapshotResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
148 private:
149
150 Aws::String m_snapshotId;
151
152 LockState m_lockState;
153
154 int m_lockDuration;
155
156 int m_coolOffPeriod;
157
158 Aws::Utils::DateTime m_coolOffPeriodExpiresOn;
159
160 Aws::Utils::DateTime m_lockCreatedOn;
161
162 Aws::Utils::DateTime m_lockExpiresOn;
163
164 Aws::Utils::DateTime m_lockDurationStartTime;
165
166 ResponseMetadata m_responseMetadata;
167 };
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
LockSnapshotResponse & WithCoolOffPeriod(int value)
void SetCoolOffPeriodExpiresOn(Aws::Utils::DateTime &&value)
void SetLockExpiresOn(Aws::Utils::DateTime &&value)
LockSnapshotResponse & WithCoolOffPeriodExpiresOn(const Aws::Utils::DateTime &value)
LockSnapshotResponse & WithLockCreatedOn(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLockDurationStartTime() const
void SetLockState(const LockState &value)
LockSnapshotResponse & WithSnapshotId(const char *value)
const Aws::Utils::DateTime & GetCoolOffPeriodExpiresOn() const
void SetResponseMetadata(const ResponseMetadata &value)
LockSnapshotResponse & WithLockDuration(int value)
void SetResponseMetadata(ResponseMetadata &&value)
LockSnapshotResponse & WithLockDurationStartTime(const Aws::Utils::DateTime &value)
void SetLockExpiresOn(const Aws::Utils::DateTime &value)
const ResponseMetadata & GetResponseMetadata() const
LockSnapshotResponse & WithLockCreatedOn(const Aws::Utils::DateTime &value)
void SetLockCreatedOn(const Aws::Utils::DateTime &value)
LockSnapshotResponse & WithLockState(const LockState &value)
LockSnapshotResponse & WithCoolOffPeriodExpiresOn(Aws::Utils::DateTime &&value)
LockSnapshotResponse & WithSnapshotId(Aws::String &&value)
AWS_EC2_API LockSnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetSnapshotId(const Aws::String &value)
LockSnapshotResponse & WithLockDurationStartTime(Aws::Utils::DateTime &&value)
LockSnapshotResponse & WithLockExpiresOn(Aws::Utils::DateTime &&value)
void SetCoolOffPeriodExpiresOn(const Aws::Utils::DateTime &value)
LockSnapshotResponse & WithSnapshotId(const Aws::String &value)
LockSnapshotResponse & WithResponseMetadata(const ResponseMetadata &value)
const Aws::Utils::DateTime & GetLockExpiresOn() const
LockSnapshotResponse & WithResponseMetadata(ResponseMetadata &&value)
LockSnapshotResponse & WithLockState(LockState &&value)
const Aws::Utils::DateTime & GetLockCreatedOn() const
LockSnapshotResponse & WithLockExpiresOn(const Aws::Utils::DateTime &value)
AWS_EC2_API LockSnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetLockCreatedOn(Aws::Utils::DateTime &&value)
void SetLockDurationStartTime(Aws::Utils::DateTime &&value)
void SetLockDurationStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetSnapshotId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument