AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateDocumentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/AttachmentsSource.h>
12#include <aws/ssm/model/DocumentFormat.h>
13#include <aws/ssm/model/DocumentRequires.h>
14#include <aws/ssm/model/DocumentType.h>
15#include <aws/ssm/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SSM {
21namespace Model {
22
26 public:
27 AWS_SSM_API CreateDocumentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDocument"; }
34
35 AWS_SSM_API Aws::String SerializePayload() const override;
36
38
40
54 inline const Aws::String& GetContent() const { return m_content; }
55 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
56 template <typename ContentT = Aws::String>
57 void SetContent(ContentT&& value) {
58 m_contentHasBeenSet = true;
59 m_content = std::forward<ContentT>(value);
60 }
61 template <typename ContentT = Aws::String>
63 SetContent(std::forward<ContentT>(value));
64 return *this;
65 }
67
69
79 inline const Aws::Vector<DocumentRequires>& GetRequires() const { return m_requires; }
80 inline bool RequiresHasBeenSet() const { return m_requiresHasBeenSet; }
81 template <typename RequiresT = Aws::Vector<DocumentRequires>>
82 void SetRequires(RequiresT&& value) {
83 m_requiresHasBeenSet = true;
84 m_requires = std::forward<RequiresT>(value);
85 }
86 template <typename RequiresT = Aws::Vector<DocumentRequires>>
87 CreateDocumentRequest& WithRequires(RequiresT&& value) {
88 SetRequires(std::forward<RequiresT>(value));
89 return *this;
90 }
91 template <typename RequiresT = DocumentRequires>
92 CreateDocumentRequest& AddRequires(RequiresT&& value) {
93 m_requiresHasBeenSet = true;
94 m_requires.emplace_back(std::forward<RequiresT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Vector<AttachmentsSource>& GetAttachments() const { return m_attachments; }
105 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
106 template <typename AttachmentsT = Aws::Vector<AttachmentsSource>>
107 void SetAttachments(AttachmentsT&& value) {
108 m_attachmentsHasBeenSet = true;
109 m_attachments = std::forward<AttachmentsT>(value);
110 }
111 template <typename AttachmentsT = Aws::Vector<AttachmentsSource>>
112 CreateDocumentRequest& WithAttachments(AttachmentsT&& value) {
113 SetAttachments(std::forward<AttachmentsT>(value));
114 return *this;
115 }
116 template <typename AttachmentsT = AttachmentsSource>
117 CreateDocumentRequest& AddAttachments(AttachmentsT&& value) {
118 m_attachmentsHasBeenSet = true;
119 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
120 return *this;
121 }
123
125
134 inline const Aws::String& GetName() const { return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 template <typename NameT = Aws::String>
137 void SetName(NameT&& value) {
138 m_nameHasBeenSet = true;
139 m_name = std::forward<NameT>(value);
140 }
141 template <typename NameT = Aws::String>
143 SetName(std::forward<NameT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::String& GetDisplayName() const { return m_displayName; }
155 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
156 template <typename DisplayNameT = Aws::String>
157 void SetDisplayName(DisplayNameT&& value) {
158 m_displayNameHasBeenSet = true;
159 m_displayName = std::forward<DisplayNameT>(value);
160 }
161 template <typename DisplayNameT = Aws::String>
162 CreateDocumentRequest& WithDisplayName(DisplayNameT&& value) {
163 SetDisplayName(std::forward<DisplayNameT>(value));
164 return *this;
165 }
167
169
174 inline const Aws::String& GetVersionName() const { return m_versionName; }
175 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
176 template <typename VersionNameT = Aws::String>
177 void SetVersionName(VersionNameT&& value) {
178 m_versionNameHasBeenSet = true;
179 m_versionName = std::forward<VersionNameT>(value);
180 }
181 template <typename VersionNameT = Aws::String>
182 CreateDocumentRequest& WithVersionName(VersionNameT&& value) {
183 SetVersionName(std::forward<VersionNameT>(value));
184 return *this;
185 }
187
189
194 inline DocumentType GetDocumentType() const { return m_documentType; }
195 inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; }
196 inline void SetDocumentType(DocumentType value) {
197 m_documentTypeHasBeenSet = true;
198 m_documentType = value;
199 }
201 SetDocumentType(value);
202 return *this;
203 }
205
207
211 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
212 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
214 m_documentFormatHasBeenSet = true;
215 m_documentFormat = value;
216 }
218 SetDocumentFormat(value);
219 return *this;
220 }
222
224
234 inline const Aws::String& GetTargetType() const { return m_targetType; }
235 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
236 template <typename TargetTypeT = Aws::String>
237 void SetTargetType(TargetTypeT&& value) {
238 m_targetTypeHasBeenSet = true;
239 m_targetType = std::forward<TargetTypeT>(value);
240 }
241 template <typename TargetTypeT = Aws::String>
242 CreateDocumentRequest& WithTargetType(TargetTypeT&& value) {
243 SetTargetType(std::forward<TargetTypeT>(value));
244 return *this;
245 }
247
249
260 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
261 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
262 template <typename TagsT = Aws::Vector<Tag>>
263 void SetTags(TagsT&& value) {
264 m_tagsHasBeenSet = true;
265 m_tags = std::forward<TagsT>(value);
266 }
267 template <typename TagsT = Aws::Vector<Tag>>
269 SetTags(std::forward<TagsT>(value));
270 return *this;
271 }
272 template <typename TagsT = Tag>
274 m_tagsHasBeenSet = true;
275 m_tags.emplace_back(std::forward<TagsT>(value));
276 return *this;
277 }
279 private:
280 Aws::String m_content;
281
283
284 Aws::Vector<AttachmentsSource> m_attachments;
285
286 Aws::String m_name;
287
288 Aws::String m_displayName;
289
290 Aws::String m_versionName;
291
292 DocumentType m_documentType{DocumentType::NOT_SET};
293
294 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
295
296 Aws::String m_targetType;
297
298 Aws::Vector<Tag> m_tags;
299 bool m_contentHasBeenSet = false;
300 bool m_requiresHasBeenSet = false;
301 bool m_attachmentsHasBeenSet = false;
302 bool m_nameHasBeenSet = false;
303 bool m_displayNameHasBeenSet = false;
304 bool m_versionNameHasBeenSet = false;
305 bool m_documentTypeHasBeenSet = false;
306 bool m_documentFormatHasBeenSet = false;
307 bool m_targetTypeHasBeenSet = false;
308 bool m_tagsHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace SSM
313} // namespace Aws
CreateDocumentRequest & AddRequires(RequiresT &&value)
CreateDocumentRequest & WithRequires(RequiresT &&value)
CreateDocumentRequest & WithAttachments(AttachmentsT &&value)
CreateDocumentRequest & WithDisplayName(DisplayNameT &&value)
CreateDocumentRequest & AddTags(TagsT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateDocumentRequest & WithDocumentType(DocumentType value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDocumentRequest & WithTags(TagsT &&value)
CreateDocumentRequest & WithTargetType(TargetTypeT &&value)
CreateDocumentRequest & WithContent(ContentT &&value)
CreateDocumentRequest & AddAttachments(AttachmentsT &&value)
const Aws::Vector< Tag > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateDocumentRequest & WithName(NameT &&value)
CreateDocumentRequest & WithDocumentFormat(DocumentFormat value)
AWS_SSM_API CreateDocumentRequest()=default
CreateDocumentRequest & WithVersionName(VersionNameT &&value)
const Aws::Vector< DocumentRequires > & GetRequires() const
const Aws::Vector< AttachmentsSource > & GetAttachments() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector