7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/RuleState.h>
36 AWS_EVENTBRIDGE_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>
117 template<
typename DescriptionT = Aws::String>
118 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
119 template<
typename DescriptionT = Aws::String>
132 template<
typename ScheduleExpressionT = Aws::String>
133 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet =
true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
134 template<
typename ScheduleExpressionT = Aws::String>
149 template<
typename RoleArnT = Aws::String>
150 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
151 template<
typename RoleArnT = Aws::String>
163 template<
typename ManagedByT = Aws::String>
164 void SetManagedBy(ManagedByT&& value) { m_managedByHasBeenSet =
true; m_managedBy = std::forward<ManagedByT>(value); }
165 template<
typename ManagedByT = Aws::String>
176 template<
typename EventBusNameT = Aws::String>
177 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet =
true; m_eventBusName = std::forward<EventBusNameT>(value); }
178 template<
typename EventBusNameT = Aws::String>
184 bool m_nameHasBeenSet =
false;
187 bool m_arnHasBeenSet =
false;
190 bool m_eventPatternHasBeenSet =
false;
193 bool m_stateHasBeenSet =
false;
196 bool m_descriptionHasBeenSet =
false;
199 bool m_scheduleExpressionHasBeenSet =
false;
202 bool m_roleArnHasBeenSet =
false;
205 bool m_managedByHasBeenSet =
false;
208 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