AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateMaintenanceWindowTargetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/Target.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSM {
17namespace Model {
18
22 public:
23 AWS_SSM_API UpdateMaintenanceWindowTargetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceWindowTarget"; }
30
31 AWS_SSM_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetWindowId() const { return m_windowId; }
40 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
41 template <typename WindowIdT = Aws::String>
42 void SetWindowId(WindowIdT&& value) {
43 m_windowIdHasBeenSet = true;
44 m_windowId = std::forward<WindowIdT>(value);
45 }
46 template <typename WindowIdT = Aws::String>
48 SetWindowId(std::forward<WindowIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetWindowTargetId() const { return m_windowTargetId; }
58 inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; }
59 template <typename WindowTargetIdT = Aws::String>
60 void SetWindowTargetId(WindowTargetIdT&& value) {
61 m_windowTargetIdHasBeenSet = true;
62 m_windowTargetId = std::forward<WindowTargetIdT>(value);
63 }
64 template <typename WindowTargetIdT = Aws::String>
66 SetWindowTargetId(std::forward<WindowTargetIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
76 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
77 template <typename TargetsT = Aws::Vector<Target>>
78 void SetTargets(TargetsT&& value) {
79 m_targetsHasBeenSet = true;
80 m_targets = std::forward<TargetsT>(value);
81 }
82 template <typename TargetsT = Aws::Vector<Target>>
84 SetTargets(std::forward<TargetsT>(value));
85 return *this;
86 }
87 template <typename TargetsT = Target>
89 m_targetsHasBeenSet = true;
90 m_targets.emplace_back(std::forward<TargetsT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
102 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
103 template <typename OwnerInformationT = Aws::String>
104 void SetOwnerInformation(OwnerInformationT&& value) {
105 m_ownerInformationHasBeenSet = true;
106 m_ownerInformation = std::forward<OwnerInformationT>(value);
107 }
108 template <typename OwnerInformationT = Aws::String>
110 SetOwnerInformation(std::forward<OwnerInformationT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetName() const { return m_name; }
120 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
121 template <typename NameT = Aws::String>
122 void SetName(NameT&& value) {
123 m_nameHasBeenSet = true;
124 m_name = std::forward<NameT>(value);
125 }
126 template <typename NameT = Aws::String>
128 SetName(std::forward<NameT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetDescription() const { return m_description; }
138 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
139 template <typename DescriptionT = Aws::String>
140 void SetDescription(DescriptionT&& value) {
141 m_descriptionHasBeenSet = true;
142 m_description = std::forward<DescriptionT>(value);
143 }
144 template <typename DescriptionT = Aws::String>
146 SetDescription(std::forward<DescriptionT>(value));
147 return *this;
148 }
150
152
157 inline bool GetReplace() const { return m_replace; }
158 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
159 inline void SetReplace(bool value) {
160 m_replaceHasBeenSet = true;
161 m_replace = value;
162 }
164 SetReplace(value);
165 return *this;
166 }
168 private:
169 Aws::String m_windowId;
170
171 Aws::String m_windowTargetId;
172
173 Aws::Vector<Target> m_targets;
174
175 Aws::String m_ownerInformation;
176
177 Aws::String m_name;
178
179 Aws::String m_description;
180
181 bool m_replace{false};
182 bool m_windowIdHasBeenSet = false;
183 bool m_windowTargetIdHasBeenSet = false;
184 bool m_targetsHasBeenSet = false;
185 bool m_ownerInformationHasBeenSet = false;
186 bool m_nameHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188 bool m_replaceHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace SSM
193} // namespace Aws
UpdateMaintenanceWindowTargetRequest & WithOwnerInformation(OwnerInformationT &&value)
UpdateMaintenanceWindowTargetRequest & WithReplace(bool value)
UpdateMaintenanceWindowTargetRequest & WithWindowTargetId(WindowTargetIdT &&value)
UpdateMaintenanceWindowTargetRequest & AddTargets(TargetsT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMaintenanceWindowTargetRequest & WithTargets(TargetsT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateMaintenanceWindowTargetRequest & WithWindowId(WindowIdT &&value)
UpdateMaintenanceWindowTargetRequest & WithName(NameT &&value)
UpdateMaintenanceWindowTargetRequest & WithDescription(DescriptionT &&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