7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/events/CloudWatchEvents_EXPORTS.h>
9#include <aws/events/model/RuleState.h>
20namespace CloudWatchEvents {
31 AWS_CLOUDWATCHEVENTS_API
Rule() =
default;
42 template <
typename NameT = Aws::String>
44 m_nameHasBeenSet =
true;
45 m_name = std::forward<NameT>(value);
47 template <
typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
60 template <
typename ArnT = Aws::String>
62 m_arnHasBeenSet =
true;
63 m_arn = std::forward<ArnT>(value);
65 template <
typename ArnT = Aws::String>
67 SetArn(std::forward<ArnT>(value));
80 template <
typename EventPatternT = Aws::String>
82 m_eventPatternHasBeenSet =
true;
83 m_eventPattern = std::forward<EventPatternT>(value);
85 template <
typename EventPatternT = Aws::String>
99 m_stateHasBeenSet =
true;
114 template <
typename DescriptionT = Aws::String>
116 m_descriptionHasBeenSet =
true;
117 m_description = std::forward<DescriptionT>(value);
119 template <
typename DescriptionT = Aws::String>
135 template <
typename ScheduleExpressionT = Aws::String>
137 m_scheduleExpressionHasBeenSet =
true;
138 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
140 template <
typename ScheduleExpressionT = Aws::String>
158 template <
typename RoleArnT = Aws::String>
160 m_roleArnHasBeenSet =
true;
161 m_roleArn = std::forward<RoleArnT>(value);
163 template <
typename RoleArnT = Aws::String>
178 template <
typename ManagedByT = Aws::String>
180 m_managedByHasBeenSet =
true;
181 m_managedBy = std::forward<ManagedByT>(value);
183 template <
typename ManagedByT = Aws::String>
197 template <
typename EventBusNameT = Aws::String>
199 m_eventBusNameHasBeenSet =
true;
200 m_eventBusName = std::forward<EventBusNameT>(value);
202 template <
typename EventBusNameT = Aws::String>
226 bool m_nameHasBeenSet =
false;
227 bool m_arnHasBeenSet =
false;
228 bool m_eventPatternHasBeenSet =
false;
229 bool m_stateHasBeenSet =
false;
230 bool m_descriptionHasBeenSet =
false;
231 bool m_scheduleExpressionHasBeenSet =
false;
232 bool m_roleArnHasBeenSet =
false;
233 bool m_managedByHasBeenSet =
false;
234 bool m_eventBusNameHasBeenSet =
false;
const Aws::String & GetArn() const
Rule & WithEventPattern(EventPatternT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
void SetState(RuleState value)
bool ArnHasBeenSet() const
void SetEventPattern(EventPatternT &&value)
Rule & WithScheduleExpression(ScheduleExpressionT &&value)
const Aws::String & GetEventPattern() const
Rule & WithDescription(DescriptionT &&value)
AWS_CLOUDWATCHEVENTS_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & WithRoleArn(RoleArnT &&value)
bool NameHasBeenSet() const
void SetArn(ArnT &&value)
bool DescriptionHasBeenSet() const
const Aws::String & GetScheduleExpression() const
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & WithName(NameT &&value)
bool RoleArnHasBeenSet() const
void SetDescription(DescriptionT &&value)
Rule & WithState(RuleState value)
bool ManagedByHasBeenSet() const
Rule & WithEventBusName(EventBusNameT &&value)
bool ScheduleExpressionHasBeenSet() const
bool EventPatternHasBeenSet() const
const Aws::String & GetEventBusName() const
AWS_CLOUDWATCHEVENTS_API Rule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetManagedBy() const
void SetRoleArn(RoleArnT &&value)
bool StateHasBeenSet() const
AWS_CLOUDWATCHEVENTS_API Rule()=default
const Aws::String & GetDescription() const
Rule & WithManagedBy(ManagedByT &&value)
RuleState GetState() const
Rule & WithArn(ArnT &&value)
void SetName(NameT &&value)
const Aws::String & GetRoleArn() const
void SetManagedBy(ManagedByT &&value)
bool EventBusNameHasBeenSet() const
void SetEventBusName(EventBusNameT &&value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue