AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TargetLocation.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/AlarmConfiguration.h>
11#include <aws/ssm/model/Target.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SSM_API TargetLocation() = default;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
51 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
52 template<typename AccountsT = Aws::Vector<Aws::String>>
53 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
54 template<typename AccountsT = Aws::Vector<Aws::String>>
55 TargetLocation& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
56 template<typename AccountsT = Aws::String>
57 TargetLocation& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
59
61
65 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
66 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
67 template<typename RegionsT = Aws::Vector<Aws::String>>
68 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
69 template<typename RegionsT = Aws::Vector<Aws::String>>
70 TargetLocation& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
71 template<typename RegionsT = Aws::String>
72 TargetLocation& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
74
76
80 inline const Aws::String& GetTargetLocationMaxConcurrency() const { return m_targetLocationMaxConcurrency; }
81 inline bool TargetLocationMaxConcurrencyHasBeenSet() const { return m_targetLocationMaxConcurrencyHasBeenSet; }
82 template<typename TargetLocationMaxConcurrencyT = Aws::String>
83 void SetTargetLocationMaxConcurrency(TargetLocationMaxConcurrencyT&& value) { m_targetLocationMaxConcurrencyHasBeenSet = true; m_targetLocationMaxConcurrency = std::forward<TargetLocationMaxConcurrencyT>(value); }
84 template<typename TargetLocationMaxConcurrencyT = Aws::String>
85 TargetLocation& WithTargetLocationMaxConcurrency(TargetLocationMaxConcurrencyT&& value) { SetTargetLocationMaxConcurrency(std::forward<TargetLocationMaxConcurrencyT>(value)); return *this;}
87
89
93 inline const Aws::String& GetTargetLocationMaxErrors() const { return m_targetLocationMaxErrors; }
94 inline bool TargetLocationMaxErrorsHasBeenSet() const { return m_targetLocationMaxErrorsHasBeenSet; }
95 template<typename TargetLocationMaxErrorsT = Aws::String>
96 void SetTargetLocationMaxErrors(TargetLocationMaxErrorsT&& value) { m_targetLocationMaxErrorsHasBeenSet = true; m_targetLocationMaxErrors = std::forward<TargetLocationMaxErrorsT>(value); }
97 template<typename TargetLocationMaxErrorsT = Aws::String>
98 TargetLocation& WithTargetLocationMaxErrors(TargetLocationMaxErrorsT&& value) { SetTargetLocationMaxErrors(std::forward<TargetLocationMaxErrorsT>(value)); return *this;}
100
102
107 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
108 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
109 template<typename ExecutionRoleNameT = Aws::String>
110 void SetExecutionRoleName(ExecutionRoleNameT&& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = std::forward<ExecutionRoleNameT>(value); }
111 template<typename ExecutionRoleNameT = Aws::String>
112 TargetLocation& WithExecutionRoleName(ExecutionRoleNameT&& value) { SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value)); return *this;}
114
116
117 inline const AlarmConfiguration& GetTargetLocationAlarmConfiguration() const { return m_targetLocationAlarmConfiguration; }
118 inline bool TargetLocationAlarmConfigurationHasBeenSet() const { return m_targetLocationAlarmConfigurationHasBeenSet; }
119 template<typename TargetLocationAlarmConfigurationT = AlarmConfiguration>
120 void SetTargetLocationAlarmConfiguration(TargetLocationAlarmConfigurationT&& value) { m_targetLocationAlarmConfigurationHasBeenSet = true; m_targetLocationAlarmConfiguration = std::forward<TargetLocationAlarmConfigurationT>(value); }
121 template<typename TargetLocationAlarmConfigurationT = AlarmConfiguration>
122 TargetLocation& WithTargetLocationAlarmConfiguration(TargetLocationAlarmConfigurationT&& value) { SetTargetLocationAlarmConfiguration(std::forward<TargetLocationAlarmConfigurationT>(value)); return *this;}
124
126
130 inline bool GetIncludeChildOrganizationUnits() const { return m_includeChildOrganizationUnits; }
131 inline bool IncludeChildOrganizationUnitsHasBeenSet() const { return m_includeChildOrganizationUnitsHasBeenSet; }
132 inline void SetIncludeChildOrganizationUnits(bool value) { m_includeChildOrganizationUnitsHasBeenSet = true; m_includeChildOrganizationUnits = value; }
135
137
141 inline const Aws::Vector<Aws::String>& GetExcludeAccounts() const { return m_excludeAccounts; }
142 inline bool ExcludeAccountsHasBeenSet() const { return m_excludeAccountsHasBeenSet; }
143 template<typename ExcludeAccountsT = Aws::Vector<Aws::String>>
144 void SetExcludeAccounts(ExcludeAccountsT&& value) { m_excludeAccountsHasBeenSet = true; m_excludeAccounts = std::forward<ExcludeAccountsT>(value); }
145 template<typename ExcludeAccountsT = Aws::Vector<Aws::String>>
146 TargetLocation& WithExcludeAccounts(ExcludeAccountsT&& value) { SetExcludeAccounts(std::forward<ExcludeAccountsT>(value)); return *this;}
147 template<typename ExcludeAccountsT = Aws::String>
148 TargetLocation& AddExcludeAccounts(ExcludeAccountsT&& value) { m_excludeAccountsHasBeenSet = true; m_excludeAccounts.emplace_back(std::forward<ExcludeAccountsT>(value)); return *this; }
150
152
159 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
160 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
161 template<typename TargetsT = Aws::Vector<Target>>
162 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
163 template<typename TargetsT = Aws::Vector<Target>>
164 TargetLocation& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
165 template<typename TargetsT = Target>
166 TargetLocation& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
168
170
176 inline const Aws::String& GetTargetsMaxConcurrency() const { return m_targetsMaxConcurrency; }
177 inline bool TargetsMaxConcurrencyHasBeenSet() const { return m_targetsMaxConcurrencyHasBeenSet; }
178 template<typename TargetsMaxConcurrencyT = Aws::String>
179 void SetTargetsMaxConcurrency(TargetsMaxConcurrencyT&& value) { m_targetsMaxConcurrencyHasBeenSet = true; m_targetsMaxConcurrency = std::forward<TargetsMaxConcurrencyT>(value); }
180 template<typename TargetsMaxConcurrencyT = Aws::String>
181 TargetLocation& WithTargetsMaxConcurrency(TargetsMaxConcurrencyT&& value) { SetTargetsMaxConcurrency(std::forward<TargetsMaxConcurrencyT>(value)); return *this;}
183
185
192 inline const Aws::String& GetTargetsMaxErrors() const { return m_targetsMaxErrors; }
193 inline bool TargetsMaxErrorsHasBeenSet() const { return m_targetsMaxErrorsHasBeenSet; }
194 template<typename TargetsMaxErrorsT = Aws::String>
195 void SetTargetsMaxErrors(TargetsMaxErrorsT&& value) { m_targetsMaxErrorsHasBeenSet = true; m_targetsMaxErrors = std::forward<TargetsMaxErrorsT>(value); }
196 template<typename TargetsMaxErrorsT = Aws::String>
197 TargetLocation& WithTargetsMaxErrors(TargetsMaxErrorsT&& value) { SetTargetsMaxErrors(std::forward<TargetsMaxErrorsT>(value)); return *this;}
199 private:
200
201 Aws::Vector<Aws::String> m_accounts;
202 bool m_accountsHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_regions;
205 bool m_regionsHasBeenSet = false;
206
207 Aws::String m_targetLocationMaxConcurrency;
208 bool m_targetLocationMaxConcurrencyHasBeenSet = false;
209
210 Aws::String m_targetLocationMaxErrors;
211 bool m_targetLocationMaxErrorsHasBeenSet = false;
212
213 Aws::String m_executionRoleName;
214 bool m_executionRoleNameHasBeenSet = false;
215
216 AlarmConfiguration m_targetLocationAlarmConfiguration;
217 bool m_targetLocationAlarmConfigurationHasBeenSet = false;
218
219 bool m_includeChildOrganizationUnits{false};
220 bool m_includeChildOrganizationUnitsHasBeenSet = false;
221
222 Aws::Vector<Aws::String> m_excludeAccounts;
223 bool m_excludeAccountsHasBeenSet = false;
224
225 Aws::Vector<Target> m_targets;
226 bool m_targetsHasBeenSet = false;
227
228 Aws::String m_targetsMaxConcurrency;
229 bool m_targetsMaxConcurrencyHasBeenSet = false;
230
231 Aws::String m_targetsMaxErrors;
232 bool m_targetsMaxErrorsHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace SSM
237} // 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
bool TargetLocationMaxErrorsHasBeenSet() 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