AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 template<typename WindowIdT = Aws::String>
48 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
49 template<typename WindowIdT = Aws::String>
50 RegisterTargetWithMaintenanceWindowRequest& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
52
54
57 inline MaintenanceWindowResourceType GetResourceType() const { return m_resourceType; }
58 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
59 inline void SetResourceType(MaintenanceWindowResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62
64
92 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
93 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
94 template<typename TargetsT = Aws::Vector<Target>>
95 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
96 template<typename TargetsT = Aws::Vector<Target>>
97 RegisterTargetWithMaintenanceWindowRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
98 template<typename TargetsT = Target>
99 RegisterTargetWithMaintenanceWindowRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
101
103
108 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
109 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
110 template<typename OwnerInformationT = Aws::String>
111 void SetOwnerInformation(OwnerInformationT&& value) { m_ownerInformationHasBeenSet = true; m_ownerInformation = std::forward<OwnerInformationT>(value); }
112 template<typename OwnerInformationT = Aws::String>
113 RegisterTargetWithMaintenanceWindowRequest& WithOwnerInformation(OwnerInformationT&& value) { SetOwnerInformation(std::forward<OwnerInformationT>(value)); return *this;}
115
117
120 inline const Aws::String& GetName() const { return m_name; }
121 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
122 template<typename NameT = Aws::String>
123 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
124 template<typename NameT = Aws::String>
125 RegisterTargetWithMaintenanceWindowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 template<typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
136 template<typename DescriptionT = Aws::String>
137 RegisterTargetWithMaintenanceWindowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
139
141
144 inline const Aws::String& GetClientToken() const { return m_clientToken; }
145 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
146 template<typename ClientTokenT = Aws::String>
147 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
148 template<typename ClientTokenT = Aws::String>
149 RegisterTargetWithMaintenanceWindowRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
151 private:
152
153 Aws::String m_windowId;
154 bool m_windowIdHasBeenSet = false;
155
157 bool m_resourceTypeHasBeenSet = false;
158
159 Aws::Vector<Target> m_targets;
160 bool m_targetsHasBeenSet = false;
161
162 Aws::String m_ownerInformation;
163 bool m_ownerInformationHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
172 bool m_clientTokenHasBeenSet = true;
173 };
174
175} // namespace Model
176} // namespace SSM
177} // namespace Aws
RegisterTargetWithMaintenanceWindowRequest & WithWindowId(WindowIdT &&value)
RegisterTargetWithMaintenanceWindowRequest & WithDescription(DescriptionT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
RegisterTargetWithMaintenanceWindowRequest & WithClientToken(ClientTokenT &&value)
RegisterTargetWithMaintenanceWindowRequest & WithName(NameT &&value)
RegisterTargetWithMaintenanceWindowRequest & AddTargets(TargetsT &&value)
RegisterTargetWithMaintenanceWindowRequest & WithTargets(TargetsT &&value)
RegisterTargetWithMaintenanceWindowRequest & WithResourceType(MaintenanceWindowResourceType value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterTargetWithMaintenanceWindowRequest & WithOwnerInformation(OwnerInformationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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