AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDocumentRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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/DocumentRequires.h>
14#include <aws/ssm/model/AttachmentsSource.h>
15#include <aws/ssm/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SSM
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SSM_API CreateDocumentRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDocument"; }
37
38 AWS_SSM_API Aws::String SerializePayload() const override;
39
41
42
44
58 inline const Aws::String& GetContent() const{ return m_content; }
59 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
60 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
61 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
62 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
63 inline CreateDocumentRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
64 inline CreateDocumentRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
65 inline CreateDocumentRequest& WithContent(const char* value) { SetContent(value); return *this;}
67
69
79 inline const Aws::Vector<DocumentRequires>& GetRequires() const{ return m_requires; }
80 inline bool RequiresHasBeenSet() const { return m_requiresHasBeenSet; }
81 inline void SetRequires(const Aws::Vector<DocumentRequires>& value) { m_requiresHasBeenSet = true; m_requires = value; }
82 inline void SetRequires(Aws::Vector<DocumentRequires>&& value) { m_requiresHasBeenSet = true; m_requires = std::move(value); }
83 inline CreateDocumentRequest& WithRequires(const Aws::Vector<DocumentRequires>& value) { SetRequires(value); return *this;}
84 inline CreateDocumentRequest& WithRequires(Aws::Vector<DocumentRequires>&& value) { SetRequires(std::move(value)); return *this;}
85 inline CreateDocumentRequest& AddRequires(const DocumentRequires& value) { m_requiresHasBeenSet = true; m_requires.push_back(value); return *this; }
86 inline CreateDocumentRequest& AddRequires(DocumentRequires&& value) { m_requiresHasBeenSet = true; m_requires.push_back(std::move(value)); return *this; }
88
90
94 inline const Aws::Vector<AttachmentsSource>& GetAttachments() const{ return m_attachments; }
95 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
96 inline void SetAttachments(const Aws::Vector<AttachmentsSource>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
97 inline void SetAttachments(Aws::Vector<AttachmentsSource>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
99 inline CreateDocumentRequest& WithAttachments(Aws::Vector<AttachmentsSource>&& value) { SetAttachments(std::move(value)); return *this;}
100 inline CreateDocumentRequest& AddAttachments(const AttachmentsSource& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
101 inline CreateDocumentRequest& AddAttachments(AttachmentsSource&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
103
105
114 inline const Aws::String& GetName() const{ return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
117 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
118 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
119 inline CreateDocumentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
120 inline CreateDocumentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 inline CreateDocumentRequest& WithName(const char* value) { SetName(value); return *this;}
123
125
130 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
131 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
132 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
133 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
134 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
135 inline CreateDocumentRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
136 inline CreateDocumentRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
137 inline CreateDocumentRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
139
141
146 inline const Aws::String& GetVersionName() const{ return m_versionName; }
147 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
148 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
149 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
150 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
151 inline CreateDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
152 inline CreateDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
153 inline CreateDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
155
157
162 inline const DocumentType& GetDocumentType() const{ return m_documentType; }
163 inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; }
164 inline void SetDocumentType(const DocumentType& value) { m_documentTypeHasBeenSet = true; m_documentType = value; }
165 inline void SetDocumentType(DocumentType&& value) { m_documentTypeHasBeenSet = true; m_documentType = std::move(value); }
166 inline CreateDocumentRequest& WithDocumentType(const DocumentType& value) { SetDocumentType(value); return *this;}
167 inline CreateDocumentRequest& WithDocumentType(DocumentType&& value) { SetDocumentType(std::move(value)); return *this;}
169
171
175 inline const DocumentFormat& GetDocumentFormat() const{ return m_documentFormat; }
176 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
177 inline void SetDocumentFormat(const DocumentFormat& value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
178 inline void SetDocumentFormat(DocumentFormat&& value) { m_documentFormatHasBeenSet = true; m_documentFormat = std::move(value); }
179 inline CreateDocumentRequest& WithDocumentFormat(const DocumentFormat& value) { SetDocumentFormat(value); return *this;}
180 inline CreateDocumentRequest& WithDocumentFormat(DocumentFormat&& value) { SetDocumentFormat(std::move(value)); return *this;}
182
184
194 inline const Aws::String& GetTargetType() const{ return m_targetType; }
195 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
196 inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
197 inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
198 inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
199 inline CreateDocumentRequest& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
200 inline CreateDocumentRequest& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
201 inline CreateDocumentRequest& WithTargetType(const char* value) { SetTargetType(value); return *this;}
203
205
216 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
217 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
218 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
219 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
220 inline CreateDocumentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
221 inline CreateDocumentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
222 inline CreateDocumentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
223 inline CreateDocumentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
225 private:
226
227 Aws::String m_content;
228 bool m_contentHasBeenSet = false;
229
231 bool m_requiresHasBeenSet = false;
232
233 Aws::Vector<AttachmentsSource> m_attachments;
234 bool m_attachmentsHasBeenSet = false;
235
236 Aws::String m_name;
237 bool m_nameHasBeenSet = false;
238
239 Aws::String m_displayName;
240 bool m_displayNameHasBeenSet = false;
241
242 Aws::String m_versionName;
243 bool m_versionNameHasBeenSet = false;
244
245 DocumentType m_documentType;
246 bool m_documentTypeHasBeenSet = false;
247
248 DocumentFormat m_documentFormat;
249 bool m_documentFormatHasBeenSet = false;
250
251 Aws::String m_targetType;
252 bool m_targetTypeHasBeenSet = false;
253
254 Aws::Vector<Tag> m_tags;
255 bool m_tagsHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace SSM
260} // namespace Aws
CreateDocumentRequest & WithContent(const char *value)
CreateDocumentRequest & AddAttachments(const AttachmentsSource &value)
CreateDocumentRequest & AddTags(const Tag &value)
CreateDocumentRequest & WithName(const Aws::String &value)
CreateDocumentRequest & AddAttachments(AttachmentsSource &&value)
void SetAttachments(const Aws::Vector< AttachmentsSource > &value)
CreateDocumentRequest & WithContent(Aws::String &&value)
AWS_SSM_API Aws::String SerializePayload() const override
const DocumentFormat & GetDocumentFormat() const
CreateDocumentRequest & WithTargetType(const Aws::String &value)
CreateDocumentRequest & WithDocumentType(DocumentType &&value)
CreateDocumentRequest & WithName(Aws::String &&value)
void SetDisplayName(const Aws::String &value)
CreateDocumentRequest & WithDocumentFormat(DocumentFormat &&value)
void SetContent(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetRequires(Aws::Vector< DocumentRequires > &&value)
CreateDocumentRequest & WithDisplayName(const Aws::String &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDocumentRequest & AddRequires(DocumentRequires &&value)
CreateDocumentRequest & WithDisplayName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDocumentRequest & WithVersionName(Aws::String &&value)
CreateDocumentRequest & WithRequires(const Aws::Vector< DocumentRequires > &value)
CreateDocumentRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDocumentRequest & WithDocumentType(const DocumentType &value)
void SetRequires(const Aws::Vector< DocumentRequires > &value)
void SetDocumentFormat(const DocumentFormat &value)
void SetAttachments(Aws::Vector< AttachmentsSource > &&value)
void SetDocumentType(const DocumentType &value)
const Aws::Vector< Tag > & GetTags() const
CreateDocumentRequest & WithTargetType(const char *value)
CreateDocumentRequest & WithDocumentFormat(const DocumentFormat &value)
virtual const char * GetServiceRequestName() const override
CreateDocumentRequest & WithDisplayName(const char *value)
CreateDocumentRequest & AddTags(Tag &&value)
CreateDocumentRequest & WithAttachments(const Aws::Vector< AttachmentsSource > &value)
CreateDocumentRequest & WithTargetType(Aws::String &&value)
CreateDocumentRequest & WithAttachments(Aws::Vector< AttachmentsSource > &&value)
CreateDocumentRequest & WithRequires(Aws::Vector< DocumentRequires > &&value)
CreateDocumentRequest & WithContent(const Aws::String &value)
void SetVersionName(const Aws::String &value)
CreateDocumentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDocumentRequest & WithName(const char *value)
CreateDocumentRequest & AddRequires(const DocumentRequires &value)
CreateDocumentRequest & WithVersionName(const char *value)
void SetTargetType(const Aws::String &value)
const DocumentType & GetDocumentType() const
void SetDocumentFormat(DocumentFormat &&value)
CreateDocumentRequest & WithVersionName(const Aws::String &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