AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DocumentIdentifier.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/DocumentType.h>
12#include <aws/ssm/model/DocumentFormat.h>
13#include <aws/ssm/model/ReviewStatus.h>
14#include <aws/ssm/model/PlatformType.h>
15#include <aws/ssm/model/Tag.h>
16#include <aws/ssm/model/DocumentRequires.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SSM
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_SSM_API DocumentIdentifier() = default;
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 DocumentIdentifier& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
68 template<typename CreatedDateT = Aws::Utils::DateTime>
69 DocumentIdentifier& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
71
73
78 inline const Aws::String& GetDisplayName() const { return m_displayName; }
79 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
80 template<typename DisplayNameT = Aws::String>
81 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
82 template<typename DisplayNameT = Aws::String>
83 DocumentIdentifier& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
85
87
90 inline const Aws::String& GetOwner() const { return m_owner; }
91 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
92 template<typename OwnerT = Aws::String>
93 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
94 template<typename OwnerT = Aws::String>
95 DocumentIdentifier& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
97
99
104 inline const Aws::String& GetVersionName() const { return m_versionName; }
105 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
106 template<typename VersionNameT = Aws::String>
107 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
108 template<typename VersionNameT = Aws::String>
109 DocumentIdentifier& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
111
113
116 inline const Aws::Vector<PlatformType>& GetPlatformTypes() const { return m_platformTypes; }
117 inline bool PlatformTypesHasBeenSet() const { return m_platformTypesHasBeenSet; }
118 template<typename PlatformTypesT = Aws::Vector<PlatformType>>
119 void SetPlatformTypes(PlatformTypesT&& value) { m_platformTypesHasBeenSet = true; m_platformTypes = std::forward<PlatformTypesT>(value); }
120 template<typename PlatformTypesT = Aws::Vector<PlatformType>>
121 DocumentIdentifier& WithPlatformTypes(PlatformTypesT&& value) { SetPlatformTypes(std::forward<PlatformTypesT>(value)); return *this;}
122 inline DocumentIdentifier& AddPlatformTypes(PlatformType value) { m_platformTypesHasBeenSet = true; m_platformTypes.push_back(value); return *this; }
124
126
129 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
130 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
131 template<typename DocumentVersionT = Aws::String>
132 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
133 template<typename DocumentVersionT = Aws::String>
134 DocumentIdentifier& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
136
138
141 inline DocumentType GetDocumentType() const { return m_documentType; }
142 inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; }
143 inline void SetDocumentType(DocumentType value) { m_documentTypeHasBeenSet = true; m_documentType = value; }
144 inline DocumentIdentifier& WithDocumentType(DocumentType value) { SetDocumentType(value); return *this;}
146
148
151 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
152 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
153 template<typename SchemaVersionT = Aws::String>
154 void SetSchemaVersion(SchemaVersionT&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
155 template<typename SchemaVersionT = Aws::String>
156 DocumentIdentifier& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
158
160
163 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
164 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
165 inline void SetDocumentFormat(DocumentFormat value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
168
170
178 inline const Aws::String& GetTargetType() const { return m_targetType; }
179 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
180 template<typename TargetTypeT = Aws::String>
181 void SetTargetType(TargetTypeT&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::forward<TargetTypeT>(value); }
182 template<typename TargetTypeT = Aws::String>
183 DocumentIdentifier& WithTargetType(TargetTypeT&& value) { SetTargetType(std::forward<TargetTypeT>(value)); return *this;}
185
187
190 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 template<typename TagsT = Aws::Vector<Tag>>
193 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
194 template<typename TagsT = Aws::Vector<Tag>>
195 DocumentIdentifier& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
196 template<typename TagsT = Tag>
197 DocumentIdentifier& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
199
201
206 inline const Aws::Vector<DocumentRequires>& GetRequires() const { return m_requires; }
207 inline bool RequiresHasBeenSet() const { return m_requiresHasBeenSet; }
208 template<typename RequiresT = Aws::Vector<DocumentRequires>>
209 void SetRequires(RequiresT&& value) { m_requiresHasBeenSet = true; m_requires = std::forward<RequiresT>(value); }
210 template<typename RequiresT = Aws::Vector<DocumentRequires>>
211 DocumentIdentifier& WithRequires(RequiresT&& value) { SetRequires(std::forward<RequiresT>(value)); return *this;}
212 template<typename RequiresT = DocumentRequires>
213 DocumentIdentifier& AddRequires(RequiresT&& value) { m_requiresHasBeenSet = true; m_requires.emplace_back(std::forward<RequiresT>(value)); return *this; }
215
217
220 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
221 inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; }
222 inline void SetReviewStatus(ReviewStatus value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; }
223 inline DocumentIdentifier& WithReviewStatus(ReviewStatus value) { SetReviewStatus(value); return *this;}
225
227
230 inline const Aws::String& GetAuthor() const { return m_author; }
231 inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
232 template<typename AuthorT = Aws::String>
233 void SetAuthor(AuthorT&& value) { m_authorHasBeenSet = true; m_author = std::forward<AuthorT>(value); }
234 template<typename AuthorT = Aws::String>
235 DocumentIdentifier& WithAuthor(AuthorT&& value) { SetAuthor(std::forward<AuthorT>(value)); return *this;}
237 private:
238
239 Aws::String m_name;
240 bool m_nameHasBeenSet = false;
241
242 Aws::Utils::DateTime m_createdDate{};
243 bool m_createdDateHasBeenSet = false;
244
245 Aws::String m_displayName;
246 bool m_displayNameHasBeenSet = false;
247
248 Aws::String m_owner;
249 bool m_ownerHasBeenSet = false;
250
251 Aws::String m_versionName;
252 bool m_versionNameHasBeenSet = false;
253
254 Aws::Vector<PlatformType> m_platformTypes;
255 bool m_platformTypesHasBeenSet = false;
256
257 Aws::String m_documentVersion;
258 bool m_documentVersionHasBeenSet = false;
259
260 DocumentType m_documentType{DocumentType::NOT_SET};
261 bool m_documentTypeHasBeenSet = false;
262
263 Aws::String m_schemaVersion;
264 bool m_schemaVersionHasBeenSet = false;
265
266 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
267 bool m_documentFormatHasBeenSet = false;
268
269 Aws::String m_targetType;
270 bool m_targetTypeHasBeenSet = false;
271
272 Aws::Vector<Tag> m_tags;
273 bool m_tagsHasBeenSet = false;
274
276 bool m_requiresHasBeenSet = false;
277
278 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
279 bool m_reviewStatusHasBeenSet = false;
280
281 Aws::String m_author;
282 bool m_authorHasBeenSet = false;
283 };
284
285} // namespace Model
286} // namespace SSM
287} // 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