AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMaintenanceWindowTargetRequest.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/Target.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace 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_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetWindowId() const{ return m_windowId; }
44 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
45 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
46 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
47 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
48 inline UpdateMaintenanceWindowTargetRequest& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
49 inline UpdateMaintenanceWindowTargetRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
50 inline UpdateMaintenanceWindowTargetRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
52
54
57 inline const Aws::String& GetWindowTargetId() const{ return m_windowTargetId; }
58 inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; }
59 inline void SetWindowTargetId(const Aws::String& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = value; }
60 inline void SetWindowTargetId(Aws::String&& value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId = std::move(value); }
61 inline void SetWindowTargetId(const char* value) { m_windowTargetIdHasBeenSet = true; m_windowTargetId.assign(value); }
63 inline UpdateMaintenanceWindowTargetRequest& WithWindowTargetId(Aws::String&& value) { SetWindowTargetId(std::move(value)); return *this;}
64 inline UpdateMaintenanceWindowTargetRequest& WithWindowTargetId(const char* value) { SetWindowTargetId(value); return *this;}
66
68
71 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
72 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
73 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
74 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
76 inline UpdateMaintenanceWindowTargetRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
77 inline UpdateMaintenanceWindowTargetRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
78 inline UpdateMaintenanceWindowTargetRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
80
82
87 inline const Aws::String& GetOwnerInformation() const{ return m_ownerInformation; }
88 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
89 inline void SetOwnerInformation(const Aws::String& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = value; }
90 inline void SetOwnerInformation(Aws::String&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::move(value); }
91 inline void SetOwnerInformation(const char* value) { m_ownerInformationHasBeenSet = true; m_ownerInformation.assign(value); }
94 inline UpdateMaintenanceWindowTargetRequest& WithOwnerInformation(const char* value) { SetOwnerInformation(value); return *this;}
96
98
101 inline const Aws::String& GetName() const{ return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 inline UpdateMaintenanceWindowTargetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 inline UpdateMaintenanceWindowTargetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 inline UpdateMaintenanceWindowTargetRequest& WithName(const char* value) { SetName(value); return *this;}
110
112
115 inline const Aws::String& GetDescription() const{ return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
118 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
119 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121 inline UpdateMaintenanceWindowTargetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
122 inline UpdateMaintenanceWindowTargetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
124
126
131 inline bool GetReplace() const{ return m_replace; }
132 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
133 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
134 inline UpdateMaintenanceWindowTargetRequest& WithReplace(bool value) { SetReplace(value); return *this;}
136 private:
137
138 Aws::String m_windowId;
139 bool m_windowIdHasBeenSet = false;
140
141 Aws::String m_windowTargetId;
142 bool m_windowTargetIdHasBeenSet = false;
143
144 Aws::Vector<Target> m_targets;
145 bool m_targetsHasBeenSet = false;
146
147 Aws::String m_ownerInformation;
148 bool m_ownerInformationHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
156 bool m_replace;
157 bool m_replaceHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace SSM
162} // namespace Aws
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(const Aws::String &value)
UpdateMaintenanceWindowTargetRequest & WithName(Aws::String &&value)
UpdateMaintenanceWindowTargetRequest & WithName(const Aws::String &value)
UpdateMaintenanceWindowTargetRequest & WithReplace(bool value)
UpdateMaintenanceWindowTargetRequest & AddTargets(Target &&value)
UpdateMaintenanceWindowTargetRequest & WithTargets(Aws::Vector< Target > &&value)
UpdateMaintenanceWindowTargetRequest & WithDescription(const char *value)
UpdateMaintenanceWindowTargetRequest & WithTargets(const Aws::Vector< Target > &value)
UpdateMaintenanceWindowTargetRequest & WithName(const char *value)
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(Aws::String &&value)
UpdateMaintenanceWindowTargetRequest & WithWindowId(Aws::String &&value)
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(const Aws::String &value)
UpdateMaintenanceWindowTargetRequest & WithDescription(Aws::String &&value)
UpdateMaintenanceWindowTargetRequest & WithDescription(const Aws::String &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMaintenanceWindowTargetRequest & WithWindowId(const Aws::String &value)
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(Aws::String &&value)
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(const char *value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateMaintenanceWindowTargetRequest & WithWindowId(const char *value)
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(const char *value)
UpdateMaintenanceWindowTargetRequest & AddTargets(const Target &value)
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