AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartSnapshotResult.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ebs/model/Status.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ebs/model/SSEType.h>
13#include <aws/ebs/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace EBS
29{
30namespace Model
31{
33 {
34 public:
35 AWS_EBS_API StartSnapshotResult();
38
39
41
44 inline const Aws::String& GetDescription() const{ return m_description; }
45 inline void SetDescription(const Aws::String& value) { m_description = value; }
46 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
47 inline void SetDescription(const char* value) { m_description.assign(value); }
48 inline StartSnapshotResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
49 inline StartSnapshotResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
50 inline StartSnapshotResult& WithDescription(const char* value) { SetDescription(value); return *this;}
52
54
57 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
58 inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
59 inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
60 inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
61 inline StartSnapshotResult& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
62 inline StartSnapshotResult& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
63 inline StartSnapshotResult& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
65
67
70 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
71 inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
72 inline void SetOwnerId(Aws::String&& value) { m_ownerId = std::move(value); }
73 inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
74 inline StartSnapshotResult& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
75 inline StartSnapshotResult& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
76 inline StartSnapshotResult& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
78
80
83 inline const Status& GetStatus() const{ return m_status; }
84 inline void SetStatus(const Status& value) { m_status = value; }
85 inline void SetStatus(Status&& value) { m_status = std::move(value); }
86 inline StartSnapshotResult& WithStatus(const Status& value) { SetStatus(value); return *this;}
87 inline StartSnapshotResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
95 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
96 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
97 inline StartSnapshotResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
98 inline StartSnapshotResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
100
102
105 inline long long GetVolumeSize() const{ return m_volumeSize; }
106 inline void SetVolumeSize(long long value) { m_volumeSize = value; }
107 inline StartSnapshotResult& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;}
109
111
114 inline int GetBlockSize() const{ return m_blockSize; }
115 inline void SetBlockSize(int value) { m_blockSize = value; }
116 inline StartSnapshotResult& WithBlockSize(int value) { SetBlockSize(value); return *this;}
118
120
127 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
128 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
129 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
130 inline StartSnapshotResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
131 inline StartSnapshotResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
132 inline StartSnapshotResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
133 inline StartSnapshotResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
135
137
140 inline const Aws::String& GetParentSnapshotId() const{ return m_parentSnapshotId; }
141 inline void SetParentSnapshotId(const Aws::String& value) { m_parentSnapshotId = value; }
142 inline void SetParentSnapshotId(Aws::String&& value) { m_parentSnapshotId = std::move(value); }
143 inline void SetParentSnapshotId(const char* value) { m_parentSnapshotId.assign(value); }
144 inline StartSnapshotResult& WithParentSnapshotId(const Aws::String& value) { SetParentSnapshotId(value); return *this;}
145 inline StartSnapshotResult& WithParentSnapshotId(Aws::String&& value) { SetParentSnapshotId(std::move(value)); return *this;}
146 inline StartSnapshotResult& WithParentSnapshotId(const char* value) { SetParentSnapshotId(value); return *this;}
148
150
154 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
155 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; }
156 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); }
157 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); }
158 inline StartSnapshotResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
159 inline StartSnapshotResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
160 inline StartSnapshotResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
162
164
167 inline const SSEType& GetSseType() const{ return m_sseType; }
168 inline void SetSseType(const SSEType& value) { m_sseType = value; }
169 inline void SetSseType(SSEType&& value) { m_sseType = std::move(value); }
170 inline StartSnapshotResult& WithSseType(const SSEType& value) { SetSseType(value); return *this;}
171 inline StartSnapshotResult& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;}
173
175
176 inline const Aws::String& GetRequestId() const{ return m_requestId; }
177 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
178 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
179 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
180 inline StartSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
181 inline StartSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
182 inline StartSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
184 private:
185
186 Aws::String m_description;
187
188 Aws::String m_snapshotId;
189
190 Aws::String m_ownerId;
191
192 Status m_status;
193
194 Aws::Utils::DateTime m_startTime;
195
196 long long m_volumeSize;
197
198 int m_blockSize;
199
200 Aws::Vector<Tag> m_tags;
201
202 Aws::String m_parentSnapshotId;
203
204 Aws::String m_kmsKeyArn;
205
206 SSEType m_sseType;
207
208 Aws::String m_requestId;
209 };
210
211} // namespace Model
212} // namespace EBS
213} // namespace Aws
void SetStartTime(Aws::Utils::DateTime &&value)
StartSnapshotResult & WithTags(Aws::Vector< Tag > &&value)
StartSnapshotResult & WithRequestId(const Aws::String &value)
StartSnapshotResult & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetKmsKeyArn() const
void SetStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetOwnerId() const
AWS_EBS_API StartSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartSnapshotResult & WithSnapshotId(Aws::String &&value)
StartSnapshotResult & WithSseType(SSEType &&value)
void SetParentSnapshotId(Aws::String &&value)
StartSnapshotResult & WithOwnerId(const char *value)
void SetDescription(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetDescription(Aws::String &&value)
void SetOwnerId(const Aws::String &value)
StartSnapshotResult & WithStartTime(const Aws::Utils::DateTime &value)
StartSnapshotResult & WithOwnerId(Aws::String &&value)
StartSnapshotResult & WithKmsKeyArn(Aws::String &&value)
StartSnapshotResult & WithRequestId(const char *value)
StartSnapshotResult & WithRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetStartTime() const
void SetParentSnapshotId(const Aws::String &value)
StartSnapshotResult & WithStatus(const Status &value)
StartSnapshotResult & WithParentSnapshotId(const Aws::String &value)
StartSnapshotResult & WithDescription(const Aws::String &value)
StartSnapshotResult & WithDescription(Aws::String &&value)
StartSnapshotResult & WithStartTime(Aws::Utils::DateTime &&value)
StartSnapshotResult & WithDescription(const char *value)
StartSnapshotResult & WithParentSnapshotId(const char *value)
StartSnapshotResult & WithKmsKeyArn(const Aws::String &value)
StartSnapshotResult & WithBlockSize(int value)
const Aws::String & GetDescription() const
StartSnapshotResult & WithSseType(const SSEType &value)
StartSnapshotResult & AddTags(Tag &&value)
StartSnapshotResult & WithOwnerId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
void SetKmsKeyArn(const Aws::String &value)
AWS_EBS_API StartSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSnapshotId(const Aws::String &value)
StartSnapshotResult & AddTags(const Tag &value)
const Aws::String & GetParentSnapshotId() const
void SetSnapshotId(Aws::String &&value)
StartSnapshotResult & WithKmsKeyArn(const char *value)
StartSnapshotResult & WithSnapshotId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
StartSnapshotResult & WithStatus(Status &&value)
StartSnapshotResult & WithVolumeSize(long long value)
StartSnapshotResult & WithSnapshotId(const char *value)
StartSnapshotResult & WithParentSnapshotId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue