AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetDocumentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/AttachmentContent.h>
13#include <aws/ssm/model/DocumentFormat.h>
14#include <aws/ssm/model/DocumentRequires.h>
15#include <aws/ssm/model/DocumentStatus.h>
16#include <aws/ssm/model/DocumentType.h>
17#include <aws/ssm/model/ReviewStatus.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace SSM {
31namespace Model {
33 public:
34 AWS_SSM_API GetDocumentResult() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 GetDocumentResult& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
60 template <typename CreatedDateT = Aws::Utils::DateTime>
61 void SetCreatedDate(CreatedDateT&& value) {
62 m_createdDateHasBeenSet = true;
63 m_createdDate = std::forward<CreatedDateT>(value);
64 }
65 template <typename CreatedDateT = Aws::Utils::DateTime>
66 GetDocumentResult& WithCreatedDate(CreatedDateT&& value) {
67 SetCreatedDate(std::forward<CreatedDateT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetDisplayName() const { return m_displayName; }
79 template <typename DisplayNameT = Aws::String>
80 void SetDisplayName(DisplayNameT&& value) {
81 m_displayNameHasBeenSet = true;
82 m_displayName = std::forward<DisplayNameT>(value);
83 }
84 template <typename DisplayNameT = Aws::String>
85 GetDocumentResult& WithDisplayName(DisplayNameT&& value) {
86 SetDisplayName(std::forward<DisplayNameT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetVersionName() const { return m_versionName; }
98 template <typename VersionNameT = Aws::String>
99 void SetVersionName(VersionNameT&& value) {
100 m_versionNameHasBeenSet = true;
101 m_versionName = std::forward<VersionNameT>(value);
102 }
103 template <typename VersionNameT = Aws::String>
104 GetDocumentResult& WithVersionName(VersionNameT&& value) {
105 SetVersionName(std::forward<VersionNameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
115 template <typename DocumentVersionT = Aws::String>
116 void SetDocumentVersion(DocumentVersionT&& value) {
117 m_documentVersionHasBeenSet = true;
118 m_documentVersion = std::forward<DocumentVersionT>(value);
119 }
120 template <typename DocumentVersionT = Aws::String>
121 GetDocumentResult& WithDocumentVersion(DocumentVersionT&& value) {
122 SetDocumentVersion(std::forward<DocumentVersionT>(value));
123 return *this;
124 }
126
128
133 inline DocumentStatus GetStatus() const { return m_status; }
134 inline void SetStatus(DocumentStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
151 inline const Aws::String& GetStatusInformation() const { return m_statusInformation; }
152 template <typename StatusInformationT = Aws::String>
153 void SetStatusInformation(StatusInformationT&& value) {
154 m_statusInformationHasBeenSet = true;
155 m_statusInformation = std::forward<StatusInformationT>(value);
156 }
157 template <typename StatusInformationT = Aws::String>
158 GetDocumentResult& WithStatusInformation(StatusInformationT&& value) {
159 SetStatusInformation(std::forward<StatusInformationT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetContent() const { return m_content; }
169 template <typename ContentT = Aws::String>
170 void SetContent(ContentT&& value) {
171 m_contentHasBeenSet = true;
172 m_content = std::forward<ContentT>(value);
173 }
174 template <typename ContentT = Aws::String>
175 GetDocumentResult& WithContent(ContentT&& value) {
176 SetContent(std::forward<ContentT>(value));
177 return *this;
178 }
180
182
185 inline DocumentType GetDocumentType() const { return m_documentType; }
186 inline void SetDocumentType(DocumentType value) {
187 m_documentTypeHasBeenSet = true;
188 m_documentType = value;
189 }
191 SetDocumentType(value);
192 return *this;
193 }
195
197
200 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
202 m_documentFormatHasBeenSet = true;
203 m_documentFormat = value;
204 }
206 SetDocumentFormat(value);
207 return *this;
208 }
210
212
217 inline const Aws::Vector<DocumentRequires>& GetRequires() const { return m_requires; }
218 template <typename RequiresT = Aws::Vector<DocumentRequires>>
219 void SetRequires(RequiresT&& value) {
220 m_requiresHasBeenSet = true;
221 m_requires = std::forward<RequiresT>(value);
222 }
223 template <typename RequiresT = Aws::Vector<DocumentRequires>>
224 GetDocumentResult& WithRequires(RequiresT&& value) {
225 SetRequires(std::forward<RequiresT>(value));
226 return *this;
227 }
228 template <typename RequiresT = DocumentRequires>
229 GetDocumentResult& AddRequires(RequiresT&& value) {
230 m_requiresHasBeenSet = true;
231 m_requires.emplace_back(std::forward<RequiresT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::Vector<AttachmentContent>& GetAttachmentsContent() const { return m_attachmentsContent; }
242 template <typename AttachmentsContentT = Aws::Vector<AttachmentContent>>
243 void SetAttachmentsContent(AttachmentsContentT&& value) {
244 m_attachmentsContentHasBeenSet = true;
245 m_attachmentsContent = std::forward<AttachmentsContentT>(value);
246 }
247 template <typename AttachmentsContentT = Aws::Vector<AttachmentContent>>
248 GetDocumentResult& WithAttachmentsContent(AttachmentsContentT&& value) {
249 SetAttachmentsContent(std::forward<AttachmentsContentT>(value));
250 return *this;
251 }
252 template <typename AttachmentsContentT = AttachmentContent>
253 GetDocumentResult& AddAttachmentsContent(AttachmentsContentT&& value) {
254 m_attachmentsContentHasBeenSet = true;
255 m_attachmentsContent.emplace_back(std::forward<AttachmentsContentT>(value));
256 return *this;
257 }
259
261
269 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
270 inline void SetReviewStatus(ReviewStatus value) {
271 m_reviewStatusHasBeenSet = true;
272 m_reviewStatus = value;
273 }
275 SetReviewStatus(value);
276 return *this;
277 }
279
281
282 inline const Aws::String& GetRequestId() const { return m_requestId; }
283 template <typename RequestIdT = Aws::String>
284 void SetRequestId(RequestIdT&& value) {
285 m_requestIdHasBeenSet = true;
286 m_requestId = std::forward<RequestIdT>(value);
287 }
288 template <typename RequestIdT = Aws::String>
289 GetDocumentResult& WithRequestId(RequestIdT&& value) {
290 SetRequestId(std::forward<RequestIdT>(value));
291 return *this;
292 }
294 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
295
296 private:
297 Aws::String m_name;
298
299 Aws::Utils::DateTime m_createdDate{};
300
301 Aws::String m_displayName;
302
303 Aws::String m_versionName;
304
305 Aws::String m_documentVersion;
306
308
309 Aws::String m_statusInformation;
310
311 Aws::String m_content;
312
313 DocumentType m_documentType{DocumentType::NOT_SET};
314
315 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
316
318
319 Aws::Vector<AttachmentContent> m_attachmentsContent;
320
321 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
322
323 Aws::String m_requestId;
324 Aws::Http::HttpResponseCode m_HttpResponseCode;
325 bool m_nameHasBeenSet = false;
326 bool m_createdDateHasBeenSet = false;
327 bool m_displayNameHasBeenSet = false;
328 bool m_versionNameHasBeenSet = false;
329 bool m_documentVersionHasBeenSet = false;
330 bool m_statusHasBeenSet = false;
331 bool m_statusInformationHasBeenSet = false;
332 bool m_contentHasBeenSet = false;
333 bool m_documentTypeHasBeenSet = false;
334 bool m_documentFormatHasBeenSet = false;
335 bool m_requiresHasBeenSet = false;
336 bool m_attachmentsContentHasBeenSet = false;
337 bool m_reviewStatusHasBeenSet = false;
338 bool m_requestIdHasBeenSet = false;
339};
340
341} // namespace Model
342} // namespace SSM
343} // namespace Aws
DocumentFormat GetDocumentFormat() const
const Aws::String & GetStatusInformation() const
GetDocumentResult & WithStatus(DocumentStatus value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetDocumentVersion() const
const Aws::Vector< DocumentRequires > & GetRequires() const
const Aws::Vector< AttachmentContent > & GetAttachmentsContent() const
GetDocumentResult & WithAttachmentsContent(AttachmentsContentT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetAttachmentsContent(AttachmentsContentT &&value)
GetDocumentResult & WithContent(ContentT &&value)
void SetDocumentFormat(DocumentFormat value)
void SetStatus(DocumentStatus value)
GetDocumentResult & WithStatusInformation(StatusInformationT &&value)
GetDocumentResult & WithName(NameT &&value)
GetDocumentResult & WithReviewStatus(ReviewStatus value)
void SetDisplayName(DisplayNameT &&value)
AWS_SSM_API GetDocumentResult()=default
GetDocumentResult & WithDocumentVersion(DocumentVersionT &&value)
const Aws::String & GetDisplayName() const
GetDocumentResult & AddAttachmentsContent(AttachmentsContentT &&value)
AWS_SSM_API GetDocumentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SSM_API GetDocumentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDocumentResult & WithRequires(RequiresT &&value)
const Aws::String & GetContent() const
GetDocumentResult & WithRequestId(RequestIdT &&value)
GetDocumentResult & WithVersionName(VersionNameT &&value)
void SetVersionName(VersionNameT &&value)
GetDocumentResult & WithDocumentFormat(DocumentFormat value)
GetDocumentResult & WithDocumentType(DocumentType value)
GetDocumentResult & WithDisplayName(DisplayNameT &&value)
void SetDocumentVersion(DocumentVersionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetReviewStatus(ReviewStatus value)
GetDocumentResult & AddRequires(RequiresT &&value)
void SetStatusInformation(StatusInformationT &&value)
void SetDocumentType(DocumentType value)
const Aws::String & GetName() const
GetDocumentResult & WithCreatedDate(CreatedDateT &&value)
const Aws::String & GetVersionName() const
void SetCreatedDate(CreatedDateT &&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