7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/RuleTriggerEventSource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/RulePublishStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/connect/model/RuleAction.h>
40 AWS_CONNECT_API
Rule() =
default;
52 template<
typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
54 template<
typename NameT = Aws::String>
64 template<
typename RuleIdT = Aws::String>
65 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet =
true; m_ruleId = std::forward<RuleIdT>(value); }
66 template<
typename RuleIdT = Aws::String>
76 template<
typename RuleArnT = Aws::String>
77 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet =
true; m_ruleArn = std::forward<RuleArnT>(value); }
78 template<
typename RuleArnT = Aws::String>
88 template<
typename TriggerEventSourceT = RuleTriggerEventSource>
89 void SetTriggerEventSource(TriggerEventSourceT&& value) { m_triggerEventSourceHasBeenSet =
true; m_triggerEventSource = std::forward<TriggerEventSourceT>(value); }
90 template<
typename TriggerEventSourceT = RuleTriggerEventSource>
100 template<
typename FunctionT = Aws::String>
101 void SetFunction(FunctionT&& value) { m_functionHasBeenSet =
true; m_function = std::forward<FunctionT>(value); }
102 template<
typename FunctionT = Aws::String>
112 template<
typename ActionsT = Aws::Vector<RuleAction>>
113 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
114 template<
typename ActionsT = Aws::Vector<RuleAction>>
116 template<
typename ActionsT = RuleAction>
117 Rule&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
136 template<
typename CreatedTimeT = Aws::Utils::DateTime>
137 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet =
true; m_createdTime = std::forward<CreatedTimeT>(value); }
138 template<
typename CreatedTimeT = Aws::Utils::DateTime>
148 template<
typename LastUpdatedTimeT = Aws::Utils::DateTime>
149 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet =
true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
150 template<
typename LastUpdatedTimeT = Aws::Utils::DateTime>
160 template<
typename LastUpdatedByT = Aws::String>
161 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet =
true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
162 template<
typename LastUpdatedByT = Aws::String>
173 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
175 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
179 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
185 bool m_nameHasBeenSet =
false;
188 bool m_ruleIdHasBeenSet =
false;
191 bool m_ruleArnHasBeenSet =
false;
194 bool m_triggerEventSourceHasBeenSet =
false;
197 bool m_functionHasBeenSet =
false;
200 bool m_actionsHasBeenSet =
false;
203 bool m_publishStatusHasBeenSet =
false;
206 bool m_createdTimeHasBeenSet =
false;
209 bool m_lastUpdatedTimeHasBeenSet =
false;
212 bool m_lastUpdatedByHasBeenSet =
false;
215 bool m_tagsHasBeenSet =
false;
Rule & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Rule & WithName(NameT &&value)
Rule & WithRuleId(RuleIdT &&value)
RulePublishStatus GetPublishStatus() const
void SetFunction(FunctionT &&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 & WithLastUpdatedBy(LastUpdatedByT &&value)
Rule & WithFunction(FunctionT &&value)
void SetTags(TagsT &&value)
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
Rule & WithTriggerEventSource(TriggerEventSourceT &&value)
void SetName(NameT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
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