AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetDocumentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/AttachmentContent.h>
12#include <aws/ssm/model/DocumentFormat.h>
13#include <aws/ssm/model/DocumentRequires.h>
14#include <aws/ssm/model/DocumentStatus.h>
15#include <aws/ssm/model/DocumentType.h>
16#include <aws/ssm/model/ReviewStatus.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace SSM {
30namespace Model {
32 public:
33 AWS_SSM_API GetDocumentResult() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 GetDocumentResult& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
59 template <typename CreatedDateT = Aws::Utils::DateTime>
60 void SetCreatedDate(CreatedDateT&& value) {
61 m_createdDateHasBeenSet = true;
62 m_createdDate = std::forward<CreatedDateT>(value);
63 }
64 template <typename CreatedDateT = Aws::Utils::DateTime>
65 GetDocumentResult& WithCreatedDate(CreatedDateT&& value) {
66 SetCreatedDate(std::forward<CreatedDateT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetDisplayName() const { return m_displayName; }
78 template <typename DisplayNameT = Aws::String>
79 void SetDisplayName(DisplayNameT&& value) {
80 m_displayNameHasBeenSet = true;
81 m_displayName = std::forward<DisplayNameT>(value);
82 }
83 template <typename DisplayNameT = Aws::String>
84 GetDocumentResult& WithDisplayName(DisplayNameT&& value) {
85 SetDisplayName(std::forward<DisplayNameT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetVersionName() const { return m_versionName; }
97 template <typename VersionNameT = Aws::String>
98 void SetVersionName(VersionNameT&& value) {
99 m_versionNameHasBeenSet = true;
100 m_versionName = std::forward<VersionNameT>(value);
101 }
102 template <typename VersionNameT = Aws::String>
103 GetDocumentResult& WithVersionName(VersionNameT&& value) {
104 SetVersionName(std::forward<VersionNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
114 template <typename DocumentVersionT = Aws::String>
115 void SetDocumentVersion(DocumentVersionT&& value) {
116 m_documentVersionHasBeenSet = true;
117 m_documentVersion = std::forward<DocumentVersionT>(value);
118 }
119 template <typename DocumentVersionT = Aws::String>
120 GetDocumentResult& WithDocumentVersion(DocumentVersionT&& value) {
121 SetDocumentVersion(std::forward<DocumentVersionT>(value));
122 return *this;
123 }
125
127
132 inline DocumentStatus GetStatus() const { return m_status; }
133 inline void SetStatus(DocumentStatus value) {
134 m_statusHasBeenSet = true;
135 m_status = value;
136 }
138 SetStatus(value);
139 return *this;
140 }
142
144
150 inline const Aws::String& GetStatusInformation() const { return m_statusInformation; }
151 template <typename StatusInformationT = Aws::String>
152 void SetStatusInformation(StatusInformationT&& value) {
153 m_statusInformationHasBeenSet = true;
154 m_statusInformation = std::forward<StatusInformationT>(value);
155 }
156 template <typename StatusInformationT = Aws::String>
157 GetDocumentResult& WithStatusInformation(StatusInformationT&& value) {
158 SetStatusInformation(std::forward<StatusInformationT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetContent() const { return m_content; }
168 template <typename ContentT = Aws::String>
169 void SetContent(ContentT&& value) {
170 m_contentHasBeenSet = true;
171 m_content = std::forward<ContentT>(value);
172 }
173 template <typename ContentT = Aws::String>
174 GetDocumentResult& WithContent(ContentT&& value) {
175 SetContent(std::forward<ContentT>(value));
176 return *this;
177 }
179
181
184 inline DocumentType GetDocumentType() const { return m_documentType; }
185 inline void SetDocumentType(DocumentType value) {
186 m_documentTypeHasBeenSet = true;
187 m_documentType = value;
188 }
190 SetDocumentType(value);
191 return *this;
192 }
194
196
199 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
201 m_documentFormatHasBeenSet = true;
202 m_documentFormat = value;
203 }
205 SetDocumentFormat(value);
206 return *this;
207 }
209
211
216 inline const Aws::Vector<DocumentRequires>& GetRequires() const { return m_requires; }
217 template <typename RequiresT = Aws::Vector<DocumentRequires>>
218 void SetRequires(RequiresT&& value) {
219 m_requiresHasBeenSet = true;
220 m_requires = std::forward<RequiresT>(value);
221 }
222 template <typename RequiresT = Aws::Vector<DocumentRequires>>
223 GetDocumentResult& WithRequires(RequiresT&& value) {
224 SetRequires(std::forward<RequiresT>(value));
225 return *this;
226 }
227 template <typename RequiresT = DocumentRequires>
228 GetDocumentResult& AddRequires(RequiresT&& value) {
229 m_requiresHasBeenSet = true;
230 m_requires.emplace_back(std::forward<RequiresT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::Vector<AttachmentContent>& GetAttachmentsContent() const { return m_attachmentsContent; }
241 template <typename AttachmentsContentT = Aws::Vector<AttachmentContent>>
242 void SetAttachmentsContent(AttachmentsContentT&& value) {
243 m_attachmentsContentHasBeenSet = true;
244 m_attachmentsContent = std::forward<AttachmentsContentT>(value);
245 }
246 template <typename AttachmentsContentT = Aws::Vector<AttachmentContent>>
247 GetDocumentResult& WithAttachmentsContent(AttachmentsContentT&& value) {
248 SetAttachmentsContent(std::forward<AttachmentsContentT>(value));
249 return *this;
250 }
251 template <typename AttachmentsContentT = AttachmentContent>
252 GetDocumentResult& AddAttachmentsContent(AttachmentsContentT&& value) {
253 m_attachmentsContentHasBeenSet = true;
254 m_attachmentsContent.emplace_back(std::forward<AttachmentsContentT>(value));
255 return *this;
256 }
258
260
268 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
269 inline void SetReviewStatus(ReviewStatus value) {
270 m_reviewStatusHasBeenSet = true;
271 m_reviewStatus = value;
272 }
274 SetReviewStatus(value);
275 return *this;
276 }
278
280
281 inline const Aws::String& GetRequestId() const { return m_requestId; }
282 template <typename RequestIdT = Aws::String>
283 void SetRequestId(RequestIdT&& value) {
284 m_requestIdHasBeenSet = true;
285 m_requestId = std::forward<RequestIdT>(value);
286 }
287 template <typename RequestIdT = Aws::String>
288 GetDocumentResult& WithRequestId(RequestIdT&& value) {
289 SetRequestId(std::forward<RequestIdT>(value));
290 return *this;
291 }
293 private:
294 Aws::String m_name;
295
296 Aws::Utils::DateTime m_createdDate{};
297
298 Aws::String m_displayName;
299
300 Aws::String m_versionName;
301
302 Aws::String m_documentVersion;
303
305
306 Aws::String m_statusInformation;
307
308 Aws::String m_content;
309
310 DocumentType m_documentType{DocumentType::NOT_SET};
311
312 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
313
315
316 Aws::Vector<AttachmentContent> m_attachmentsContent;
317
318 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
319
320 Aws::String m_requestId;
321 bool m_nameHasBeenSet = false;
322 bool m_createdDateHasBeenSet = false;
323 bool m_displayNameHasBeenSet = false;
324 bool m_versionNameHasBeenSet = false;
325 bool m_documentVersionHasBeenSet = false;
326 bool m_statusHasBeenSet = false;
327 bool m_statusInformationHasBeenSet = false;
328 bool m_contentHasBeenSet = false;
329 bool m_documentTypeHasBeenSet = false;
330 bool m_documentFormatHasBeenSet = false;
331 bool m_requiresHasBeenSet = false;
332 bool m_attachmentsContentHasBeenSet = false;
333 bool m_reviewStatusHasBeenSet = false;
334 bool m_requestIdHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace SSM
339} // 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)
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