7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/model/RuleState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/eventbridge/model/Tag.h>
46 template<
typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
48 template<
typename NameT = Aws::String>
59 template<
typename ScheduleExpressionT = Aws::String>
60 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet =
true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
61 template<
typename ScheduleExpressionT = 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>
134 template<
typename RoleArnT = Aws::String>
135 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
136 template<
typename RoleArnT = Aws::String>
146 template<
typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
148 template<
typename TagsT = Aws::Vector<Tag>>
150 template<
typename TagsT = Tag>
151 PutRuleRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
161 template<
typename EventBusNameT = Aws::String>
162 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet =
true; m_eventBusName = std::forward<EventBusNameT>(value); }
163 template<
typename EventBusNameT = Aws::String>
169 bool m_nameHasBeenSet =
false;
172 bool m_scheduleExpressionHasBeenSet =
false;
175 bool m_eventPatternHasBeenSet =
false;
178 bool m_stateHasBeenSet =
false;
181 bool m_descriptionHasBeenSet =
false;
184 bool m_roleArnHasBeenSet =
false;
187 bool m_tagsHasBeenSet =
false;
190 bool m_eventBusNameHasBeenSet =
false;
bool DescriptionHasBeenSet() const
const Aws::String & GetName() const
const Aws::String & GetEventPattern() const
void SetScheduleExpression(ScheduleExpressionT &&value)
PutRuleRequest & WithName(NameT &&value)
void SetRoleArn(RoleArnT &&value)
PutRuleRequest & WithEventPattern(EventPatternT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
PutRuleRequest & WithDescription(DescriptionT &&value)
PutRuleRequest & AddTags(TagsT &&value)
PutRuleRequest & WithEventBusName(EventBusNameT &&value)
bool StateHasBeenSet() const
const Aws::String & GetRoleArn() const
void SetState(RuleState value)
virtual const char * GetServiceRequestName() const override
void SetTags(TagsT &&value)
bool EventBusNameHasBeenSet() const
const Aws::String & GetScheduleExpression() const
void SetEventPattern(EventPatternT &&value)
RuleState GetState() const
PutRuleRequest & WithScheduleExpression(ScheduleExpressionT &&value)
void SetName(NameT &&value)
const Aws::String & GetEventBusName() const
bool RoleArnHasBeenSet() const
void SetDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API PutRuleRequest()=default
PutRuleRequest & WithTags(TagsT &&value)
const Aws::String & GetDescription() const
PutRuleRequest & WithState(RuleState value)
const Aws::Vector< Tag > & GetTags() const
bool TagsHasBeenSet() const
bool ScheduleExpressionHasBeenSet() const
bool EventPatternHasBeenSet() const
void SetEventBusName(EventBusNameT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutRuleRequest & WithRoleArn(RoleArnT &&value)
bool NameHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector