7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridge_EXPORTS.h>
9#include <aws/eventbridge/model/RuleState.h>
20namespace EventBridge {
31 AWS_EVENTBRIDGE_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>
120 m_stateHasBeenSet =
true;
135 template <
typename DescriptionT = Aws::String>
137 m_descriptionHasBeenSet =
true;
138 m_description = std::forward<DescriptionT>(value);
140 template <
typename DescriptionT = Aws::String>
156 template <
typename ScheduleExpressionT = Aws::String>
158 m_scheduleExpressionHasBeenSet =
true;
159 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
161 template <
typename ScheduleExpressionT = Aws::String>
179 template <
typename RoleArnT = Aws::String>
181 m_roleArnHasBeenSet =
true;
182 m_roleArn = std::forward<RoleArnT>(value);
184 template <
typename RoleArnT = Aws::String>
199 template <
typename ManagedByT = Aws::String>
201 m_managedByHasBeenSet =
true;
202 m_managedBy = std::forward<ManagedByT>(value);
204 template <
typename ManagedByT = Aws::String>
218 template <
typename EventBusNameT = Aws::String>
220 m_eventBusNameHasBeenSet =
true;
221 m_eventBusName = std::forward<EventBusNameT>(value);
223 template <
typename EventBusNameT = Aws::String>
247 bool m_nameHasBeenSet =
false;
248 bool m_arnHasBeenSet =
false;
249 bool m_eventPatternHasBeenSet =
false;
250 bool m_stateHasBeenSet =
false;
251 bool m_descriptionHasBeenSet =
false;
252 bool m_scheduleExpressionHasBeenSet =
false;
253 bool m_roleArnHasBeenSet =
false;
254 bool m_managedByHasBeenSet =
false;
255 bool m_eventBusNameHasBeenSet =
false;
bool NameHasBeenSet() const
bool ArnHasBeenSet() const
bool EventBusNameHasBeenSet() const
Rule & WithScheduleExpression(ScheduleExpressionT &&value)
Rule & WithState(RuleState value)
void SetManagedBy(ManagedByT &&value)
Rule & WithRoleArn(RoleArnT &&value)
Rule & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetManagedBy() const
Rule & WithArn(ArnT &&value)
void SetEventPattern(EventPatternT &&value)
AWS_EVENTBRIDGE_API Rule()=default
bool DescriptionHasBeenSet() const
const Aws::String & GetDescription() const
bool RoleArnHasBeenSet() const
const Aws::String & GetScheduleExpression() const
bool ManagedByHasBeenSet() const
bool StateHasBeenSet() const
AWS_EVENTBRIDGE_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(ArnT &&value)
Rule & WithEventBusName(EventBusNameT &&value)
void SetRoleArn(RoleArnT &&value)
bool ScheduleExpressionHasBeenSet() const
const Aws::String & GetArn() const
void SetScheduleExpression(ScheduleExpressionT &&value)
void SetState(RuleState value)
const Aws::String & GetEventBusName() const
void SetName(NameT &&value)
bool EventPatternHasBeenSet() const
const Aws::String & GetName() const
Rule & WithEventPattern(EventPatternT &&value)
RuleState GetState() const
const Aws::String & GetEventPattern() const
void SetEventBusName(EventBusNameT &&value)
AWS_EVENTBRIDGE_API Rule(Aws::Utils::Json::JsonView jsonValue)
Rule & WithName(NameT &&value)
Rule & WithManagedBy(ManagedByT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetRoleArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue