AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDocumentResult.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/DocumentStatus.h>
11#include <aws/ssm/model/DocumentType.h>
12#include <aws/ssm/model/DocumentFormat.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ssm/model/ReviewStatus.h>
15#include <aws/ssm/model/DocumentRequires.h>
16#include <aws/ssm/model/AttachmentContent.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace SSM
32{
33namespace Model
34{
36 {
37 public:
38 AWS_SSM_API GetDocumentResult();
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline void SetName(const Aws::String& value) { m_name = value; }
49 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
50 inline void SetName(const char* value) { m_name.assign(value); }
51 inline GetDocumentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline GetDocumentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline GetDocumentResult& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
61 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
62 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
63 inline GetDocumentResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
64 inline GetDocumentResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
66
68
73 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
74 inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
75 inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
76 inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
77 inline GetDocumentResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
78 inline GetDocumentResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
79 inline GetDocumentResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
81
83
88 inline const Aws::String& GetVersionName() const{ return m_versionName; }
89 inline void SetVersionName(const Aws::String& value) { m_versionName = value; }
90 inline void SetVersionName(Aws::String&& value) { m_versionName = std::move(value); }
91 inline void SetVersionName(const char* value) { m_versionName.assign(value); }
92 inline GetDocumentResult& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
93 inline GetDocumentResult& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
94 inline GetDocumentResult& WithVersionName(const char* value) { SetVersionName(value); return *this;}
96
98
101 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
102 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersion = value; }
103 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersion = std::move(value); }
104 inline void SetDocumentVersion(const char* value) { m_documentVersion.assign(value); }
105 inline GetDocumentResult& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
106 inline GetDocumentResult& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
107 inline GetDocumentResult& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
109
111
116 inline const DocumentStatus& GetStatus() const{ return m_status; }
117 inline void SetStatus(const DocumentStatus& value) { m_status = value; }
118 inline void SetStatus(DocumentStatus&& value) { m_status = std::move(value); }
119 inline GetDocumentResult& WithStatus(const DocumentStatus& value) { SetStatus(value); return *this;}
120 inline GetDocumentResult& WithStatus(DocumentStatus&& value) { SetStatus(std::move(value)); return *this;}
122
124
130 inline const Aws::String& GetStatusInformation() const{ return m_statusInformation; }
131 inline void SetStatusInformation(const Aws::String& value) { m_statusInformation = value; }
132 inline void SetStatusInformation(Aws::String&& value) { m_statusInformation = std::move(value); }
133 inline void SetStatusInformation(const char* value) { m_statusInformation.assign(value); }
134 inline GetDocumentResult& WithStatusInformation(const Aws::String& value) { SetStatusInformation(value); return *this;}
135 inline GetDocumentResult& WithStatusInformation(Aws::String&& value) { SetStatusInformation(std::move(value)); return *this;}
136 inline GetDocumentResult& WithStatusInformation(const char* value) { SetStatusInformation(value); return *this;}
138
140
143 inline const Aws::String& GetContent() const{ return m_content; }
144 inline void SetContent(const Aws::String& value) { m_content = value; }
145 inline void SetContent(Aws::String&& value) { m_content = std::move(value); }
146 inline void SetContent(const char* value) { m_content.assign(value); }
147 inline GetDocumentResult& WithContent(const Aws::String& value) { SetContent(value); return *this;}
148 inline GetDocumentResult& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
149 inline GetDocumentResult& WithContent(const char* value) { SetContent(value); return *this;}
151
153
156 inline const DocumentType& GetDocumentType() const{ return m_documentType; }
157 inline void SetDocumentType(const DocumentType& value) { m_documentType = value; }
158 inline void SetDocumentType(DocumentType&& value) { m_documentType = std::move(value); }
159 inline GetDocumentResult& WithDocumentType(const DocumentType& value) { SetDocumentType(value); return *this;}
160 inline GetDocumentResult& WithDocumentType(DocumentType&& value) { SetDocumentType(std::move(value)); return *this;}
162
164
167 inline const DocumentFormat& GetDocumentFormat() const{ return m_documentFormat; }
168 inline void SetDocumentFormat(const DocumentFormat& value) { m_documentFormat = value; }
169 inline void SetDocumentFormat(DocumentFormat&& value) { m_documentFormat = std::move(value); }
170 inline GetDocumentResult& WithDocumentFormat(const DocumentFormat& value) { SetDocumentFormat(value); return *this;}
171 inline GetDocumentResult& WithDocumentFormat(DocumentFormat&& value) { SetDocumentFormat(std::move(value)); return *this;}
173
175
180 inline const Aws::Vector<DocumentRequires>& GetRequires() const{ return m_requires; }
181 inline void SetRequires(const Aws::Vector<DocumentRequires>& value) { m_requires = value; }
182 inline void SetRequires(Aws::Vector<DocumentRequires>&& value) { m_requires = std::move(value); }
183 inline GetDocumentResult& WithRequires(const Aws::Vector<DocumentRequires>& value) { SetRequires(value); return *this;}
184 inline GetDocumentResult& WithRequires(Aws::Vector<DocumentRequires>&& value) { SetRequires(std::move(value)); return *this;}
185 inline GetDocumentResult& AddRequires(const DocumentRequires& value) { m_requires.push_back(value); return *this; }
186 inline GetDocumentResult& AddRequires(DocumentRequires&& value) { m_requires.push_back(std::move(value)); return *this; }
188
190
194 inline const Aws::Vector<AttachmentContent>& GetAttachmentsContent() const{ return m_attachmentsContent; }
195 inline void SetAttachmentsContent(const Aws::Vector<AttachmentContent>& value) { m_attachmentsContent = value; }
196 inline void SetAttachmentsContent(Aws::Vector<AttachmentContent>&& value) { m_attachmentsContent = std::move(value); }
199 inline GetDocumentResult& AddAttachmentsContent(const AttachmentContent& value) { m_attachmentsContent.push_back(value); return *this; }
200 inline GetDocumentResult& AddAttachmentsContent(AttachmentContent&& value) { m_attachmentsContent.push_back(std::move(value)); return *this; }
202
204
212 inline const ReviewStatus& GetReviewStatus() const{ return m_reviewStatus; }
213 inline void SetReviewStatus(const ReviewStatus& value) { m_reviewStatus = value; }
214 inline void SetReviewStatus(ReviewStatus&& value) { m_reviewStatus = std::move(value); }
215 inline GetDocumentResult& WithReviewStatus(const ReviewStatus& value) { SetReviewStatus(value); return *this;}
216 inline GetDocumentResult& WithReviewStatus(ReviewStatus&& value) { SetReviewStatus(std::move(value)); return *this;}
218
220
221 inline const Aws::String& GetRequestId() const{ return m_requestId; }
222 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
223 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
224 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
225 inline GetDocumentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
226 inline GetDocumentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
227 inline GetDocumentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
229 private:
230
231 Aws::String m_name;
232
233 Aws::Utils::DateTime m_createdDate;
234
235 Aws::String m_displayName;
236
237 Aws::String m_versionName;
238
239 Aws::String m_documentVersion;
240
241 DocumentStatus m_status;
242
243 Aws::String m_statusInformation;
244
245 Aws::String m_content;
246
247 DocumentType m_documentType;
248
249 DocumentFormat m_documentFormat;
250
252
253 Aws::Vector<AttachmentContent> m_attachmentsContent;
254
255 ReviewStatus m_reviewStatus;
256
257 Aws::String m_requestId;
258 };
259
260} // namespace Model
261} // namespace SSM
262} // namespace Aws
void SetName(Aws::String &&value)
GetDocumentResult & WithReviewStatus(const ReviewStatus &value)
const Aws::String & GetStatusInformation() const
void SetDocumentType(DocumentType &&value)
const Aws::String & GetRequestId() const
GetDocumentResult & WithName(const Aws::String &value)
const Aws::String & GetDocumentVersion() const
GetDocumentResult & WithStatusInformation(const char *value)
GetDocumentResult & WithVersionName(const Aws::String &value)
const Aws::Vector< DocumentRequires > & GetRequires() const
void SetDocumentVersion(const Aws::String &value)
GetDocumentResult & WithRequires(const Aws::Vector< DocumentRequires > &value)
GetDocumentResult & WithContent(const Aws::String &value)
GetDocumentResult & WithRequestId(const Aws::String &value)
const Aws::Vector< AttachmentContent > & GetAttachmentsContent() const
void SetReviewStatus(ReviewStatus &&value)
const ReviewStatus & GetReviewStatus() const
GetDocumentResult & WithStatusInformation(const Aws::String &value)
void SetDocumentVersion(const char *value)
GetDocumentResult & WithAttachmentsContent(Aws::Vector< AttachmentContent > &&value)
GetDocumentResult & WithDisplayName(const char *value)
GetDocumentResult & WithName(Aws::String &&value)
GetDocumentResult & AddAttachmentsContent(AttachmentContent &&value)
const DocumentFormat & GetDocumentFormat() const
void SetVersionName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedDate() const
GetDocumentResult & WithRequestId(Aws::String &&value)
void SetDisplayName(const Aws::String &value)
GetDocumentResult & WithStatus(const DocumentStatus &value)
GetDocumentResult & WithDocumentVersion(const Aws::String &value)
GetDocumentResult & WithVersionName(const char *value)
void SetDocumentFormat(const DocumentFormat &value)
GetDocumentResult & WithDocumentFormat(const DocumentFormat &value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
GetDocumentResult & WithDisplayName(Aws::String &&value)
const DocumentType & GetDocumentType() const
GetDocumentResult & WithDocumentVersion(const char *value)
GetDocumentResult & WithVersionName(Aws::String &&value)
void SetAttachmentsContent(const Aws::Vector< AttachmentContent > &value)
void SetName(const Aws::String &value)
GetDocumentResult & WithAttachmentsContent(const Aws::Vector< AttachmentContent > &value)
GetDocumentResult & WithName(const char *value)
void SetDocumentVersion(Aws::String &&value)
void SetStatusInformation(const Aws::String &value)
void SetContent(const Aws::String &value)
const Aws::String & GetDisplayName() const
void SetReviewStatus(const ReviewStatus &value)
const DocumentStatus & GetStatus() const
GetDocumentResult & WithReviewStatus(ReviewStatus &&value)
GetDocumentResult & WithContent(Aws::String &&value)
AWS_SSM_API GetDocumentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDocumentResult & WithRequestId(const char *value)
GetDocumentResult & WithDocumentVersion(Aws::String &&value)
void SetVersionName(Aws::String &&value)
GetDocumentResult & WithDisplayName(const Aws::String &value)
GetDocumentResult & WithRequires(Aws::Vector< DocumentRequires > &&value)
GetDocumentResult & WithDocumentType(const DocumentType &value)
GetDocumentResult & WithDocumentType(DocumentType &&value)
AWS_SSM_API GetDocumentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(const Aws::String &value)
GetDocumentResult & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetStatus(DocumentStatus &&value)
const Aws::String & GetContent() const
void SetVersionName(const char *value)
void SetAttachmentsContent(Aws::Vector< AttachmentContent > &&value)
void SetDisplayName(const char *value)
void SetStatusInformation(Aws::String &&value)
void SetRequires(Aws::Vector< DocumentRequires > &&value)
GetDocumentResult & WithContent(const char *value)
GetDocumentResult & WithStatus(DocumentStatus &&value)
GetDocumentResult & WithStatusInformation(Aws::String &&value)
void SetStatusInformation(const char *value)
GetDocumentResult & WithDocumentFormat(DocumentFormat &&value)
void SetRequires(const Aws::Vector< DocumentRequires > &value)
GetDocumentResult & AddRequires(const DocumentRequires &value)
void SetStatus(const DocumentStatus &value)
GetDocumentResult & WithCreatedDate(const Aws::Utils::DateTime &value)
void SetDisplayName(Aws::String &&value)
const Aws::String & GetName() const
void SetContent(Aws::String &&value)
void SetDocumentFormat(DocumentFormat &&value)
GetDocumentResult & AddRequires(DocumentRequires &&value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
GetDocumentResult & AddAttachmentsContent(const AttachmentContent &value)
const Aws::String & GetVersionName() const
void SetRequestId(Aws::String &&value)
void SetDocumentType(const DocumentType &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