AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename ContentT = Aws::String>
61 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
62 template<typename ContentT = Aws::String>
63 CreateDocumentRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
65
67
77 inline const Aws::Vector<DocumentRequires>& GetRequires() const { return m_requires; }
78 inline bool RequiresHasBeenSet() const { return m_requiresHasBeenSet; }
79 template<typename RequiresT = Aws::Vector<DocumentRequires>>
80 void SetRequires(RequiresT&& value) { m_requiresHasBeenSet = true; m_requires = std::forward<RequiresT>(value); }
81 template<typename RequiresT = Aws::Vector<DocumentRequires>>
82 CreateDocumentRequest& WithRequires(RequiresT&& value) { SetRequires(std::forward<RequiresT>(value)); return *this;}
83 template<typename RequiresT = DocumentRequires>
84 CreateDocumentRequest& AddRequires(RequiresT&& value) { m_requiresHasBeenSet = true; m_requires.emplace_back(std::forward<RequiresT>(value)); return *this; }
86
88
92 inline const Aws::Vector<AttachmentsSource>& GetAttachments() const { return m_attachments; }
93 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
94 template<typename AttachmentsT = Aws::Vector<AttachmentsSource>>
95 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
96 template<typename AttachmentsT = Aws::Vector<AttachmentsSource>>
97 CreateDocumentRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
98 template<typename AttachmentsT = AttachmentsSource>
99 CreateDocumentRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
101
103
112 inline const Aws::String& GetName() const { return m_name; }
113 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
114 template<typename NameT = Aws::String>
115 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
116 template<typename NameT = Aws::String>
117 CreateDocumentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
119
121
126 inline const Aws::String& GetDisplayName() const { return m_displayName; }
127 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
128 template<typename DisplayNameT = Aws::String>
129 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
130 template<typename DisplayNameT = Aws::String>
131 CreateDocumentRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
133
135
140 inline const Aws::String& GetVersionName() const { return m_versionName; }
141 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
142 template<typename VersionNameT = Aws::String>
143 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
144 template<typename VersionNameT = Aws::String>
145 CreateDocumentRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
147
149
154 inline DocumentType GetDocumentType() const { return m_documentType; }
155 inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; }
156 inline void SetDocumentType(DocumentType value) { m_documentTypeHasBeenSet = true; m_documentType = value; }
159
161
165 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
166 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
167 inline void SetDocumentFormat(DocumentFormat value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
170
172
182 inline const Aws::String& GetTargetType() const { return m_targetType; }
183 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
184 template<typename TargetTypeT = Aws::String>
185 void SetTargetType(TargetTypeT&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::forward<TargetTypeT>(value); }
186 template<typename TargetTypeT = Aws::String>
187 CreateDocumentRequest& WithTargetType(TargetTypeT&& value) { SetTargetType(std::forward<TargetTypeT>(value)); return *this;}
189
191
202 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template<typename TagsT = Aws::Vector<Tag>>
205 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
206 template<typename TagsT = Aws::Vector<Tag>>
207 CreateDocumentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
208 template<typename TagsT = Tag>
209 CreateDocumentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
211 private:
212
213 Aws::String m_content;
214 bool m_contentHasBeenSet = false;
215
217 bool m_requiresHasBeenSet = false;
218
219 Aws::Vector<AttachmentsSource> m_attachments;
220 bool m_attachmentsHasBeenSet = false;
221
222 Aws::String m_name;
223 bool m_nameHasBeenSet = false;
224
225 Aws::String m_displayName;
226 bool m_displayNameHasBeenSet = false;
227
228 Aws::String m_versionName;
229 bool m_versionNameHasBeenSet = false;
230
231 DocumentType m_documentType{DocumentType::NOT_SET};
232 bool m_documentTypeHasBeenSet = false;
233
234 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
235 bool m_documentFormatHasBeenSet = false;
236
237 Aws::String m_targetType;
238 bool m_targetTypeHasBeenSet = false;
239
240 Aws::Vector<Tag> m_tags;
241 bool m_tagsHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace SSM
246} // 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