AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 GetDocumentResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
61 template<typename CreatedDateT = Aws::Utils::DateTime>
62 GetDocumentResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
64
66
71 inline const Aws::String& GetDisplayName() const { return m_displayName; }
72 template<typename DisplayNameT = Aws::String>
73 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
74 template<typename DisplayNameT = Aws::String>
75 GetDocumentResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
77
79
84 inline const Aws::String& GetVersionName() const { return m_versionName; }
85 template<typename VersionNameT = Aws::String>
86 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
87 template<typename VersionNameT = Aws::String>
88 GetDocumentResult& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
96 template<typename DocumentVersionT = Aws::String>
97 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
98 template<typename DocumentVersionT = Aws::String>
99 GetDocumentResult& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
101
103
108 inline DocumentStatus GetStatus() const { return m_status; }
109 inline void SetStatus(DocumentStatus value) { m_statusHasBeenSet = true; m_status = value; }
110 inline GetDocumentResult& WithStatus(DocumentStatus value) { SetStatus(value); return *this;}
112
114
120 inline const Aws::String& GetStatusInformation() const { return m_statusInformation; }
121 template<typename StatusInformationT = Aws::String>
122 void SetStatusInformation(StatusInformationT&& value) { m_statusInformationHasBeenSet = true; m_statusInformation = std::forward<StatusInformationT>(value); }
123 template<typename StatusInformationT = Aws::String>
124 GetDocumentResult& WithStatusInformation(StatusInformationT&& value) { SetStatusInformation(std::forward<StatusInformationT>(value)); return *this;}
126
128
131 inline const Aws::String& GetContent() const { return m_content; }
132 template<typename ContentT = Aws::String>
133 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
134 template<typename ContentT = Aws::String>
135 GetDocumentResult& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
137
139
142 inline DocumentType GetDocumentType() const { return m_documentType; }
143 inline void SetDocumentType(DocumentType value) { m_documentTypeHasBeenSet = true; m_documentType = value; }
144 inline GetDocumentResult& WithDocumentType(DocumentType value) { SetDocumentType(value); return *this;}
146
148
151 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
152 inline void SetDocumentFormat(DocumentFormat value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
155
157
162 inline const Aws::Vector<DocumentRequires>& GetRequires() const { return m_requires; }
163 template<typename RequiresT = Aws::Vector<DocumentRequires>>
164 void SetRequires(RequiresT&& value) { m_requiresHasBeenSet = true; m_requires = std::forward<RequiresT>(value); }
165 template<typename RequiresT = Aws::Vector<DocumentRequires>>
166 GetDocumentResult& WithRequires(RequiresT&& value) { SetRequires(std::forward<RequiresT>(value)); return *this;}
167 template<typename RequiresT = DocumentRequires>
168 GetDocumentResult& AddRequires(RequiresT&& value) { m_requiresHasBeenSet = true; m_requires.emplace_back(std::forward<RequiresT>(value)); return *this; }
170
172
176 inline const Aws::Vector<AttachmentContent>& GetAttachmentsContent() const { return m_attachmentsContent; }
177 template<typename AttachmentsContentT = Aws::Vector<AttachmentContent>>
178 void SetAttachmentsContent(AttachmentsContentT&& value) { m_attachmentsContentHasBeenSet = true; m_attachmentsContent = std::forward<AttachmentsContentT>(value); }
179 template<typename AttachmentsContentT = Aws::Vector<AttachmentContent>>
180 GetDocumentResult& WithAttachmentsContent(AttachmentsContentT&& value) { SetAttachmentsContent(std::forward<AttachmentsContentT>(value)); return *this;}
181 template<typename AttachmentsContentT = AttachmentContent>
182 GetDocumentResult& AddAttachmentsContent(AttachmentsContentT&& value) { m_attachmentsContentHasBeenSet = true; m_attachmentsContent.emplace_back(std::forward<AttachmentsContentT>(value)); return *this; }
184
186
194 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
195 inline void SetReviewStatus(ReviewStatus value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; }
196 inline GetDocumentResult& WithReviewStatus(ReviewStatus value) { SetReviewStatus(value); return *this;}
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template<typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
204 template<typename RequestIdT = Aws::String>
205 GetDocumentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
207 private:
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 Aws::Utils::DateTime m_createdDate{};
213 bool m_createdDateHasBeenSet = false;
214
215 Aws::String m_displayName;
216 bool m_displayNameHasBeenSet = false;
217
218 Aws::String m_versionName;
219 bool m_versionNameHasBeenSet = false;
220
221 Aws::String m_documentVersion;
222 bool m_documentVersionHasBeenSet = false;
223
225 bool m_statusHasBeenSet = false;
226
227 Aws::String m_statusInformation;
228 bool m_statusInformationHasBeenSet = false;
229
230 Aws::String m_content;
231 bool m_contentHasBeenSet = false;
232
233 DocumentType m_documentType{DocumentType::NOT_SET};
234 bool m_documentTypeHasBeenSet = false;
235
236 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
237 bool m_documentFormatHasBeenSet = false;
238
240 bool m_requiresHasBeenSet = false;
241
242 Aws::Vector<AttachmentContent> m_attachmentsContent;
243 bool m_attachmentsContentHasBeenSet = false;
244
245 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
246 bool m_reviewStatusHasBeenSet = false;
247
248 Aws::String m_requestId;
249 bool m_requestIdHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace SSM
254} // 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