AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MaintenanceWindowRunCommandParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/CloudWatchOutputConfig.h>
12#include <aws/ssm/model/DocumentHashType.h>
13#include <aws/ssm/model/NotificationConfig.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM {
25namespace Model {
26
52 public:
57
59
62 inline const Aws::String& GetComment() const { return m_comment; }
63 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
64 template <typename CommentT = Aws::String>
65 void SetComment(CommentT&& value) {
66 m_commentHasBeenSet = true;
67 m_comment = std::forward<CommentT>(value);
68 }
69 template <typename CommentT = Aws::String>
71 SetComment(std::forward<CommentT>(value));
72 return *this;
73 }
75
77
78 inline const CloudWatchOutputConfig& GetCloudWatchOutputConfig() const { return m_cloudWatchOutputConfig; }
79 inline bool CloudWatchOutputConfigHasBeenSet() const { return m_cloudWatchOutputConfigHasBeenSet; }
80 template <typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
81 void SetCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) {
82 m_cloudWatchOutputConfigHasBeenSet = true;
83 m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value);
84 }
85 template <typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
87 SetCloudWatchOutputConfig(std::forward<CloudWatchOutputConfigT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDocumentHash() const { return m_documentHash; }
98 inline bool DocumentHashHasBeenSet() const { return m_documentHashHasBeenSet; }
99 template <typename DocumentHashT = Aws::String>
100 void SetDocumentHash(DocumentHashT&& value) {
101 m_documentHashHasBeenSet = true;
102 m_documentHash = std::forward<DocumentHashT>(value);
103 }
104 template <typename DocumentHashT = Aws::String>
106 SetDocumentHash(std::forward<DocumentHashT>(value));
107 return *this;
108 }
110
112
115 inline DocumentHashType GetDocumentHashType() const { return m_documentHashType; }
116 inline bool DocumentHashTypeHasBeenSet() const { return m_documentHashTypeHasBeenSet; }
118 m_documentHashTypeHasBeenSet = true;
119 m_documentHashType = value;
120 }
122 SetDocumentHashType(value);
123 return *this;
124 }
126
128
138 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
139 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
140 template <typename DocumentVersionT = Aws::String>
141 void SetDocumentVersion(DocumentVersionT&& value) {
142 m_documentVersionHasBeenSet = true;
143 m_documentVersion = std::forward<DocumentVersionT>(value);
144 }
145 template <typename DocumentVersionT = Aws::String>
147 SetDocumentVersion(std::forward<DocumentVersionT>(value));
148 return *this;
149 }
151
153
157 inline const NotificationConfig& GetNotificationConfig() const { return m_notificationConfig; }
158 inline bool NotificationConfigHasBeenSet() const { return m_notificationConfigHasBeenSet; }
159 template <typename NotificationConfigT = NotificationConfig>
160 void SetNotificationConfig(NotificationConfigT&& value) {
161 m_notificationConfigHasBeenSet = true;
162 m_notificationConfig = std::forward<NotificationConfigT>(value);
163 }
164 template <typename NotificationConfigT = NotificationConfig>
166 SetNotificationConfig(std::forward<NotificationConfigT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetOutputS3BucketName() const { return m_outputS3BucketName; }
176 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
177 template <typename OutputS3BucketNameT = Aws::String>
178 void SetOutputS3BucketName(OutputS3BucketNameT&& value) {
179 m_outputS3BucketNameHasBeenSet = true;
180 m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value);
181 }
182 template <typename OutputS3BucketNameT = Aws::String>
184 SetOutputS3BucketName(std::forward<OutputS3BucketNameT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
194 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
195 template <typename OutputS3KeyPrefixT = Aws::String>
196 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) {
197 m_outputS3KeyPrefixHasBeenSet = true;
198 m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value);
199 }
200 template <typename OutputS3KeyPrefixT = Aws::String>
202 SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
212 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
213 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
214 void SetParameters(ParametersT&& value) {
215 m_parametersHasBeenSet = true;
216 m_parameters = std::forward<ParametersT>(value);
217 }
218 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
220 SetParameters(std::forward<ParametersT>(value));
221 return *this;
222 }
223 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
224 MaintenanceWindowRunCommandParameters& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
225 m_parametersHasBeenSet = true;
226 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
227 return *this;
228 }
230
232
247 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
248 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
249 template <typename ServiceRoleArnT = Aws::String>
250 void SetServiceRoleArn(ServiceRoleArnT&& value) {
251 m_serviceRoleArnHasBeenSet = true;
252 m_serviceRoleArn = std::forward<ServiceRoleArnT>(value);
253 }
254 template <typename ServiceRoleArnT = Aws::String>
256 SetServiceRoleArn(std::forward<ServiceRoleArnT>(value));
257 return *this;
258 }
260
262
266 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
267 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
268 inline void SetTimeoutSeconds(int value) {
269 m_timeoutSecondsHasBeenSet = true;
270 m_timeoutSeconds = value;
271 }
273 SetTimeoutSeconds(value);
274 return *this;
275 }
277 private:
278 Aws::String m_comment;
279
280 CloudWatchOutputConfig m_cloudWatchOutputConfig;
281
282 Aws::String m_documentHash;
283
285
286 Aws::String m_documentVersion;
287
288 NotificationConfig m_notificationConfig;
289
290 Aws::String m_outputS3BucketName;
291
292 Aws::String m_outputS3KeyPrefix;
293
295
296 Aws::String m_serviceRoleArn;
297
298 int m_timeoutSeconds{0};
299 bool m_commentHasBeenSet = false;
300 bool m_cloudWatchOutputConfigHasBeenSet = false;
301 bool m_documentHashHasBeenSet = false;
302 bool m_documentHashTypeHasBeenSet = false;
303 bool m_documentVersionHasBeenSet = false;
304 bool m_notificationConfigHasBeenSet = false;
305 bool m_outputS3BucketNameHasBeenSet = false;
306 bool m_outputS3KeyPrefixHasBeenSet = false;
307 bool m_parametersHasBeenSet = false;
308 bool m_serviceRoleArnHasBeenSet = false;
309 bool m_timeoutSecondsHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace SSM
314} // namespace Aws
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
MaintenanceWindowRunCommandParameters & WithDocumentHash(DocumentHashT &&value)
AWS_SSM_API MaintenanceWindowRunCommandParameters(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API MaintenanceWindowRunCommandParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowRunCommandParameters & WithServiceRoleArn(ServiceRoleArnT &&value)
MaintenanceWindowRunCommandParameters & WithParameters(ParametersT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
MaintenanceWindowRunCommandParameters & WithNotificationConfig(NotificationConfigT &&value)
MaintenanceWindowRunCommandParameters & WithCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
MaintenanceWindowRunCommandParameters & WithDocumentHashType(DocumentHashType value)
MaintenanceWindowRunCommandParameters & WithOutputS3BucketName(OutputS3BucketNameT &&value)
MaintenanceWindowRunCommandParameters & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
MaintenanceWindowRunCommandParameters & WithComment(CommentT &&value)
MaintenanceWindowRunCommandParameters & WithDocumentVersion(DocumentVersionT &&value)
MaintenanceWindowRunCommandParameters & WithTimeoutSeconds(int value)
MaintenanceWindowRunCommandParameters & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue