7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/RuleAction.h>
9#include <aws/connect/model/RuleCapabilityTier.h>
10#include <aws/connect/model/RulePublishStatus.h>
11#include <aws/connect/model/RuleTriggerEventSource.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
36 AWS_CONNECT_API
Rule() =
default;
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
65 template <
typename RuleIdT = Aws::String>
67 m_ruleIdHasBeenSet =
true;
68 m_ruleId = std::forward<RuleIdT>(value);
70 template <
typename RuleIdT = Aws::String>
83 template <
typename RuleArnT = Aws::String>
85 m_ruleArnHasBeenSet =
true;
86 m_ruleArn = std::forward<RuleArnT>(value);
88 template <
typename RuleArnT = Aws::String>
101 template <
typename TriggerEventSourceT = RuleTriggerEventSource>
103 m_triggerEventSourceHasBeenSet =
true;
104 m_triggerEventSource = std::forward<TriggerEventSourceT>(value);
106 template <
typename TriggerEventSourceT = RuleTriggerEventSource>
120 template <
typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
122 m_ruleCapabilityTiersHasBeenSet =
true;
123 m_ruleCapabilityTiers = std::forward<RuleCapabilityTiersT>(value);
125 template <
typename RuleCapabilityTiersT = Aws::Vector<RuleCapabilityTier>>
131 m_ruleCapabilityTiersHasBeenSet =
true;
132 m_ruleCapabilityTiers.push_back(value);
143 template <
typename FunctionT = Aws::String>
145 m_functionHasBeenSet =
true;
146 m_function = std::forward<FunctionT>(value);
148 template <
typename FunctionT = Aws::String>
161 template <
typename ActionsT = Aws::Vector<RuleAction>>
163 m_actionsHasBeenSet =
true;
164 m_actions = std::forward<ActionsT>(value);
166 template <
typename ActionsT = Aws::Vector<RuleAction>>
171 template <
typename ActionsT = RuleAction>
173 m_actionsHasBeenSet =
true;
174 m_actions.emplace_back(std::forward<ActionsT>(value));
186 m_publishStatusHasBeenSet =
true;
187 m_publishStatus = value;
201 template <
typename CreatedTimeT = Aws::Utils::DateTime>
203 m_createdTimeHasBeenSet =
true;
204 m_createdTime = std::forward<CreatedTimeT>(value);
206 template <
typename CreatedTimeT = Aws::Utils::DateTime>
219 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
221 m_lastUpdatedTimeHasBeenSet =
true;
222 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
224 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
237 template <
typename LastUpdatedByT = Aws::String>
239 m_lastUpdatedByHasBeenSet =
true;
240 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
242 template <
typename LastUpdatedByT = Aws::String>
256 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 m_tagsHasBeenSet =
true;
259 m_tags = std::forward<TagsT>(value);
261 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
263 SetTags(std::forward<TagsT>(value));
266 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
268 m_tagsHasBeenSet =
true;
269 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
297 bool m_nameHasBeenSet =
false;
298 bool m_ruleIdHasBeenSet =
false;
299 bool m_ruleArnHasBeenSet =
false;
300 bool m_triggerEventSourceHasBeenSet =
false;
301 bool m_ruleCapabilityTiersHasBeenSet =
false;
302 bool m_functionHasBeenSet =
false;
303 bool m_actionsHasBeenSet =
false;
304 bool m_publishStatusHasBeenSet =
false;
305 bool m_createdTimeHasBeenSet =
false;
306 bool m_lastUpdatedTimeHasBeenSet =
false;
307 bool m_lastUpdatedByHasBeenSet =
false;
308 bool m_tagsHasBeenSet =
false;
Rule & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Rule & WithName(NameT &&value)
Rule & WithRuleId(RuleIdT &&value)
RulePublishStatus GetPublishStatus() const
void SetFunction(FunctionT &&value)
Rule & AddRuleCapabilityTiers(RuleCapabilityTier value)
const Aws::Vector< RuleAction > & GetActions() const
bool PublishStatusHasBeenSet() const
Rule & WithRuleArn(RuleArnT &&value)
bool TriggerEventSourceHasBeenSet() const
bool CreatedTimeHasBeenSet() const
const Aws::String & GetFunction() const
bool FunctionHasBeenSet() const
Rule & WithRuleCapabilityTiers(RuleCapabilityTiersT &&value)
Rule & WithLastUpdatedBy(LastUpdatedByT &&value)
Rule & WithFunction(FunctionT &&value)
void SetTags(TagsT &&value)
bool RuleCapabilityTiersHasBeenSet() const
const RuleTriggerEventSource & GetTriggerEventSource() const
const Aws::Utils::DateTime & GetCreatedTime() const
bool NameHasBeenSet() const
bool TagsHasBeenSet() const
void SetLastUpdatedBy(LastUpdatedByT &&value)
Rule & WithActions(ActionsT &&value)
AWS_CONNECT_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTime(CreatedTimeT &&value)
void SetTriggerEventSource(TriggerEventSourceT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
void SetActions(ActionsT &&value)
Rule & AddActions(ActionsT &&value)
Rule & WithCreatedTime(CreatedTimeT &&value)
bool LastUpdatedTimeHasBeenSet() const
bool LastUpdatedByHasBeenSet() const
const Aws::String & GetLastUpdatedBy() const
AWS_CONNECT_API Rule()=default
Rule & WithTags(TagsT &&value)
const Aws::String & GetRuleArn() const
const Aws::Vector< RuleCapabilityTier > & GetRuleCapabilityTiers() const
Rule & WithTriggerEventSource(TriggerEventSourceT &&value)
void SetName(NameT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRuleCapabilityTiers(RuleCapabilityTiersT &&value)
void SetPublishStatus(RulePublishStatus value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetRuleId(RuleIdT &&value)
Rule & WithPublishStatus(RulePublishStatus value)
void SetRuleArn(RuleArnT &&value)
Rule & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool ActionsHasBeenSet() const
AWS_CONNECT_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RuleIdHasBeenSet() const
const Aws::String & GetRuleId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool RuleArnHasBeenSet() const
const Aws::String & GetName() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue