AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
38
39
41
44 inline const Aws::String& GetDescription() const { return m_description; }
45 template<typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
47 template<typename DescriptionT = Aws::String>
48 StartSnapshotResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
50
52
55 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
56 template<typename SnapshotIdT = Aws::String>
57 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
58 template<typename SnapshotIdT = Aws::String>
59 StartSnapshotResult& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
67 template<typename OwnerIdT = Aws::String>
68 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
69 template<typename OwnerIdT = Aws::String>
70 StartSnapshotResult& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
72
74
77 inline Status GetStatus() const { return m_status; }
78 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
79 inline StartSnapshotResult& WithStatus(Status value) { SetStatus(value); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 StartSnapshotResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
92
94
97 inline long long GetVolumeSize() const { return m_volumeSize; }
98 inline void SetVolumeSize(long long value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
99 inline StartSnapshotResult& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;}
101
103
106 inline int GetBlockSize() const { return m_blockSize; }
107 inline void SetBlockSize(int value) { m_blockSizeHasBeenSet = true; m_blockSize = value; }
108 inline StartSnapshotResult& WithBlockSize(int value) { SetBlockSize(value); return *this;}
110
112
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 template<typename TagsT = Aws::Vector<Tag>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Vector<Tag>>
123 StartSnapshotResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsT = Tag>
125 StartSnapshotResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
127
129
132 inline const Aws::String& GetParentSnapshotId() const { return m_parentSnapshotId; }
133 template<typename ParentSnapshotIdT = Aws::String>
134 void SetParentSnapshotId(ParentSnapshotIdT&& value) { m_parentSnapshotIdHasBeenSet = true; m_parentSnapshotId = std::forward<ParentSnapshotIdT>(value); }
135 template<typename ParentSnapshotIdT = Aws::String>
136 StartSnapshotResult& WithParentSnapshotId(ParentSnapshotIdT&& value) { SetParentSnapshotId(std::forward<ParentSnapshotIdT>(value)); return *this;}
138
140
144 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
145 template<typename KmsKeyArnT = Aws::String>
146 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
147 template<typename KmsKeyArnT = Aws::String>
148 StartSnapshotResult& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
150
152
155 inline SSEType GetSseType() const { return m_sseType; }
156 inline void SetSseType(SSEType value) { m_sseTypeHasBeenSet = true; m_sseType = value; }
157 inline StartSnapshotResult& WithSseType(SSEType value) { SetSseType(value); return *this;}
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template<typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
165 template<typename RequestIdT = Aws::String>
166 StartSnapshotResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
168 private:
169
170 Aws::String m_description;
171 bool m_descriptionHasBeenSet = false;
172
173 Aws::String m_snapshotId;
174 bool m_snapshotIdHasBeenSet = false;
175
176 Aws::String m_ownerId;
177 bool m_ownerIdHasBeenSet = false;
178
179 Status m_status{Status::NOT_SET};
180 bool m_statusHasBeenSet = false;
181
182 Aws::Utils::DateTime m_startTime{};
183 bool m_startTimeHasBeenSet = false;
184
185 long long m_volumeSize{0};
186 bool m_volumeSizeHasBeenSet = false;
187
188 int m_blockSize{0};
189 bool m_blockSizeHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193
194 Aws::String m_parentSnapshotId;
195 bool m_parentSnapshotIdHasBeenSet = false;
196
197 Aws::String m_kmsKeyArn;
198 bool m_kmsKeyArnHasBeenSet = false;
199
200 SSEType m_sseType{SSEType::NOT_SET};
201 bool m_sseTypeHasBeenSet = false;
202
203 Aws::String m_requestId;
204 bool m_requestIdHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EBS
209} // namespace Aws
StartSnapshotResult & WithRequestId(RequestIdT &&value)
void SetSnapshotId(SnapshotIdT &&value)
const Aws::String & GetKmsKeyArn() const
StartSnapshotResult & AddTags(TagsT &&value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetOwnerId() const
AWS_EBS_API StartSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetStartTime() const
StartSnapshotResult & WithSseType(SSEType value)
StartSnapshotResult & WithTags(TagsT &&value)
StartSnapshotResult & WithParentSnapshotId(ParentSnapshotIdT &&value)
StartSnapshotResult & WithBlockSize(int value)
const Aws::String & GetDescription() const
StartSnapshotResult & WithSnapshotId(SnapshotIdT &&value)
AWS_EBS_API StartSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetParentSnapshotId() const
StartSnapshotResult & WithStartTime(StartTimeT &&value)
void SetParentSnapshotId(ParentSnapshotIdT &&value)
StartSnapshotResult & WithOwnerId(OwnerIdT &&value)
StartSnapshotResult & WithStatus(Status value)
StartSnapshotResult & WithKmsKeyArn(KmsKeyArnT &&value)
StartSnapshotResult & WithDescription(DescriptionT &&value)
AWS_EBS_API StartSnapshotResult()=default
StartSnapshotResult & WithVolumeSize(long long 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