AWS SDK for C++  1.8.126
AWS SDK for C++
UpdateMaintenanceWindowTargetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
11 #include <aws/ssm/model/Target.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceWindowTarget"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetWindowId() const{ return m_windowId; }
43 
47  inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
48 
52  inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
53 
57  inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
58 
62  inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
63 
67  inline UpdateMaintenanceWindowTargetRequest& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
68 
72  inline UpdateMaintenanceWindowTargetRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
73 
77  inline UpdateMaintenanceWindowTargetRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
78 
79 
83  inline const Aws::String& GetWindowTargetId() const{ return m_windowTargetId; }
84 
88  inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; }
89 
93  inline void SetWindowTargetId(const Aws::String& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = value; }
94 
98  inline void SetWindowTargetId(Aws::String&& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = std::move(value); }
99 
103  inline void SetWindowTargetId(const char* value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId.assign(value); }
104 
108  inline UpdateMaintenanceWindowTargetRequest& WithWindowTargetId(const Aws::String& value) { SetWindowTargetId(value); return *this;}
109 
113  inline UpdateMaintenanceWindowTargetRequest& WithWindowTargetId(Aws::String&& value) { SetWindowTargetId(std::move(value)); return *this;}
114 
118  inline UpdateMaintenanceWindowTargetRequest& WithWindowTargetId(const char* value) { SetWindowTargetId(value); return *this;}
119 
120 
124  inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
125 
129  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
130 
134  inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
135 
139  inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
140 
144  inline UpdateMaintenanceWindowTargetRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
145 
149  inline UpdateMaintenanceWindowTargetRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
150 
154  inline UpdateMaintenanceWindowTargetRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
155 
159  inline UpdateMaintenanceWindowTargetRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
160 
161 
166  inline const Aws::String& GetOwnerInformation() const{ return m_ownerInformation; }
167 
172  inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
173 
178  inline void SetOwnerInformation(const Aws::String& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = value; }
179 
184  inline void SetOwnerInformation(Aws::String&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::move(value); }
185 
190  inline void SetOwnerInformation(const char* value) { m_ownerInformationHasBeenSet = true; m_ownerInformation.assign(value); }
191 
196  inline UpdateMaintenanceWindowTargetRequest& WithOwnerInformation(const Aws::String& value) { SetOwnerInformation(value); return *this;}
197 
202  inline UpdateMaintenanceWindowTargetRequest& WithOwnerInformation(Aws::String&& value) { SetOwnerInformation(std::move(value)); return *this;}
203 
208  inline UpdateMaintenanceWindowTargetRequest& WithOwnerInformation(const char* value) { SetOwnerInformation(value); return *this;}
209 
210 
214  inline const Aws::String& GetName() const{ return m_name; }
215 
219  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
220 
224  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
225 
229  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
230 
234  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
235 
239  inline UpdateMaintenanceWindowTargetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
240 
244  inline UpdateMaintenanceWindowTargetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
245 
249  inline UpdateMaintenanceWindowTargetRequest& WithName(const char* value) { SetName(value); return *this;}
250 
251 
255  inline const Aws::String& GetDescription() const{ return m_description; }
256 
260  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
261 
265  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
266 
270  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
271 
275  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
276 
280  inline UpdateMaintenanceWindowTargetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
281 
285  inline UpdateMaintenanceWindowTargetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
286 
290  inline UpdateMaintenanceWindowTargetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
291 
292 
298  inline bool GetReplace() const{ return m_replace; }
299 
305  inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
306 
312  inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
313 
319  inline UpdateMaintenanceWindowTargetRequest& WithReplace(bool value) { SetReplace(value); return *this;}
320 
321  private:
322 
323  Aws::String m_windowId;
324  bool m_windowIdHasBeenSet;
325 
326  Aws::String m_windowTargetId;
327  bool m_windowTargetIdHasBeenSet;
328 
329  Aws::Vector<Target> m_targets;
330  bool m_targetsHasBeenSet;
331 
332  Aws::String m_ownerInformation;
333  bool m_ownerInformationHasBeenSet;
334 
335  Aws::String m_name;
336  bool m_nameHasBeenSet;
337 
338  Aws::String m_description;
339  bool m_descriptionHasBeenSet;
340 
341  bool m_replace;
342  bool m_replaceHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace SSM
347 } // namespace Aws
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetName
const Aws::String & GetName() const
Definition: UpdateMaintenanceWindowTargetRequest.h:214
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetReplace
bool GetReplace() const
Definition: UpdateMaintenanceWindowTargetRequest.h:298
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateMaintenanceWindowTargetRequest.h:255
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::AddTargets
UpdateMaintenanceWindowTargetRequest & AddTargets(Target &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:159
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetWindowId
void SetWindowId(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:62
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::TargetsHasBeenSet
bool TargetsHasBeenSet() const
Definition: UpdateMaintenanceWindowTargetRequest.h:129
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetWindowId
void SetWindowId(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:57
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetWindowTargetId
void SetWindowTargetId(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:98
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithTargets
UpdateMaintenanceWindowTargetRequest & WithTargets(Aws::Vector< Target > &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:149
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithDescription
UpdateMaintenanceWindowTargetRequest & WithDescription(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:290
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::AddTargets
UpdateMaintenanceWindowTargetRequest & AddTargets(const Target &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:154
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetOwnerInformation
void SetOwnerInformation(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:190
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithWindowId
UpdateMaintenanceWindowTargetRequest & WithWindowId(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:67
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetWindowTargetId
const Aws::String & GetWindowTargetId() const
Definition: UpdateMaintenanceWindowTargetRequest.h:83
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetTargets
void SetTargets(Aws::Vector< Target > &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:139
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::OwnerInformationHasBeenSet
bool OwnerInformationHasBeenSet() const
Definition: UpdateMaintenanceWindowTargetRequest.h:172
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest
Definition: UpdateMaintenanceWindowTargetRequest.h:24
AWSVector.h
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithName
UpdateMaintenanceWindowTargetRequest & WithName(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:249
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithOwnerInformation
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:202
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetTargets
void SetTargets(const Aws::Vector< Target > &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:134
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetWindowTargetId
void SetWindowTargetId(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:93
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithWindowId
UpdateMaintenanceWindowTargetRequest & WithWindowId(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:77
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithWindowTargetId
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:108
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::ReplaceHasBeenSet
bool ReplaceHasBeenSet() const
Definition: UpdateMaintenanceWindowTargetRequest.h:305
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetOwnerInformation
void SetOwnerInformation(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:178
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithReplace
UpdateMaintenanceWindowTargetRequest & WithReplace(bool value)
Definition: UpdateMaintenanceWindowTargetRequest.h:319
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithWindowTargetId
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:118
Aws::SSM::Model::Target
Definition: Target.h:75
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithName
UpdateMaintenanceWindowTargetRequest & WithName(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:244
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WindowIdHasBeenSet
bool WindowIdHasBeenSet() const
Definition: UpdateMaintenanceWindowTargetRequest.h:47
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithTargets
UpdateMaintenanceWindowTargetRequest & WithTargets(const Aws::Vector< Target > &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:144
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetName
void SetName(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:234
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:265
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateMaintenanceWindowTargetRequest.h:260
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithOwnerInformation
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:208
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithDescription
UpdateMaintenanceWindowTargetRequest & WithDescription(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:280
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::UpdateMaintenanceWindowTargetRequest
UpdateMaintenanceWindowTargetRequest()
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:270
Target.h
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetOwnerInformation
const Aws::String & GetOwnerInformation() const
Definition: UpdateMaintenanceWindowTargetRequest.h:166
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithOwnerInformation
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:196
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetWindowTargetId
void SetWindowTargetId(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:103
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetWindowId
void SetWindowId(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:52
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetTargets
const Aws::Vector< Target > & GetTargets() const
Definition: UpdateMaintenanceWindowTargetRequest.h:124
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetOwnerInformation
void SetOwnerInformation(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithWindowTargetId
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:113
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithWindowId
UpdateMaintenanceWindowTargetRequest & WithWindowId(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:72
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WindowTargetIdHasBeenSet
bool WindowTargetIdHasBeenSet() const
Definition: UpdateMaintenanceWindowTargetRequest.h:88
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetReplace
void SetReplace(bool value)
Definition: UpdateMaintenanceWindowTargetRequest.h:312
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithName
UpdateMaintenanceWindowTargetRequest & WithName(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:239
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateMaintenanceWindowTargetRequest.h:275
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateMaintenanceWindowTargetRequest.h:32
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:229
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateMaintenanceWindowTargetRequest.h:224
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::WithDescription
UpdateMaintenanceWindowTargetRequest & WithDescription(Aws::String &&value)
Definition: UpdateMaintenanceWindowTargetRequest.h:285
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateMaintenanceWindowTargetRequest.h:219
SSMRequest.h
Aws::SSM::Model::UpdateMaintenanceWindowTargetRequest::GetWindowId
const Aws::String & GetWindowId() const
Definition: UpdateMaintenanceWindowTargetRequest.h:42