AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MaintenanceWindowTarget.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/SSM_EXPORTS.h>
10#include <aws/ssm/model/MaintenanceWindowResourceType.h>
11#include <aws/ssm/model/Target.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
24
32 public:
33 AWS_SSM_API MaintenanceWindowTarget() = default;
37
39
42 inline const Aws::String& GetWindowId() const { return m_windowId; }
43 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
44 template <typename WindowIdT = Aws::String>
45 void SetWindowId(WindowIdT&& value) {
46 m_windowIdHasBeenSet = true;
47 m_windowId = std::forward<WindowIdT>(value);
48 }
49 template <typename WindowIdT = Aws::String>
51 SetWindowId(std::forward<WindowIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetWindowTargetId() const { return m_windowTargetId; }
61 inline bool WindowTargetIdHasBeenSet() const { return m_windowTargetIdHasBeenSet; }
62 template <typename WindowTargetIdT = Aws::String>
63 void SetWindowTargetId(WindowTargetIdT&& value) {
64 m_windowTargetIdHasBeenSet = true;
65 m_windowTargetId = std::forward<WindowTargetIdT>(value);
66 }
67 template <typename WindowTargetIdT = Aws::String>
68 MaintenanceWindowTarget& WithWindowTargetId(WindowTargetIdT&& value) {
69 SetWindowTargetId(std::forward<WindowTargetIdT>(value));
70 return *this;
71 }
73
75
78 inline MaintenanceWindowResourceType GetResourceType() const { return m_resourceType; }
79 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
81 m_resourceTypeHasBeenSet = true;
82 m_resourceType = value;
83 }
85 SetResourceType(value);
86 return *this;
87 }
89
91
98 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
99 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
100 template <typename TargetsT = Aws::Vector<Target>>
101 void SetTargets(TargetsT&& value) {
102 m_targetsHasBeenSet = true;
103 m_targets = std::forward<TargetsT>(value);
104 }
105 template <typename TargetsT = Aws::Vector<Target>>
107 SetTargets(std::forward<TargetsT>(value));
108 return *this;
109 }
110 template <typename TargetsT = Target>
112 m_targetsHasBeenSet = true;
113 m_targets.emplace_back(std::forward<TargetsT>(value));
114 return *this;
115 }
117
119
124 inline const Aws::String& GetOwnerInformation() const { return m_ownerInformation; }
125 inline bool OwnerInformationHasBeenSet() const { return m_ownerInformationHasBeenSet; }
126 template <typename OwnerInformationT = Aws::String>
127 void SetOwnerInformation(OwnerInformationT&& value) {
128 m_ownerInformationHasBeenSet = true;
129 m_ownerInformation = std::forward<OwnerInformationT>(value);
130 }
131 template <typename OwnerInformationT = Aws::String>
132 MaintenanceWindowTarget& WithOwnerInformation(OwnerInformationT&& value) {
133 SetOwnerInformation(std::forward<OwnerInformationT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetName() const { return m_name; }
143 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
144 template <typename NameT = Aws::String>
145 void SetName(NameT&& value) {
146 m_nameHasBeenSet = true;
147 m_name = std::forward<NameT>(value);
148 }
149 template <typename NameT = Aws::String>
151 SetName(std::forward<NameT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetDescription() const { return m_description; }
161 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
162 template <typename DescriptionT = Aws::String>
163 void SetDescription(DescriptionT&& value) {
164 m_descriptionHasBeenSet = true;
165 m_description = std::forward<DescriptionT>(value);
166 }
167 template <typename DescriptionT = Aws::String>
169 SetDescription(std::forward<DescriptionT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_windowId;
175
176 Aws::String m_windowTargetId;
177
179
180 Aws::Vector<Target> m_targets;
181
182 Aws::String m_ownerInformation;
183
184 Aws::String m_name;
185
186 Aws::String m_description;
187 bool m_windowIdHasBeenSet = false;
188 bool m_windowTargetIdHasBeenSet = false;
189 bool m_resourceTypeHasBeenSet = false;
190 bool m_targetsHasBeenSet = false;
191 bool m_ownerInformationHasBeenSet = false;
192 bool m_nameHasBeenSet = false;
193 bool m_descriptionHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace SSM
198} // namespace Aws
void SetOwnerInformation(OwnerInformationT &&value)
MaintenanceWindowTarget & WithTargets(TargetsT &&value)
MaintenanceWindowTarget & WithWindowId(WindowIdT &&value)
void SetWindowTargetId(WindowTargetIdT &&value)
const Aws::Vector< Target > & GetTargets() const
AWS_SSM_API MaintenanceWindowTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API MaintenanceWindowTarget()=default
AWS_SSM_API MaintenanceWindowTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowTarget & AddTargets(TargetsT &&value)
MaintenanceWindowResourceType GetResourceType() const
MaintenanceWindowTarget & WithWindowTargetId(WindowTargetIdT &&value)
MaintenanceWindowTarget & WithOwnerInformation(OwnerInformationT &&value)
MaintenanceWindowTarget & WithResourceType(MaintenanceWindowResourceType value)
MaintenanceWindowTarget & WithDescription(DescriptionT &&value)
MaintenanceWindowTarget & WithName(NameT &&value)
void SetResourceType(MaintenanceWindowResourceType value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue