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>
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>>
56 template<
typename AccountsT = Aws::String>
57 TargetLocation&
AddAccounts(AccountsT&& value) { m_accountsHasBeenSet =
true; m_accounts.emplace_back(std::forward<AccountsT>(value));
return *
this; }
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>>
71 template<
typename RegionsT = Aws::String>
72 TargetLocation&
AddRegions(RegionsT&& value) { m_regionsHasBeenSet =
true; m_regions.emplace_back(std::forward<RegionsT>(value));
return *
this; }
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>
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>
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>
119 template<
typename TargetLocationAlarmConfigurationT = AlarmConfiguration>
120 void SetTargetLocationAlarmConfiguration(TargetLocationAlarmConfigurationT&& value) { m_targetLocationAlarmConfigurationHasBeenSet =
true; m_targetLocationAlarmConfiguration = std::forward<TargetLocationAlarmConfigurationT>(value); }
121 template<
typename TargetLocationAlarmConfigurationT = AlarmConfiguration>
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>>
147 template<
typename ExcludeAccountsT = Aws::String>
148 TargetLocation&
AddExcludeAccounts(ExcludeAccountsT&& value) { m_excludeAccountsHasBeenSet =
true; m_excludeAccounts.emplace_back(std::forward<ExcludeAccountsT>(value));
return *
this; }
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>>
165 template<
typename TargetsT = Target>
166 TargetLocation&
AddTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets.emplace_back(std::forward<TargetsT>(value));
return *
this; }
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>
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>
202 bool m_accountsHasBeenSet =
false;
205 bool m_regionsHasBeenSet =
false;
208 bool m_targetLocationMaxConcurrencyHasBeenSet =
false;
211 bool m_targetLocationMaxErrorsHasBeenSet =
false;
214 bool m_executionRoleNameHasBeenSet =
false;
217 bool m_targetLocationAlarmConfigurationHasBeenSet =
false;
219 bool m_includeChildOrganizationUnits{
false};
220 bool m_includeChildOrganizationUnitsHasBeenSet =
false;
223 bool m_excludeAccountsHasBeenSet =
false;
226 bool m_targetsHasBeenSet =
false;
229 bool m_targetsMaxConcurrencyHasBeenSet =
false;
232 bool m_targetsMaxErrorsHasBeenSet =
false;
const Aws::String & GetTargetsMaxErrors() const
bool TargetsMaxErrorsHasBeenSet() 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
bool ExecutionRoleNameHasBeenSet() const
const Aws::String & GetTargetLocationMaxConcurrency() const
void SetTargetsMaxConcurrency(TargetsMaxConcurrencyT &&value)
bool RegionsHasBeenSet() const
bool TargetsHasBeenSet() const
bool GetIncludeChildOrganizationUnits() const
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)
bool TargetsMaxConcurrencyHasBeenSet() const
TargetLocation & WithTargetLocationMaxErrors(TargetLocationMaxErrorsT &&value)
TargetLocation & WithTargetsMaxErrors(TargetsMaxErrorsT &&value)
TargetLocation & WithAccounts(AccountsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
const Aws::String & GetTargetLocationMaxErrors() const
bool AccountsHasBeenSet() const
bool ExcludeAccountsHasBeenSet() 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