7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/RuleAction.h>
9#include <aws/connect/model/RulePublishStatus.h>
10#include <aws/connect/model/RuleTriggerEventSource.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
35 AWS_CONNECT_API
Rule() =
default;
46 template <
typename NameT = Aws::String>
48 m_nameHasBeenSet =
true;
49 m_name = std::forward<NameT>(value);
51 template <
typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
64 template <
typename RuleIdT = Aws::String>
66 m_ruleIdHasBeenSet =
true;
67 m_ruleId = std::forward<RuleIdT>(value);
69 template <
typename RuleIdT = Aws::String>
82 template <
typename RuleArnT = Aws::String>
84 m_ruleArnHasBeenSet =
true;
85 m_ruleArn = std::forward<RuleArnT>(value);
87 template <
typename RuleArnT = Aws::String>
100 template <
typename TriggerEventSourceT = RuleTriggerEventSource>
102 m_triggerEventSourceHasBeenSet =
true;
103 m_triggerEventSource = std::forward<TriggerEventSourceT>(value);
105 template <
typename TriggerEventSourceT = RuleTriggerEventSource>
118 template <
typename FunctionT = Aws::String>
120 m_functionHasBeenSet =
true;
121 m_function = std::forward<FunctionT>(value);
123 template <
typename FunctionT = Aws::String>
136 template <
typename ActionsT = Aws::Vector<RuleAction>>
138 m_actionsHasBeenSet =
true;
139 m_actions = std::forward<ActionsT>(value);
141 template <
typename ActionsT = Aws::Vector<RuleAction>>
146 template <
typename ActionsT = RuleAction>
148 m_actionsHasBeenSet =
true;
149 m_actions.emplace_back(std::forward<ActionsT>(value));
161 m_publishStatusHasBeenSet =
true;
162 m_publishStatus = value;
176 template <
typename CreatedTimeT = Aws::Utils::DateTime>
178 m_createdTimeHasBeenSet =
true;
179 m_createdTime = std::forward<CreatedTimeT>(value);
181 template <
typename CreatedTimeT = Aws::Utils::DateTime>
194 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
196 m_lastUpdatedTimeHasBeenSet =
true;
197 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
199 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
212 template <
typename LastUpdatedByT = Aws::String>
214 m_lastUpdatedByHasBeenSet =
true;
215 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
217 template <
typename LastUpdatedByT = Aws::String>
231 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
233 m_tagsHasBeenSet =
true;
234 m_tags = std::forward<TagsT>(value);
236 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 SetTags(std::forward<TagsT>(value));
241 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
243 m_tagsHasBeenSet =
true;
244 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
270 bool m_nameHasBeenSet =
false;
271 bool m_ruleIdHasBeenSet =
false;
272 bool m_ruleArnHasBeenSet =
false;
273 bool m_triggerEventSourceHasBeenSet =
false;
274 bool m_functionHasBeenSet =
false;
275 bool m_actionsHasBeenSet =
false;
276 bool m_publishStatusHasBeenSet =
false;
277 bool m_createdTimeHasBeenSet =
false;
278 bool m_lastUpdatedTimeHasBeenSet =
false;
279 bool m_lastUpdatedByHasBeenSet =
false;
280 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