AWS SDK for C++  1.8.71
AWS SDK for C++
RegisterTargetWithMaintenanceWindowRequest.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>
12 #include <aws/ssm/model/Target.h>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace SSM
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "RegisterTargetWithMaintenanceWindow"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetWindowId() const{ return m_windowId; }
45 
49  inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
50 
54  inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
55 
59  inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
60 
64  inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
65 
69  inline RegisterTargetWithMaintenanceWindowRequest& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
70 
74  inline RegisterTargetWithMaintenanceWindowRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
75 
79  inline RegisterTargetWithMaintenanceWindowRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
80 
81 
85  inline const MaintenanceWindowResourceType& GetResourceType() const{ return m_resourceType; }
86 
90  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 
95  inline void SetResourceType(const MaintenanceWindowResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
96 
100  inline void SetResourceType(MaintenanceWindowResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
101 
105  inline RegisterTargetWithMaintenanceWindowRequest& WithResourceType(const MaintenanceWindowResourceType& value) { SetResourceType(value); return *this;}
106 
110  inline RegisterTargetWithMaintenanceWindowRequest& WithResourceType(MaintenanceWindowResourceType&& value) { SetResourceType(std::move(value)); return *this;}
111 
112 
137  inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
138 
163  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
164 
189  inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
190 
215  inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
216 
241  inline RegisterTargetWithMaintenanceWindowRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
242 
267  inline RegisterTargetWithMaintenanceWindowRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
268 
293  inline RegisterTargetWithMaintenanceWindowRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
294 
319  inline RegisterTargetWithMaintenanceWindowRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
320 
321 
326  inline const Aws::String& GetOwnerInformation() const{ return m_ownerInformation; }
327 
332  inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
333 
338  inline void SetOwnerInformation(const Aws::String& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = value; }
339 
344  inline void SetOwnerInformation(Aws::String&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::move(value); }
345 
350  inline void SetOwnerInformation(const char* value) { m_ownerInformationHasBeenSet = true; m_ownerInformation.assign(value); }
351 
356  inline RegisterTargetWithMaintenanceWindowRequest& WithOwnerInformation(const Aws::String& value) { SetOwnerInformation(value); return *this;}
357 
362  inline RegisterTargetWithMaintenanceWindowRequest& WithOwnerInformation(Aws::String&& value) { SetOwnerInformation(std::move(value)); return *this;}
363 
368  inline RegisterTargetWithMaintenanceWindowRequest& WithOwnerInformation(const char* value) { SetOwnerInformation(value); return *this;}
369 
370 
374  inline const Aws::String& GetName() const{ return m_name; }
375 
379  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
380 
384  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
385 
389  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
390 
394  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
395 
399  inline RegisterTargetWithMaintenanceWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
400 
404  inline RegisterTargetWithMaintenanceWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
405 
409  inline RegisterTargetWithMaintenanceWindowRequest& WithName(const char* value) { SetName(value); return *this;}
410 
411 
415  inline const Aws::String& GetDescription() const{ return m_description; }
416 
420  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
421 
425  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
426 
430  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
431 
435  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
436 
440  inline RegisterTargetWithMaintenanceWindowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
441 
445  inline RegisterTargetWithMaintenanceWindowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
446 
450  inline RegisterTargetWithMaintenanceWindowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
451 
452 
456  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
457 
461  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
462 
466  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
467 
471  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
472 
476  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
477 
481  inline RegisterTargetWithMaintenanceWindowRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
482 
486  inline RegisterTargetWithMaintenanceWindowRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
487 
491  inline RegisterTargetWithMaintenanceWindowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
492 
493  private:
494 
495  Aws::String m_windowId;
496  bool m_windowIdHasBeenSet;
497 
498  MaintenanceWindowResourceType m_resourceType;
499  bool m_resourceTypeHasBeenSet;
500 
501  Aws::Vector<Target> m_targets;
502  bool m_targetsHasBeenSet;
503 
504  Aws::String m_ownerInformation;
505  bool m_ownerInformationHasBeenSet;
506 
507  Aws::String m_name;
508  bool m_nameHasBeenSet;
509 
510  Aws::String m_description;
511  bool m_descriptionHasBeenSet;
512 
513  Aws::String m_clientToken;
514  bool m_clientTokenHasBeenSet;
515  };
516 
517 } // namespace Model
518 } // namespace SSM
519 } // namespace Aws
RegisterTargetWithMaintenanceWindowRequest & WithOwnerInformation(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithClientToken(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & WithWindowId(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithOwnerInformation(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & WithName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RegisterTargetWithMaintenanceWindowRequest & WithClientToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
RegisterTargetWithMaintenanceWindowRequest & WithWindowId(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithOwnerInformation(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithName(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithWindowId(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & AddTargets(const Target &value)
RegisterTargetWithMaintenanceWindowRequest & WithName(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithDescription(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithDescription(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & WithResourceType(MaintenanceWindowResourceType &&value)
RegisterTargetWithMaintenanceWindowRequest & WithClientToken(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithTargets(const Aws::Vector< Target > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
RegisterTargetWithMaintenanceWindowRequest & WithDescription(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & AddTargets(Target &&value)
RegisterTargetWithMaintenanceWindowRequest & WithResourceType(const MaintenanceWindowResourceType &value)
RegisterTargetWithMaintenanceWindowRequest & WithTargets(Aws::Vector< Target > &&value)