AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DocumentIdentifier.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/DocumentFormat.h>
12#include <aws/ssm/model/DocumentRequires.h>
13#include <aws/ssm/model/DocumentType.h>
14#include <aws/ssm/model/PlatformType.h>
15#include <aws/ssm/model/ReviewStatus.h>
16#include <aws/ssm/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SSM {
28namespace Model {
29
36 public:
37 AWS_SSM_API DocumentIdentifier() = default;
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 DocumentIdentifier& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
65 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
66 template <typename CreatedDateT = Aws::Utils::DateTime>
67 void SetCreatedDate(CreatedDateT&& value) {
68 m_createdDateHasBeenSet = true;
69 m_createdDate = std::forward<CreatedDateT>(value);
70 }
71 template <typename CreatedDateT = Aws::Utils::DateTime>
72 DocumentIdentifier& WithCreatedDate(CreatedDateT&& value) {
73 SetCreatedDate(std::forward<CreatedDateT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetDisplayName() const { return m_displayName; }
85 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
86 template <typename DisplayNameT = Aws::String>
87 void SetDisplayName(DisplayNameT&& value) {
88 m_displayNameHasBeenSet = true;
89 m_displayName = std::forward<DisplayNameT>(value);
90 }
91 template <typename DisplayNameT = Aws::String>
92 DocumentIdentifier& WithDisplayName(DisplayNameT&& value) {
93 SetDisplayName(std::forward<DisplayNameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetOwner() const { return m_owner; }
103 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
104 template <typename OwnerT = Aws::String>
105 void SetOwner(OwnerT&& value) {
106 m_ownerHasBeenSet = true;
107 m_owner = std::forward<OwnerT>(value);
108 }
109 template <typename OwnerT = Aws::String>
110 DocumentIdentifier& WithOwner(OwnerT&& value) {
111 SetOwner(std::forward<OwnerT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::String& GetVersionName() const { return m_versionName; }
123 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
124 template <typename VersionNameT = Aws::String>
125 void SetVersionName(VersionNameT&& value) {
126 m_versionNameHasBeenSet = true;
127 m_versionName = std::forward<VersionNameT>(value);
128 }
129 template <typename VersionNameT = Aws::String>
130 DocumentIdentifier& WithVersionName(VersionNameT&& value) {
131 SetVersionName(std::forward<VersionNameT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<PlatformType>& GetPlatformTypes() const { return m_platformTypes; }
141 inline bool PlatformTypesHasBeenSet() const { return m_platformTypesHasBeenSet; }
142 template <typename PlatformTypesT = Aws::Vector<PlatformType>>
143 void SetPlatformTypes(PlatformTypesT&& value) {
144 m_platformTypesHasBeenSet = true;
145 m_platformTypes = std::forward<PlatformTypesT>(value);
146 }
147 template <typename PlatformTypesT = Aws::Vector<PlatformType>>
148 DocumentIdentifier& WithPlatformTypes(PlatformTypesT&& value) {
149 SetPlatformTypes(std::forward<PlatformTypesT>(value));
150 return *this;
151 }
153 m_platformTypesHasBeenSet = true;
154 m_platformTypes.push_back(value);
155 return *this;
156 }
158
160
163 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
164 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
165 template <typename DocumentVersionT = Aws::String>
166 void SetDocumentVersion(DocumentVersionT&& value) {
167 m_documentVersionHasBeenSet = true;
168 m_documentVersion = std::forward<DocumentVersionT>(value);
169 }
170 template <typename DocumentVersionT = Aws::String>
171 DocumentIdentifier& WithDocumentVersion(DocumentVersionT&& value) {
172 SetDocumentVersion(std::forward<DocumentVersionT>(value));
173 return *this;
174 }
176
178
181 inline DocumentType GetDocumentType() const { return m_documentType; }
182 inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; }
183 inline void SetDocumentType(DocumentType value) {
184 m_documentTypeHasBeenSet = true;
185 m_documentType = value;
186 }
188 SetDocumentType(value);
189 return *this;
190 }
192
194
197 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
198 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
199 template <typename SchemaVersionT = Aws::String>
200 void SetSchemaVersion(SchemaVersionT&& value) {
201 m_schemaVersionHasBeenSet = true;
202 m_schemaVersion = std::forward<SchemaVersionT>(value);
203 }
204 template <typename SchemaVersionT = Aws::String>
205 DocumentIdentifier& WithSchemaVersion(SchemaVersionT&& value) {
206 SetSchemaVersion(std::forward<SchemaVersionT>(value));
207 return *this;
208 }
210
212
215 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
216 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
218 m_documentFormatHasBeenSet = true;
219 m_documentFormat = value;
220 }
222 SetDocumentFormat(value);
223 return *this;
224 }
226
228
236 inline const Aws::String& GetTargetType() const { return m_targetType; }
237 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
238 template <typename TargetTypeT = Aws::String>
239 void SetTargetType(TargetTypeT&& value) {
240 m_targetTypeHasBeenSet = true;
241 m_targetType = std::forward<TargetTypeT>(value);
242 }
243 template <typename TargetTypeT = Aws::String>
244 DocumentIdentifier& WithTargetType(TargetTypeT&& value) {
245 SetTargetType(std::forward<TargetTypeT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
255 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
256 template <typename TagsT = Aws::Vector<Tag>>
257 void SetTags(TagsT&& value) {
258 m_tagsHasBeenSet = true;
259 m_tags = std::forward<TagsT>(value);
260 }
261 template <typename TagsT = Aws::Vector<Tag>>
262 DocumentIdentifier& WithTags(TagsT&& value) {
263 SetTags(std::forward<TagsT>(value));
264 return *this;
265 }
266 template <typename TagsT = Tag>
267 DocumentIdentifier& AddTags(TagsT&& value) {
268 m_tagsHasBeenSet = true;
269 m_tags.emplace_back(std::forward<TagsT>(value));
270 return *this;
271 }
273
275
280 inline const Aws::Vector<DocumentRequires>& GetRequires() const { return m_requires; }
281 inline bool RequiresHasBeenSet() const { return m_requiresHasBeenSet; }
282 template <typename RequiresT = Aws::Vector<DocumentRequires>>
283 void SetRequires(RequiresT&& value) {
284 m_requiresHasBeenSet = true;
285 m_requires = std::forward<RequiresT>(value);
286 }
287 template <typename RequiresT = Aws::Vector<DocumentRequires>>
288 DocumentIdentifier& WithRequires(RequiresT&& value) {
289 SetRequires(std::forward<RequiresT>(value));
290 return *this;
291 }
292 template <typename RequiresT = DocumentRequires>
293 DocumentIdentifier& AddRequires(RequiresT&& value) {
294 m_requiresHasBeenSet = true;
295 m_requires.emplace_back(std::forward<RequiresT>(value));
296 return *this;
297 }
299
301
304 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
305 inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; }
306 inline void SetReviewStatus(ReviewStatus value) {
307 m_reviewStatusHasBeenSet = true;
308 m_reviewStatus = value;
309 }
311 SetReviewStatus(value);
312 return *this;
313 }
315
317
320 inline const Aws::String& GetAuthor() const { return m_author; }
321 inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
322 template <typename AuthorT = Aws::String>
323 void SetAuthor(AuthorT&& value) {
324 m_authorHasBeenSet = true;
325 m_author = std::forward<AuthorT>(value);
326 }
327 template <typename AuthorT = Aws::String>
328 DocumentIdentifier& WithAuthor(AuthorT&& value) {
329 SetAuthor(std::forward<AuthorT>(value));
330 return *this;
331 }
333 private:
334 Aws::String m_name;
335
336 Aws::Utils::DateTime m_createdDate{};
337
338 Aws::String m_displayName;
339
340 Aws::String m_owner;
341
342 Aws::String m_versionName;
343
344 Aws::Vector<PlatformType> m_platformTypes;
345
346 Aws::String m_documentVersion;
347
348 DocumentType m_documentType{DocumentType::NOT_SET};
349
350 Aws::String m_schemaVersion;
351
352 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
353
354 Aws::String m_targetType;
355
356 Aws::Vector<Tag> m_tags;
357
359
360 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
361
362 Aws::String m_author;
363 bool m_nameHasBeenSet = false;
364 bool m_createdDateHasBeenSet = false;
365 bool m_displayNameHasBeenSet = false;
366 bool m_ownerHasBeenSet = false;
367 bool m_versionNameHasBeenSet = false;
368 bool m_platformTypesHasBeenSet = false;
369 bool m_documentVersionHasBeenSet = false;
370 bool m_documentTypeHasBeenSet = false;
371 bool m_schemaVersionHasBeenSet = false;
372 bool m_documentFormatHasBeenSet = false;
373 bool m_targetTypeHasBeenSet = false;
374 bool m_tagsHasBeenSet = false;
375 bool m_requiresHasBeenSet = false;
376 bool m_reviewStatusHasBeenSet = false;
377 bool m_authorHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace SSM
382} // namespace Aws
const Aws::String & GetVersionName() const
void SetDocumentType(DocumentType value)
DocumentIdentifier & WithDocumentType(DocumentType value)
const Aws::Vector< PlatformType > & GetPlatformTypes() const
void SetDisplayName(DisplayNameT &&value)
DocumentIdentifier & WithDisplayName(DisplayNameT &&value)
DocumentIdentifier & AddTags(TagsT &&value)
DocumentIdentifier & WithDocumentFormat(DocumentFormat value)
DocumentIdentifier & WithOwner(OwnerT &&value)
void SetDocumentFormat(DocumentFormat value)
const Aws::String & GetTargetType() const
AWS_SSM_API DocumentIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPlatformTypes(PlatformTypesT &&value)
void SetSchemaVersion(SchemaVersionT &&value)
const Aws::String & GetSchemaVersion() const
AWS_SSM_API DocumentIdentifier(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DocumentRequires > & GetRequires() const
DocumentIdentifier & WithCreatedDate(CreatedDateT &&value)
DocumentIdentifier & WithSchemaVersion(SchemaVersionT &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::String & GetAuthor() const
const Aws::Vector< Tag > & GetTags() const
DocumentIdentifier & WithTags(TagsT &&value)
void SetReviewStatus(ReviewStatus value)
DocumentIdentifier & WithDocumentVersion(DocumentVersionT &&value)
void SetDocumentVersion(DocumentVersionT &&value)
DocumentIdentifier & WithRequires(RequiresT &&value)
const Aws::String & GetDisplayName() const
const Aws::String & GetOwner() const
DocumentIdentifier & WithVersionName(VersionNameT &&value)
AWS_SSM_API DocumentIdentifier()=default
void SetVersionName(VersionNameT &&value)
const Aws::String & GetDocumentVersion() const
void SetTargetType(TargetTypeT &&value)
DocumentIdentifier & WithReviewStatus(ReviewStatus value)
void SetCreatedDate(CreatedDateT &&value)
DocumentIdentifier & WithTargetType(TargetTypeT &&value)
DocumentIdentifier & AddRequires(RequiresT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentIdentifier & WithName(NameT &&value)
DocumentIdentifier & WithPlatformTypes(PlatformTypesT &&value)
DocumentIdentifier & WithAuthor(AuthorT &&value)
DocumentIdentifier & AddPlatformTypes(PlatformType 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