7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/RuleState.h>
22namespace CloudWatchEvents
36 AWS_CLOUDWATCHEVENTS_API
Rule() =
default;
48 template<
typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
50 template<
typename NameT = Aws::String>
60 template<
typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
62 template<
typename ArnT = Aws::String>
74 template<
typename EventPatternT = Aws::String>
75 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet =
true; m_eventPattern = std::forward<EventPatternT>(value); }
76 template<
typename EventPatternT = Aws::String>
96 template<
typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
98 template<
typename DescriptionT = Aws::String>
111 template<
typename ScheduleExpressionT = Aws::String>
112 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet =
true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
113 template<
typename ScheduleExpressionT = Aws::String>
128 template<
typename RoleArnT = Aws::String>
129 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
130 template<
typename RoleArnT = Aws::String>
142 template<
typename ManagedByT = Aws::String>
143 void SetManagedBy(ManagedByT&& value) { m_managedByHasBeenSet =
true; m_managedBy = std::forward<ManagedByT>(value); }
144 template<
typename ManagedByT = Aws::String>
155 template<
typename EventBusNameT = Aws::String>
156 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet =
true; m_eventBusName = std::forward<EventBusNameT>(value); }
157 template<
typename EventBusNameT = Aws::String>
163 bool m_nameHasBeenSet =
false;
166 bool m_arnHasBeenSet =
false;
169 bool m_eventPatternHasBeenSet =
false;
172 bool m_stateHasBeenSet =
false;
175 bool m_descriptionHasBeenSet =
false;
178 bool m_scheduleExpressionHasBeenSet =
false;
181 bool m_roleArnHasBeenSet =
false;
184 bool m_managedByHasBeenSet =
false;
187 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