AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterTargetWithMaintenanceWindowRequest.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/ssm/model/MaintenanceWindowResourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/Target.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace 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_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetWindowId() const{ return m_windowId; }
46 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
47 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
48 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
49 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
51 inline RegisterTargetWithMaintenanceWindowRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
52 inline RegisterTargetWithMaintenanceWindowRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
54
56
59 inline const MaintenanceWindowResourceType& GetResourceType() const{ return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 inline void SetResourceType(const MaintenanceWindowResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62 inline void SetResourceType(MaintenanceWindowResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66
68
96 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
97 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
98 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
99 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
102 inline RegisterTargetWithMaintenanceWindowRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
103 inline RegisterTargetWithMaintenanceWindowRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
105
107
112 inline const Aws::String& GetOwnerInformation() const{ return m_ownerInformation; }
113 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
114 inline void SetOwnerInformation(const Aws::String& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = value; }
115 inline void SetOwnerInformation(Aws::String&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::move(value); }
116 inline void SetOwnerInformation(const char* value) { m_ownerInformationHasBeenSet = true; m_ownerInformation.assign(value); }
121
123
126 inline const Aws::String& GetName() const{ return m_name; }
127 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
128 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
129 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
130 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
131 inline RegisterTargetWithMaintenanceWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
132 inline RegisterTargetWithMaintenanceWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
133 inline RegisterTargetWithMaintenanceWindowRequest& WithName(const char* value) { SetName(value); return *this;}
135
137
140 inline const Aws::String& GetDescription() const{ return m_description; }
141 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
142 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
143 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
144 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
147 inline RegisterTargetWithMaintenanceWindowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
149
151
154 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
155 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
156 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
157 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
158 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
161 inline RegisterTargetWithMaintenanceWindowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
163 private:
164
165 Aws::String m_windowId;
166 bool m_windowIdHasBeenSet = false;
167
168 MaintenanceWindowResourceType m_resourceType;
169 bool m_resourceTypeHasBeenSet = false;
170
171 Aws::Vector<Target> m_targets;
172 bool m_targetsHasBeenSet = false;
173
174 Aws::String m_ownerInformation;
175 bool m_ownerInformationHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_description;
181 bool m_descriptionHasBeenSet = false;
182
183 Aws::String m_clientToken;
184 bool m_clientTokenHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace SSM
189} // namespace Aws
RegisterTargetWithMaintenanceWindowRequest & AddTargets(const Target &value)
RegisterTargetWithMaintenanceWindowRequest & WithClientToken(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithTargets(const Aws::Vector< Target > &value)
AWS_SSM_API Aws::String SerializePayload() const override
RegisterTargetWithMaintenanceWindowRequest & WithWindowId(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithDescription(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithClientToken(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithOwnerInformation(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithName(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithClientToken(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & WithName(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & WithResourceType(const MaintenanceWindowResourceType &value)
RegisterTargetWithMaintenanceWindowRequest & WithWindowId(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & AddTargets(Target &&value)
RegisterTargetWithMaintenanceWindowRequest & WithOwnerInformation(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & WithDescription(Aws::String &&value)
RegisterTargetWithMaintenanceWindowRequest & WithOwnerInformation(const Aws::String &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterTargetWithMaintenanceWindowRequest & WithDescription(const Aws::String &value)
RegisterTargetWithMaintenanceWindowRequest & WithWindowId(const char *value)
RegisterTargetWithMaintenanceWindowRequest & WithTargets(Aws::Vector< Target > &&value)
RegisterTargetWithMaintenanceWindowRequest & WithResourceType(MaintenanceWindowResourceType &&value)
RegisterTargetWithMaintenanceWindowRequest & WithName(const char *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