AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDocumentRequest.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/DocumentFormat.h>
12#include <aws/ssm/model/AttachmentsSource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SSM
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSM_API UpdateDocumentRequest();
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 "UpdateDocument"; }
34
35 AWS_SSM_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetContent() const{ return m_content; }
45 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
46 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
47 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
48 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
49 inline UpdateDocumentRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
50 inline UpdateDocumentRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
51 inline UpdateDocumentRequest& WithContent(const char* value) { SetContent(value); return *this;}
53
55
59 inline const Aws::Vector<AttachmentsSource>& GetAttachments() const{ return m_attachments; }
60 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
61 inline void SetAttachments(const Aws::Vector<AttachmentsSource>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
62 inline void SetAttachments(Aws::Vector<AttachmentsSource>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
64 inline UpdateDocumentRequest& WithAttachments(Aws::Vector<AttachmentsSource>&& value) { SetAttachments(std::move(value)); return *this;}
65 inline UpdateDocumentRequest& AddAttachments(const AttachmentsSource& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
66 inline UpdateDocumentRequest& AddAttachments(AttachmentsSource&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline UpdateDocumentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline UpdateDocumentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline UpdateDocumentRequest& WithName(const char* value) { SetName(value); return *this;}
82
84
90 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
91 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
92 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
93 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
94 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
95 inline UpdateDocumentRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
96 inline UpdateDocumentRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
97 inline UpdateDocumentRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
99
101
106 inline const Aws::String& GetVersionName() const{ return m_versionName; }
107 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
108 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
109 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
110 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
111 inline UpdateDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
112 inline UpdateDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
113 inline UpdateDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
115
117
126 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
127 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
128 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
129 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
130 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
131 inline UpdateDocumentRequest& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
132 inline UpdateDocumentRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
133 inline UpdateDocumentRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
135
137
141 inline const DocumentFormat& GetDocumentFormat() const{ return m_documentFormat; }
142 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
143 inline void SetDocumentFormat(const DocumentFormat& value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
144 inline void SetDocumentFormat(DocumentFormat&& value) { m_documentFormatHasBeenSet = true; m_documentFormat = std::move(value); }
145 inline UpdateDocumentRequest& WithDocumentFormat(const DocumentFormat& value) { SetDocumentFormat(value); return *this;}
146 inline UpdateDocumentRequest& WithDocumentFormat(DocumentFormat&& value) { SetDocumentFormat(std::move(value)); return *this;}
148
150
153 inline const Aws::String& GetTargetType() const{ return m_targetType; }
154 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
155 inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
156 inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
157 inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
158 inline UpdateDocumentRequest& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
159 inline UpdateDocumentRequest& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
160 inline UpdateDocumentRequest& WithTargetType(const char* value) { SetTargetType(value); return *this;}
162 private:
163
164 Aws::String m_content;
165 bool m_contentHasBeenSet = false;
166
167 Aws::Vector<AttachmentsSource> m_attachments;
168 bool m_attachmentsHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_displayName;
174 bool m_displayNameHasBeenSet = false;
175
176 Aws::String m_versionName;
177 bool m_versionNameHasBeenSet = false;
178
179 Aws::String m_documentVersion;
180 bool m_documentVersionHasBeenSet = false;
181
182 DocumentFormat m_documentFormat;
183 bool m_documentFormatHasBeenSet = false;
184
185 Aws::String m_targetType;
186 bool m_targetTypeHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace SSM
191} // namespace Aws
UpdateDocumentRequest & WithAttachments(const Aws::Vector< AttachmentsSource > &value)
UpdateDocumentRequest & WithAttachments(Aws::Vector< AttachmentsSource > &&value)
void SetAttachments(const Aws::Vector< AttachmentsSource > &value)
void SetName(const Aws::String &value)
void SetDocumentFormat(DocumentFormat &&value)
UpdateDocumentRequest & WithDocumentVersion(Aws::String &&value)
UpdateDocumentRequest & WithDisplayName(Aws::String &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateDocumentRequest & WithTargetType(Aws::String &&value)
UpdateDocumentRequest & WithName(const char *value)
UpdateDocumentRequest & WithName(const Aws::String &value)
UpdateDocumentRequest & AddAttachments(AttachmentsSource &&value)
UpdateDocumentRequest & WithContent(const Aws::String &value)
UpdateDocumentRequest & AddAttachments(const AttachmentsSource &value)
UpdateDocumentRequest & WithTargetType(const Aws::String &value)
void SetVersionName(const Aws::String &value)
const DocumentFormat & GetDocumentFormat() const
void SetDocumentVersion(const Aws::String &value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateDocumentRequest & WithDocumentFormat(const DocumentFormat &value)
UpdateDocumentRequest & WithContent(const char *value)
UpdateDocumentRequest & WithVersionName(Aws::String &&value)
UpdateDocumentRequest & WithDocumentFormat(DocumentFormat &&value)
void SetDisplayName(const Aws::String &value)
UpdateDocumentRequest & WithDocumentVersion(const Aws::String &value)
const Aws::Vector< AttachmentsSource > & GetAttachments() const
UpdateDocumentRequest & WithDisplayName(const Aws::String &value)
UpdateDocumentRequest & WithVersionName(const Aws::String &value)
UpdateDocumentRequest & WithName(Aws::String &&value)
UpdateDocumentRequest & WithDisplayName(const char *value)
UpdateDocumentRequest & WithVersionName(const char *value)
UpdateDocumentRequest & WithDocumentVersion(const char *value)
UpdateDocumentRequest & WithTargetType(const char *value)
void SetDocumentFormat(const DocumentFormat &value)
const Aws::String & GetDocumentVersion() const
void SetContent(const Aws::String &value)
void SetAttachments(Aws::Vector< AttachmentsSource > &&value)
void SetTargetType(const Aws::String &value)
UpdateDocumentRequest & WithContent(Aws::String &&value)
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