AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MaintenanceWindowRunCommandParameters.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/CloudWatchOutputConfig.h>
10#include <aws/ssm/model/DocumentHashType.h>
11#include <aws/ssm/model/NotificationConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SSM
27{
28namespace Model
29{
30
56 {
57 public:
62
63
65
68 inline const Aws::String& GetComment() const { return m_comment; }
69 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
70 template<typename CommentT = Aws::String>
71 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
72 template<typename CommentT = Aws::String>
73 MaintenanceWindowRunCommandParameters& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
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) { m_cloudWatchOutputConfigHasBeenSet = true; m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value); }
82 template<typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
83 MaintenanceWindowRunCommandParameters& WithCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) { SetCloudWatchOutputConfig(std::forward<CloudWatchOutputConfigT>(value)); return *this;}
85
87
91 inline const Aws::String& GetDocumentHash() const { return m_documentHash; }
92 inline bool DocumentHashHasBeenSet() const { return m_documentHashHasBeenSet; }
93 template<typename DocumentHashT = Aws::String>
94 void SetDocumentHash(DocumentHashT&& value) { m_documentHashHasBeenSet = true; m_documentHash = std::forward<DocumentHashT>(value); }
95 template<typename DocumentHashT = Aws::String>
96 MaintenanceWindowRunCommandParameters& WithDocumentHash(DocumentHashT&& value) { SetDocumentHash(std::forward<DocumentHashT>(value)); return *this;}
98
100
103 inline DocumentHashType GetDocumentHashType() const { return m_documentHashType; }
104 inline bool DocumentHashTypeHasBeenSet() const { return m_documentHashTypeHasBeenSet; }
105 inline void SetDocumentHashType(DocumentHashType value) { m_documentHashTypeHasBeenSet = true; m_documentHashType = value; }
108
110
120 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
121 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
122 template<typename DocumentVersionT = Aws::String>
123 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
124 template<typename DocumentVersionT = Aws::String>
125 MaintenanceWindowRunCommandParameters& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
127
129
133 inline const NotificationConfig& GetNotificationConfig() const { return m_notificationConfig; }
134 inline bool NotificationConfigHasBeenSet() const { return m_notificationConfigHasBeenSet; }
135 template<typename NotificationConfigT = NotificationConfig>
136 void SetNotificationConfig(NotificationConfigT&& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = std::forward<NotificationConfigT>(value); }
137 template<typename NotificationConfigT = NotificationConfig>
138 MaintenanceWindowRunCommandParameters& WithNotificationConfig(NotificationConfigT&& value) { SetNotificationConfig(std::forward<NotificationConfigT>(value)); return *this;}
140
142
145 inline const Aws::String& GetOutputS3BucketName() const { return m_outputS3BucketName; }
146 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
147 template<typename OutputS3BucketNameT = Aws::String>
148 void SetOutputS3BucketName(OutputS3BucketNameT&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value); }
149 template<typename OutputS3BucketNameT = Aws::String>
150 MaintenanceWindowRunCommandParameters& WithOutputS3BucketName(OutputS3BucketNameT&& value) { SetOutputS3BucketName(std::forward<OutputS3BucketNameT>(value)); return *this;}
152
154
157 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
158 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
159 template<typename OutputS3KeyPrefixT = Aws::String>
160 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value); }
161 template<typename OutputS3KeyPrefixT = Aws::String>
162 MaintenanceWindowRunCommandParameters& WithOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value)); return *this;}
164
166
169 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
170 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
171 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
172 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
173 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
174 MaintenanceWindowRunCommandParameters& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
175 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
176 MaintenanceWindowRunCommandParameters& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
177 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
178 }
180
182
197 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
198 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
199 template<typename ServiceRoleArnT = Aws::String>
200 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
201 template<typename ServiceRoleArnT = Aws::String>
202 MaintenanceWindowRunCommandParameters& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
204
206
210 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
211 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
212 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
215 private:
216
217 Aws::String m_comment;
218 bool m_commentHasBeenSet = false;
219
220 CloudWatchOutputConfig m_cloudWatchOutputConfig;
221 bool m_cloudWatchOutputConfigHasBeenSet = false;
222
223 Aws::String m_documentHash;
224 bool m_documentHashHasBeenSet = false;
225
227 bool m_documentHashTypeHasBeenSet = false;
228
229 Aws::String m_documentVersion;
230 bool m_documentVersionHasBeenSet = false;
231
232 NotificationConfig m_notificationConfig;
233 bool m_notificationConfigHasBeenSet = false;
234
235 Aws::String m_outputS3BucketName;
236 bool m_outputS3BucketNameHasBeenSet = false;
237
238 Aws::String m_outputS3KeyPrefix;
239 bool m_outputS3KeyPrefixHasBeenSet = false;
240
242 bool m_parametersHasBeenSet = false;
243
244 Aws::String m_serviceRoleArn;
245 bool m_serviceRoleArnHasBeenSet = false;
246
247 int m_timeoutSeconds{0};
248 bool m_timeoutSecondsHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace SSM
253} // 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