AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TargetLocation.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/AlarmConfiguration.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
33 public:
34 AWS_SSM_API TargetLocation() = default;
38
40
44 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
45 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
46 template <typename AccountsT = Aws::Vector<Aws::String>>
47 void SetAccounts(AccountsT&& value) {
48 m_accountsHasBeenSet = true;
49 m_accounts = std::forward<AccountsT>(value);
50 }
51 template <typename AccountsT = Aws::Vector<Aws::String>>
52 TargetLocation& WithAccounts(AccountsT&& value) {
53 SetAccounts(std::forward<AccountsT>(value));
54 return *this;
55 }
56 template <typename AccountsT = Aws::String>
57 TargetLocation& AddAccounts(AccountsT&& value) {
58 m_accountsHasBeenSet = true;
59 m_accounts.emplace_back(std::forward<AccountsT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
70 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
71 template <typename RegionsT = Aws::Vector<Aws::String>>
72 void SetRegions(RegionsT&& value) {
73 m_regionsHasBeenSet = true;
74 m_regions = std::forward<RegionsT>(value);
75 }
76 template <typename RegionsT = Aws::Vector<Aws::String>>
77 TargetLocation& WithRegions(RegionsT&& value) {
78 SetRegions(std::forward<RegionsT>(value));
79 return *this;
80 }
81 template <typename RegionsT = Aws::String>
82 TargetLocation& AddRegions(RegionsT&& value) {
83 m_regionsHasBeenSet = true;
84 m_regions.emplace_back(std::forward<RegionsT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetTargetLocationMaxConcurrency() const { return m_targetLocationMaxConcurrency; }
96 inline bool TargetLocationMaxConcurrencyHasBeenSet() const { return m_targetLocationMaxConcurrencyHasBeenSet; }
97 template <typename TargetLocationMaxConcurrencyT = Aws::String>
98 void SetTargetLocationMaxConcurrency(TargetLocationMaxConcurrencyT&& value) {
99 m_targetLocationMaxConcurrencyHasBeenSet = true;
100 m_targetLocationMaxConcurrency = std::forward<TargetLocationMaxConcurrencyT>(value);
101 }
102 template <typename TargetLocationMaxConcurrencyT = Aws::String>
103 TargetLocation& WithTargetLocationMaxConcurrency(TargetLocationMaxConcurrencyT&& value) {
104 SetTargetLocationMaxConcurrency(std::forward<TargetLocationMaxConcurrencyT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetTargetLocationMaxErrors() const { return m_targetLocationMaxErrors; }
116 inline bool TargetLocationMaxErrorsHasBeenSet() const { return m_targetLocationMaxErrorsHasBeenSet; }
117 template <typename TargetLocationMaxErrorsT = Aws::String>
118 void SetTargetLocationMaxErrors(TargetLocationMaxErrorsT&& value) {
119 m_targetLocationMaxErrorsHasBeenSet = true;
120 m_targetLocationMaxErrors = std::forward<TargetLocationMaxErrorsT>(value);
121 }
122 template <typename TargetLocationMaxErrorsT = Aws::String>
123 TargetLocation& WithTargetLocationMaxErrors(TargetLocationMaxErrorsT&& value) {
124 SetTargetLocationMaxErrors(std::forward<TargetLocationMaxErrorsT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
136 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
137 template <typename ExecutionRoleNameT = Aws::String>
138 void SetExecutionRoleName(ExecutionRoleNameT&& value) {
139 m_executionRoleNameHasBeenSet = true;
140 m_executionRoleName = std::forward<ExecutionRoleNameT>(value);
141 }
142 template <typename ExecutionRoleNameT = Aws::String>
143 TargetLocation& WithExecutionRoleName(ExecutionRoleNameT&& value) {
144 SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value));
145 return *this;
146 }
148
150
151 inline const AlarmConfiguration& GetTargetLocationAlarmConfiguration() const { return m_targetLocationAlarmConfiguration; }
152 inline bool TargetLocationAlarmConfigurationHasBeenSet() const { return m_targetLocationAlarmConfigurationHasBeenSet; }
153 template <typename TargetLocationAlarmConfigurationT = AlarmConfiguration>
154 void SetTargetLocationAlarmConfiguration(TargetLocationAlarmConfigurationT&& value) {
155 m_targetLocationAlarmConfigurationHasBeenSet = true;
156 m_targetLocationAlarmConfiguration = std::forward<TargetLocationAlarmConfigurationT>(value);
157 }
158 template <typename TargetLocationAlarmConfigurationT = AlarmConfiguration>
159 TargetLocation& WithTargetLocationAlarmConfiguration(TargetLocationAlarmConfigurationT&& value) {
160 SetTargetLocationAlarmConfiguration(std::forward<TargetLocationAlarmConfigurationT>(value));
161 return *this;
162 }
164
166
171 inline bool GetIncludeChildOrganizationUnits() const { return m_includeChildOrganizationUnits; }
172 inline bool IncludeChildOrganizationUnitsHasBeenSet() const { return m_includeChildOrganizationUnitsHasBeenSet; }
173 inline void SetIncludeChildOrganizationUnits(bool value) {
174 m_includeChildOrganizationUnitsHasBeenSet = true;
175 m_includeChildOrganizationUnits = value;
176 }
179 return *this;
180 }
182
184
188 inline const Aws::Vector<Aws::String>& GetExcludeAccounts() const { return m_excludeAccounts; }
189 inline bool ExcludeAccountsHasBeenSet() const { return m_excludeAccountsHasBeenSet; }
190 template <typename ExcludeAccountsT = Aws::Vector<Aws::String>>
191 void SetExcludeAccounts(ExcludeAccountsT&& value) {
192 m_excludeAccountsHasBeenSet = true;
193 m_excludeAccounts = std::forward<ExcludeAccountsT>(value);
194 }
195 template <typename ExcludeAccountsT = Aws::Vector<Aws::String>>
196 TargetLocation& WithExcludeAccounts(ExcludeAccountsT&& value) {
197 SetExcludeAccounts(std::forward<ExcludeAccountsT>(value));
198 return *this;
199 }
200 template <typename ExcludeAccountsT = Aws::String>
201 TargetLocation& AddExcludeAccounts(ExcludeAccountsT&& value) {
202 m_excludeAccountsHasBeenSet = true;
203 m_excludeAccounts.emplace_back(std::forward<ExcludeAccountsT>(value));
204 return *this;
205 }
207
209
216 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
217 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
218 template <typename TargetsT = Aws::Vector<Target>>
219 void SetTargets(TargetsT&& value) {
220 m_targetsHasBeenSet = true;
221 m_targets = std::forward<TargetsT>(value);
222 }
223 template <typename TargetsT = Aws::Vector<Target>>
224 TargetLocation& WithTargets(TargetsT&& value) {
225 SetTargets(std::forward<TargetsT>(value));
226 return *this;
227 }
228 template <typename TargetsT = Target>
229 TargetLocation& AddTargets(TargetsT&& value) {
230 m_targetsHasBeenSet = true;
231 m_targets.emplace_back(std::forward<TargetsT>(value));
232 return *this;
233 }
235
237
243 inline const Aws::String& GetTargetsMaxConcurrency() const { return m_targetsMaxConcurrency; }
244 inline bool TargetsMaxConcurrencyHasBeenSet() const { return m_targetsMaxConcurrencyHasBeenSet; }
245 template <typename TargetsMaxConcurrencyT = Aws::String>
246 void SetTargetsMaxConcurrency(TargetsMaxConcurrencyT&& value) {
247 m_targetsMaxConcurrencyHasBeenSet = true;
248 m_targetsMaxConcurrency = std::forward<TargetsMaxConcurrencyT>(value);
249 }
250 template <typename TargetsMaxConcurrencyT = Aws::String>
251 TargetLocation& WithTargetsMaxConcurrency(TargetsMaxConcurrencyT&& value) {
252 SetTargetsMaxConcurrency(std::forward<TargetsMaxConcurrencyT>(value));
253 return *this;
254 }
256
258
265 inline const Aws::String& GetTargetsMaxErrors() const { return m_targetsMaxErrors; }
266 inline bool TargetsMaxErrorsHasBeenSet() const { return m_targetsMaxErrorsHasBeenSet; }
267 template <typename TargetsMaxErrorsT = Aws::String>
268 void SetTargetsMaxErrors(TargetsMaxErrorsT&& value) {
269 m_targetsMaxErrorsHasBeenSet = true;
270 m_targetsMaxErrors = std::forward<TargetsMaxErrorsT>(value);
271 }
272 template <typename TargetsMaxErrorsT = Aws::String>
273 TargetLocation& WithTargetsMaxErrors(TargetsMaxErrorsT&& value) {
274 SetTargetsMaxErrors(std::forward<TargetsMaxErrorsT>(value));
275 return *this;
276 }
278 private:
279 Aws::Vector<Aws::String> m_accounts;
280
281 Aws::Vector<Aws::String> m_regions;
282
283 Aws::String m_targetLocationMaxConcurrency;
284
285 Aws::String m_targetLocationMaxErrors;
286
287 Aws::String m_executionRoleName;
288
289 AlarmConfiguration m_targetLocationAlarmConfiguration;
290
291 bool m_includeChildOrganizationUnits{false};
292
293 Aws::Vector<Aws::String> m_excludeAccounts;
294
295 Aws::Vector<Target> m_targets;
296
297 Aws::String m_targetsMaxConcurrency;
298
299 Aws::String m_targetsMaxErrors;
300 bool m_accountsHasBeenSet = false;
301 bool m_regionsHasBeenSet = false;
302 bool m_targetLocationMaxConcurrencyHasBeenSet = false;
303 bool m_targetLocationMaxErrorsHasBeenSet = false;
304 bool m_executionRoleNameHasBeenSet = false;
305 bool m_targetLocationAlarmConfigurationHasBeenSet = false;
306 bool m_includeChildOrganizationUnitsHasBeenSet = false;
307 bool m_excludeAccountsHasBeenSet = false;
308 bool m_targetsHasBeenSet = false;
309 bool m_targetsMaxConcurrencyHasBeenSet = false;
310 bool m_targetsMaxErrorsHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace SSM
315} // namespace Aws
const Aws::String & GetTargetsMaxErrors() const
TargetLocation & AddAccounts(AccountsT &&value)
const Aws::String & GetExecutionRoleName() const
TargetLocation & WithTargetsMaxConcurrency(TargetsMaxConcurrencyT &&value)
AWS_SSM_API TargetLocation()=default
AWS_SSM_API TargetLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionRoleName(ExecutionRoleNameT &&value)
TargetLocation & AddRegions(RegionsT &&value)
bool TargetLocationAlarmConfigurationHasBeenSet() const
TargetLocation & WithExcludeAccounts(ExcludeAccountsT &&value)
bool IncludeChildOrganizationUnitsHasBeenSet() const
const AlarmConfiguration & GetTargetLocationAlarmConfiguration() const
void SetAccounts(AccountsT &&value)
TargetLocation & WithTargets(TargetsT &&value)
void SetRegions(RegionsT &&value)
const Aws::String & GetTargetsMaxConcurrency() const
const Aws::String & GetTargetLocationMaxConcurrency() const
void SetTargetsMaxConcurrency(TargetsMaxConcurrencyT &&value)
TargetLocation & WithTargetLocationMaxConcurrency(TargetLocationMaxConcurrencyT &&value)
const Aws::Vector< Aws::String > & GetAccounts() const
TargetLocation & WithExecutionRoleName(ExecutionRoleNameT &&value)
void SetTargetLocationAlarmConfiguration(TargetLocationAlarmConfigurationT &&value)
TargetLocation & AddTargets(TargetsT &&value)
AWS_SSM_API TargetLocation(Aws::Utils::Json::JsonView jsonValue)
TargetLocation & WithTargetLocationMaxErrors(TargetLocationMaxErrorsT &&value)
TargetLocation & WithTargetsMaxErrors(TargetsMaxErrorsT &&value)
TargetLocation & WithAccounts(AccountsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
const Aws::String & GetTargetLocationMaxErrors() const
TargetLocation & WithIncludeChildOrganizationUnits(bool value)
void SetTargetLocationMaxErrors(TargetLocationMaxErrorsT &&value)
void SetIncludeChildOrganizationUnits(bool value)
const Aws::Vector< Target > & GetTargets() const
TargetLocation & WithRegions(RegionsT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExcludeAccounts(ExcludeAccountsT &&value)
const Aws::Vector< Aws::String > & GetExcludeAccounts() const
TargetLocation & WithTargetLocationAlarmConfiguration(TargetLocationAlarmConfigurationT &&value)
void SetTargetLocationMaxConcurrency(TargetLocationMaxConcurrencyT &&value)
void SetTargets(TargetsT &&value)
void SetTargetsMaxErrors(TargetsMaxErrorsT &&value)
bool TargetLocationMaxConcurrencyHasBeenSet() const
TargetLocation & AddExcludeAccounts(ExcludeAccountsT &&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