AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateMaintenanceWindowTargetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/Target.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SSM {
25namespace Model {
27 public:
28 AWS_SSM_API UpdateMaintenanceWindowTargetResult() = default;
31
33
36 inline const Aws::String& GetWindowId() const { return m_windowId; }
37 template <typename WindowIdT = Aws::String>
38 void SetWindowId(WindowIdT&& value) {
39 m_windowIdHasBeenSet = true;
40 m_windowId = std::forward<WindowIdT>(value);
41 }
42 template <typename WindowIdT = Aws::String>
44 SetWindowId(std::forward<WindowIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetWindowTargetId() const { return m_windowTargetId; }
54 template <typename WindowTargetIdT = Aws::String>
55 void SetWindowTargetId(WindowTargetIdT&& value) {
56 m_windowTargetIdHasBeenSet = true;
57 m_windowTargetId = std::forward<WindowTargetIdT>(value);
58 }
59 template <typename WindowTargetIdT = Aws::String>
61 SetWindowTargetId(std::forward<WindowTargetIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
71 template <typename TargetsT = Aws::Vector<Target>>
72 void SetTargets(TargetsT&& value) {
73 m_targetsHasBeenSet = true;
74 m_targets = std::forward<TargetsT>(value);
75 }
76 template <typename TargetsT = Aws::Vector<Target>>
78 SetTargets(std::forward<TargetsT>(value));
79 return *this;
80 }
81 template <typename TargetsT = Target>
83 m_targetsHasBeenSet = true;
84 m_targets.emplace_back(std::forward<TargetsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
94 template <typename OwnerInformationT = Aws::String>
95 void SetOwnerInformation(OwnerInformationT&& value) {
96 m_ownerInformationHasBeenSet = true;
97 m_ownerInformation = std::forward<OwnerInformationT>(value);
98 }
99 template <typename OwnerInformationT = Aws::String>
101 SetOwnerInformation(std::forward<OwnerInformationT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetName() const { return m_name; }
111 template <typename NameT = Aws::String>
112 void SetName(NameT&& value) {
113 m_nameHasBeenSet = true;
114 m_name = std::forward<NameT>(value);
115 }
116 template <typename NameT = Aws::String>
118 SetName(std::forward<NameT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDescription() const { return m_description; }
128 template <typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) {
130 m_descriptionHasBeenSet = true;
131 m_description = std::forward<DescriptionT>(value);
132 }
133 template <typename DescriptionT = Aws::String>
135 SetDescription(std::forward<DescriptionT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
155
156 private:
157 Aws::String m_windowId;
158
159 Aws::String m_windowTargetId;
160
161 Aws::Vector<Target> m_targets;
162
163 Aws::String m_ownerInformation;
164
165 Aws::String m_name;
166
167 Aws::String m_description;
168
169 Aws::String m_requestId;
170 Aws::Http::HttpResponseCode m_HttpResponseCode;
171 bool m_windowIdHasBeenSet = false;
172 bool m_windowTargetIdHasBeenSet = false;
173 bool m_targetsHasBeenSet = false;
174 bool m_ownerInformationHasBeenSet = false;
175 bool m_nameHasBeenSet = false;
176 bool m_descriptionHasBeenSet = false;
177 bool m_requestIdHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace SSM
182} // namespace Aws
UpdateMaintenanceWindowTargetResult & WithWindowId(WindowIdT &&value)
UpdateMaintenanceWindowTargetResult & WithWindowTargetId(WindowTargetIdT &&value)
UpdateMaintenanceWindowTargetResult & WithName(NameT &&value)
UpdateMaintenanceWindowTargetResult & WithTargets(TargetsT &&value)
UpdateMaintenanceWindowTargetResult & AddTargets(TargetsT &&value)
UpdateMaintenanceWindowTargetResult & WithOwnerInformation(OwnerInformationT &&value)
AWS_SSM_API UpdateMaintenanceWindowTargetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMaintenanceWindowTargetResult & WithRequestId(RequestIdT &&value)
AWS_SSM_API UpdateMaintenanceWindowTargetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMaintenanceWindowTargetResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue