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
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() = 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 "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 template<typename ContentT = Aws::String>
47 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
48 template<typename ContentT = Aws::String>
49 UpdateDocumentRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
51
53
57 inline const Aws::Vector<AttachmentsSource>& GetAttachments() const { return m_attachments; }
58 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
59 template<typename AttachmentsT = Aws::Vector<AttachmentsSource>>
60 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
61 template<typename AttachmentsT = Aws::Vector<AttachmentsSource>>
62 UpdateDocumentRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
63 template<typename AttachmentsT = AttachmentsSource>
64 UpdateDocumentRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 UpdateDocumentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
86 inline const Aws::String& GetDisplayName() const { return m_displayName; }
87 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
88 template<typename DisplayNameT = Aws::String>
89 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
90 template<typename DisplayNameT = Aws::String>
91 UpdateDocumentRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
93
95
100 inline const Aws::String& GetVersionName() const { return m_versionName; }
101 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
102 template<typename VersionNameT = Aws::String>
103 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
104 template<typename VersionNameT = Aws::String>
105 UpdateDocumentRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
107
109
118 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
119 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
120 template<typename DocumentVersionT = Aws::String>
121 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
122 template<typename DocumentVersionT = Aws::String>
123 UpdateDocumentRequest& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
125
127
131 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
132 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
133 inline void SetDocumentFormat(DocumentFormat value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
136
138
141 inline const Aws::String& GetTargetType() const { return m_targetType; }
142 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
143 template<typename TargetTypeT = Aws::String>
144 void SetTargetType(TargetTypeT&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::forward<TargetTypeT>(value); }
145 template<typename TargetTypeT = Aws::String>
146 UpdateDocumentRequest& WithTargetType(TargetTypeT&& value) { SetTargetType(std::forward<TargetTypeT>(value)); return *this;}
148 private:
149
150 Aws::String m_content;
151 bool m_contentHasBeenSet = false;
152
153 Aws::Vector<AttachmentsSource> m_attachments;
154 bool m_attachmentsHasBeenSet = false;
155
156 Aws::String m_name;
157 bool m_nameHasBeenSet = false;
158
159 Aws::String m_displayName;
160 bool m_displayNameHasBeenSet = false;
161
162 Aws::String m_versionName;
163 bool m_versionNameHasBeenSet = false;
164
165 Aws::String m_documentVersion;
166 bool m_documentVersionHasBeenSet = false;
167
168 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
169 bool m_documentFormatHasBeenSet = false;
170
171 Aws::String m_targetType;
172 bool m_targetTypeHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace SSM
177} // 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