AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateDocumentRequest.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
14#include <utility>
15
16namespace Aws {
17namespace SSM {
18namespace Model {
19
23 public:
24 AWS_SSM_API UpdateDocumentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateDocument"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetContent() const { return m_content; }
41 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
42 template <typename ContentT = Aws::String>
43 void SetContent(ContentT&& value) {
44 m_contentHasBeenSet = true;
45 m_content = std::forward<ContentT>(value);
46 }
47 template <typename ContentT = Aws::String>
49 SetContent(std::forward<ContentT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<AttachmentsSource>& GetAttachments() const { return m_attachments; }
60 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
61 template <typename AttachmentsT = Aws::Vector<AttachmentsSource>>
62 void SetAttachments(AttachmentsT&& value) {
63 m_attachmentsHasBeenSet = true;
64 m_attachments = std::forward<AttachmentsT>(value);
65 }
66 template <typename AttachmentsT = Aws::Vector<AttachmentsSource>>
67 UpdateDocumentRequest& WithAttachments(AttachmentsT&& value) {
68 SetAttachments(std::forward<AttachmentsT>(value));
69 return *this;
70 }
71 template <typename AttachmentsT = AttachmentsSource>
72 UpdateDocumentRequest& AddAttachments(AttachmentsT&& value) {
73 m_attachmentsHasBeenSet = true;
74 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template <typename NameT = Aws::String>
86 void SetName(NameT&& value) {
87 m_nameHasBeenSet = true;
88 m_name = std::forward<NameT>(value);
89 }
90 template <typename NameT = Aws::String>
92 SetName(std::forward<NameT>(value));
93 return *this;
94 }
96
98
104 inline const Aws::String& GetDisplayName() const { return m_displayName; }
105 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
106 template <typename DisplayNameT = Aws::String>
107 void SetDisplayName(DisplayNameT&& value) {
108 m_displayNameHasBeenSet = true;
109 m_displayName = std::forward<DisplayNameT>(value);
110 }
111 template <typename DisplayNameT = Aws::String>
112 UpdateDocumentRequest& WithDisplayName(DisplayNameT&& value) {
113 SetDisplayName(std::forward<DisplayNameT>(value));
114 return *this;
115 }
117
119
124 inline const Aws::String& GetVersionName() const { return m_versionName; }
125 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
126 template <typename VersionNameT = Aws::String>
127 void SetVersionName(VersionNameT&& value) {
128 m_versionNameHasBeenSet = true;
129 m_versionName = std::forward<VersionNameT>(value);
130 }
131 template <typename VersionNameT = Aws::String>
132 UpdateDocumentRequest& WithVersionName(VersionNameT&& value) {
133 SetVersionName(std::forward<VersionNameT>(value));
134 return *this;
135 }
137
139
148 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
149 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
150 template <typename DocumentVersionT = Aws::String>
151 void SetDocumentVersion(DocumentVersionT&& value) {
152 m_documentVersionHasBeenSet = true;
153 m_documentVersion = std::forward<DocumentVersionT>(value);
154 }
155 template <typename DocumentVersionT = Aws::String>
156 UpdateDocumentRequest& WithDocumentVersion(DocumentVersionT&& value) {
157 SetDocumentVersion(std::forward<DocumentVersionT>(value));
158 return *this;
159 }
161
163
167 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
168 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
170 m_documentFormatHasBeenSet = true;
171 m_documentFormat = value;
172 }
174 SetDocumentFormat(value);
175 return *this;
176 }
178
180
183 inline const Aws::String& GetTargetType() const { return m_targetType; }
184 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
185 template <typename TargetTypeT = Aws::String>
186 void SetTargetType(TargetTypeT&& value) {
187 m_targetTypeHasBeenSet = true;
188 m_targetType = std::forward<TargetTypeT>(value);
189 }
190 template <typename TargetTypeT = Aws::String>
191 UpdateDocumentRequest& WithTargetType(TargetTypeT&& value) {
192 SetTargetType(std::forward<TargetTypeT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_content;
198
199 Aws::Vector<AttachmentsSource> m_attachments;
200
201 Aws::String m_name;
202
203 Aws::String m_displayName;
204
205 Aws::String m_versionName;
206
207 Aws::String m_documentVersion;
208
209 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
210
211 Aws::String m_targetType;
212 bool m_contentHasBeenSet = false;
213 bool m_attachmentsHasBeenSet = false;
214 bool m_nameHasBeenSet = false;
215 bool m_displayNameHasBeenSet = false;
216 bool m_versionNameHasBeenSet = false;
217 bool m_documentVersionHasBeenSet = false;
218 bool m_documentFormatHasBeenSet = false;
219 bool m_targetTypeHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace SSM
224} // namespace Aws
UpdateDocumentRequest & WithContent(ContentT &&value)
UpdateDocumentRequest & WithTargetType(TargetTypeT &&value)
AWS_SSM_API UpdateDocumentRequest()=default
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDocumentRequest & WithDocumentFormat(DocumentFormat value)
virtual const char * GetServiceRequestName() const override
UpdateDocumentRequest & WithVersionName(VersionNameT &&value)
UpdateDocumentRequest & AddAttachments(AttachmentsT &&value)
UpdateDocumentRequest & WithAttachments(AttachmentsT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateDocumentRequest & WithDisplayName(DisplayNameT &&value)
void SetDocumentVersion(DocumentVersionT &&value)
const Aws::Vector< AttachmentsSource > & GetAttachments() const
UpdateDocumentRequest & WithName(NameT &&value)
UpdateDocumentRequest & WithDocumentVersion(DocumentVersionT &&value)
const Aws::String & GetDocumentVersion() 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