AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
43
44
46
50 inline const Aws::Vector<Aws::String>& GetAccounts() const{ return m_accounts; }
51 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
52 inline void SetAccounts(const Aws::Vector<Aws::String>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
53 inline void SetAccounts(Aws::Vector<Aws::String>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
54 inline TargetLocation& WithAccounts(const Aws::Vector<Aws::String>& value) { SetAccounts(value); return *this;}
55 inline TargetLocation& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
56 inline TargetLocation& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
57 inline TargetLocation& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
58 inline TargetLocation& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
60
62
66 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
67 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
68 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
69 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
70 inline TargetLocation& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
71 inline TargetLocation& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
72 inline TargetLocation& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
73 inline TargetLocation& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
74 inline TargetLocation& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
76
78
82 inline const Aws::String& GetTargetLocationMaxConcurrency() const{ return m_targetLocationMaxConcurrency; }
83 inline bool TargetLocationMaxConcurrencyHasBeenSet() const { return m_targetLocationMaxConcurrencyHasBeenSet; }
84 inline void SetTargetLocationMaxConcurrency(const Aws::String& value) { m_targetLocationMaxConcurrencyHasBeenSet = true; m_targetLocationMaxConcurrency = value; }
85 inline void SetTargetLocationMaxConcurrency(Aws::String&& value) { m_targetLocationMaxConcurrencyHasBeenSet = true; m_targetLocationMaxConcurrency = std::move(value); }
86 inline void SetTargetLocationMaxConcurrency(const char* value) { m_targetLocationMaxConcurrencyHasBeenSet = true; m_targetLocationMaxConcurrency.assign(value); }
89 inline TargetLocation& WithTargetLocationMaxConcurrency(const char* value) { SetTargetLocationMaxConcurrency(value); return *this;}
91
93
97 inline const Aws::String& GetTargetLocationMaxErrors() const{ return m_targetLocationMaxErrors; }
98 inline bool TargetLocationMaxErrorsHasBeenSet() const { return m_targetLocationMaxErrorsHasBeenSet; }
99 inline void SetTargetLocationMaxErrors(const Aws::String& value) { m_targetLocationMaxErrorsHasBeenSet = true; m_targetLocationMaxErrors = value; }
100 inline void SetTargetLocationMaxErrors(Aws::String&& value) { m_targetLocationMaxErrorsHasBeenSet = true; m_targetLocationMaxErrors = std::move(value); }
101 inline void SetTargetLocationMaxErrors(const char* value) { m_targetLocationMaxErrorsHasBeenSet = true; m_targetLocationMaxErrors.assign(value); }
103 inline TargetLocation& WithTargetLocationMaxErrors(Aws::String&& value) { SetTargetLocationMaxErrors(std::move(value)); return *this;}
104 inline TargetLocation& WithTargetLocationMaxErrors(const char* value) { SetTargetLocationMaxErrors(value); return *this;}
106
108
113 inline const Aws::String& GetExecutionRoleName() const{ return m_executionRoleName; }
114 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
115 inline void SetExecutionRoleName(const Aws::String& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = value; }
116 inline void SetExecutionRoleName(Aws::String&& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = std::move(value); }
117 inline void SetExecutionRoleName(const char* value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName.assign(value); }
118 inline TargetLocation& WithExecutionRoleName(const Aws::String& value) { SetExecutionRoleName(value); return *this;}
119 inline TargetLocation& WithExecutionRoleName(Aws::String&& value) { SetExecutionRoleName(std::move(value)); return *this;}
120 inline TargetLocation& WithExecutionRoleName(const char* value) { SetExecutionRoleName(value); return *this;}
122
124
125 inline const AlarmConfiguration& GetTargetLocationAlarmConfiguration() const{ return m_targetLocationAlarmConfiguration; }
126 inline bool TargetLocationAlarmConfigurationHasBeenSet() const { return m_targetLocationAlarmConfigurationHasBeenSet; }
127 inline void SetTargetLocationAlarmConfiguration(const AlarmConfiguration& value) { m_targetLocationAlarmConfigurationHasBeenSet = true; m_targetLocationAlarmConfiguration = value; }
128 inline void SetTargetLocationAlarmConfiguration(AlarmConfiguration&& value) { m_targetLocationAlarmConfigurationHasBeenSet = true; m_targetLocationAlarmConfiguration = std::move(value); }
132
134
138 inline bool GetIncludeChildOrganizationUnits() const{ return m_includeChildOrganizationUnits; }
139 inline bool IncludeChildOrganizationUnitsHasBeenSet() const { return m_includeChildOrganizationUnitsHasBeenSet; }
140 inline void SetIncludeChildOrganizationUnits(bool value) { m_includeChildOrganizationUnitsHasBeenSet = true; m_includeChildOrganizationUnits = value; }
143
145
149 inline const Aws::Vector<Aws::String>& GetExcludeAccounts() const{ return m_excludeAccounts; }
150 inline bool ExcludeAccountsHasBeenSet() const { return m_excludeAccountsHasBeenSet; }
151 inline void SetExcludeAccounts(const Aws::Vector<Aws::String>& value) { m_excludeAccountsHasBeenSet = true; m_excludeAccounts = value; }
152 inline void SetExcludeAccounts(Aws::Vector<Aws::String>&& value) { m_excludeAccountsHasBeenSet = true; m_excludeAccounts = std::move(value); }
154 inline TargetLocation& WithExcludeAccounts(Aws::Vector<Aws::String>&& value) { SetExcludeAccounts(std::move(value)); return *this;}
155 inline TargetLocation& AddExcludeAccounts(const Aws::String& value) { m_excludeAccountsHasBeenSet = true; m_excludeAccounts.push_back(value); return *this; }
156 inline TargetLocation& AddExcludeAccounts(Aws::String&& value) { m_excludeAccountsHasBeenSet = true; m_excludeAccounts.push_back(std::move(value)); return *this; }
157 inline TargetLocation& AddExcludeAccounts(const char* value) { m_excludeAccountsHasBeenSet = true; m_excludeAccounts.push_back(value); return *this; }
159
161
168 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
169 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
170 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
171 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
172 inline TargetLocation& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
173 inline TargetLocation& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
174 inline TargetLocation& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
175 inline TargetLocation& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
177
179
185 inline const Aws::String& GetTargetsMaxConcurrency() const{ return m_targetsMaxConcurrency; }
186 inline bool TargetsMaxConcurrencyHasBeenSet() const { return m_targetsMaxConcurrencyHasBeenSet; }
187 inline void SetTargetsMaxConcurrency(const Aws::String& value) { m_targetsMaxConcurrencyHasBeenSet = true; m_targetsMaxConcurrency = value; }
188 inline void SetTargetsMaxConcurrency(Aws::String&& value) { m_targetsMaxConcurrencyHasBeenSet = true; m_targetsMaxConcurrency = std::move(value); }
189 inline void SetTargetsMaxConcurrency(const char* value) { m_targetsMaxConcurrencyHasBeenSet = true; m_targetsMaxConcurrency.assign(value); }
191 inline TargetLocation& WithTargetsMaxConcurrency(Aws::String&& value) { SetTargetsMaxConcurrency(std::move(value)); return *this;}
192 inline TargetLocation& WithTargetsMaxConcurrency(const char* value) { SetTargetsMaxConcurrency(value); return *this;}
194
196
203 inline const Aws::String& GetTargetsMaxErrors() const{ return m_targetsMaxErrors; }
204 inline bool TargetsMaxErrorsHasBeenSet() const { return m_targetsMaxErrorsHasBeenSet; }
205 inline void SetTargetsMaxErrors(const Aws::String& value) { m_targetsMaxErrorsHasBeenSet = true; m_targetsMaxErrors = value; }
206 inline void SetTargetsMaxErrors(Aws::String&& value) { m_targetsMaxErrorsHasBeenSet = true; m_targetsMaxErrors = std::move(value); }
207 inline void SetTargetsMaxErrors(const char* value) { m_targetsMaxErrorsHasBeenSet = true; m_targetsMaxErrors.assign(value); }
208 inline TargetLocation& WithTargetsMaxErrors(const Aws::String& value) { SetTargetsMaxErrors(value); return *this;}
209 inline TargetLocation& WithTargetsMaxErrors(Aws::String&& value) { SetTargetsMaxErrors(std::move(value)); return *this;}
210 inline TargetLocation& WithTargetsMaxErrors(const char* value) { SetTargetsMaxErrors(value); return *this;}
212 private:
213
214 Aws::Vector<Aws::String> m_accounts;
215 bool m_accountsHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_regions;
218 bool m_regionsHasBeenSet = false;
219
220 Aws::String m_targetLocationMaxConcurrency;
221 bool m_targetLocationMaxConcurrencyHasBeenSet = false;
222
223 Aws::String m_targetLocationMaxErrors;
224 bool m_targetLocationMaxErrorsHasBeenSet = false;
225
226 Aws::String m_executionRoleName;
227 bool m_executionRoleNameHasBeenSet = false;
228
229 AlarmConfiguration m_targetLocationAlarmConfiguration;
230 bool m_targetLocationAlarmConfigurationHasBeenSet = false;
231
232 bool m_includeChildOrganizationUnits;
233 bool m_includeChildOrganizationUnitsHasBeenSet = false;
234
235 Aws::Vector<Aws::String> m_excludeAccounts;
236 bool m_excludeAccountsHasBeenSet = false;
237
238 Aws::Vector<Target> m_targets;
239 bool m_targetsHasBeenSet = false;
240
241 Aws::String m_targetsMaxConcurrency;
242 bool m_targetsMaxConcurrencyHasBeenSet = false;
243
244 Aws::String m_targetsMaxErrors;
245 bool m_targetsMaxErrorsHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace SSM
250} // namespace Aws
const Aws::String & GetTargetsMaxErrors() const
void SetTargetsMaxConcurrency(const char *value)
void SetRegions(Aws::Vector< Aws::String > &&value)
void SetTargetLocationMaxErrors(const Aws::String &value)
const Aws::String & GetExecutionRoleName() const
TargetLocation & WithRegions(const Aws::Vector< Aws::String > &value)
void SetTargetLocationMaxConcurrency(const char *value)
AWS_SSM_API TargetLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TargetLocationAlarmConfigurationHasBeenSet() const
TargetLocation & AddRegions(const char *value)
TargetLocation & AddRegions(Aws::String &&value)
bool IncludeChildOrganizationUnitsHasBeenSet() const
TargetLocation & WithTargetsMaxErrors(const char *value)
const AlarmConfiguration & GetTargetLocationAlarmConfiguration() const
TargetLocation & AddTargets(Target &&value)
void SetTargetsMaxErrors(Aws::String &&value)
void SetExecutionRoleName(const char *value)
const Aws::String & GetTargetsMaxConcurrency() const
TargetLocation & AddAccounts(const Aws::String &value)
TargetLocation & WithExecutionRoleName(Aws::String &&value)
TargetLocation & WithRegions(Aws::Vector< Aws::String > &&value)
void SetTargetLocationAlarmConfiguration(AlarmConfiguration &&value)
void SetExcludeAccounts(const Aws::Vector< Aws::String > &value)
const Aws::String & GetTargetLocationMaxConcurrency() const
void SetTargetLocationMaxConcurrency(Aws::String &&value)
TargetLocation & WithTargetLocationMaxErrors(const char *value)
TargetLocation & WithTargetLocationMaxErrors(Aws::String &&value)
TargetLocation & WithAccounts(Aws::Vector< Aws::String > &&value)
void SetAccounts(Aws::Vector< Aws::String > &&value)
void SetExecutionRoleName(const Aws::String &value)
TargetLocation & WithAccounts(const Aws::Vector< Aws::String > &value)
TargetLocation & WithTargetsMaxConcurrency(const char *value)
void SetExcludeAccounts(Aws::Vector< Aws::String > &&value)
TargetLocation & WithTargetLocationAlarmConfiguration(AlarmConfiguration &&value)
TargetLocation & WithTargetsMaxErrors(Aws::String &&value)
void SetTargets(const Aws::Vector< Target > &value)
void SetTargetsMaxErrors(const char *value)
void SetTargets(Aws::Vector< Target > &&value)
const Aws::Vector< Aws::String > & GetAccounts() const
void SetTargetLocationMaxErrors(const char *value)
void SetTargetsMaxErrors(const Aws::String &value)
void SetTargetLocationMaxConcurrency(const Aws::String &value)
void SetTargetLocationMaxErrors(Aws::String &&value)
void SetTargetsMaxConcurrency(Aws::String &&value)
TargetLocation & AddExcludeAccounts(const char *value)
TargetLocation & WithExecutionRoleName(const char *value)
TargetLocation & WithTargetLocationMaxConcurrency(Aws::String &&value)
TargetLocation & WithTargetsMaxErrors(const Aws::String &value)
TargetLocation & WithTargets(const Aws::Vector< Target > &value)
void SetRegions(const Aws::Vector< Aws::String > &value)
AWS_SSM_API TargetLocation(Aws::Utils::Json::JsonView jsonValue)
void SetAccounts(const Aws::Vector< Aws::String > &value)
void SetTargetsMaxConcurrency(const Aws::String &value)
void SetTargetLocationAlarmConfiguration(const AlarmConfiguration &value)
const Aws::Vector< Aws::String > & GetRegions() const
const Aws::String & GetTargetLocationMaxErrors() const
void SetExecutionRoleName(Aws::String &&value)
TargetLocation & WithTargetLocationMaxConcurrency(const char *value)
TargetLocation & WithExcludeAccounts(const Aws::Vector< Aws::String > &value)
TargetLocation & WithTargets(Aws::Vector< Target > &&value)
TargetLocation & WithTargetLocationMaxErrors(const Aws::String &value)
TargetLocation & WithTargetsMaxConcurrency(const Aws::String &value)
TargetLocation & AddAccounts(const char *value)
TargetLocation & WithIncludeChildOrganizationUnits(bool value)
TargetLocation & WithExcludeAccounts(Aws::Vector< Aws::String > &&value)
void SetIncludeChildOrganizationUnits(bool value)
const Aws::Vector< Target > & GetTargets() const
TargetLocation & AddAccounts(Aws::String &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
TargetLocation & AddTargets(const Target &value)
const Aws::Vector< Aws::String > & GetExcludeAccounts() const
bool TargetLocationMaxErrorsHasBeenSet() const
TargetLocation & WithTargetLocationAlarmConfiguration(const AlarmConfiguration &value)
TargetLocation & WithExecutionRoleName(const Aws::String &value)
TargetLocation & AddExcludeAccounts(Aws::String &&value)
TargetLocation & WithTargetLocationMaxConcurrency(const Aws::String &value)
TargetLocation & AddExcludeAccounts(const Aws::String &value)
TargetLocation & WithTargetsMaxConcurrency(Aws::String &&value)
bool TargetLocationMaxConcurrencyHasBeenSet() const
TargetLocation & AddRegions(const Aws::String &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