7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/events/model/RuleState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/events/model/Tag.h>
17namespace CloudWatchEvents
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>
73 template<
typename EventPatternT = Aws::String>
74 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet =
true; m_eventPattern = std::forward<EventPatternT>(value); }
75 template<
typename EventPatternT = Aws::String>
95 template<
typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
97 template<
typename DescriptionT = Aws::String>
112 template<
typename RoleArnT = Aws::String>
113 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
114 template<
typename RoleArnT = Aws::String>
124 template<
typename TagsT = Aws::Vector<Tag>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
126 template<
typename TagsT = Aws::Vector<Tag>>
128 template<
typename TagsT = Tag>
129 PutRuleRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
139 template<
typename EventBusNameT = Aws::String>
140 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet =
true; m_eventBusName = std::forward<EventBusNameT>(value); }
141 template<
typename EventBusNameT = Aws::String>
147 bool m_nameHasBeenSet =
false;
150 bool m_scheduleExpressionHasBeenSet =
false;
153 bool m_eventPatternHasBeenSet =
false;
156 bool m_stateHasBeenSet =
false;
159 bool m_descriptionHasBeenSet =
false;
162 bool m_roleArnHasBeenSet =
false;
165 bool m_tagsHasBeenSet =
false;
168 bool m_eventBusNameHasBeenSet =
false;
PutRuleRequest & WithState(RuleState value)
bool RoleArnHasBeenSet() const
void SetRoleArn(RoleArnT &&value)
PutRuleRequest & WithEventPattern(EventPatternT &&value)
bool StateHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetState(RuleState value)
bool EventBusNameHasBeenSet() const
RuleState GetState() const
const Aws::String & GetRoleArn() const
bool ScheduleExpressionHasBeenSet() const
bool DescriptionHasBeenSet() const
void SetTags(TagsT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetScheduleExpression() const
const Aws::String & GetEventPattern() const
virtual const char * GetServiceRequestName() const override
bool TagsHasBeenSet() const
PutRuleRequest & AddTags(TagsT &&value)
PutRuleRequest & WithTags(TagsT &&value)
void SetName(NameT &&value)
void SetDescription(DescriptionT &&value)
PutRuleRequest & WithRoleArn(RoleArnT &&value)
PutRuleRequest & WithName(NameT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
bool EventPatternHasBeenSet() const
const Aws::String & GetName() const
AWS_CLOUDWATCHEVENTS_API PutRuleRequest()=default
const Aws::String & GetEventBusName() const
bool NameHasBeenSet() const
PutRuleRequest & WithDescription(DescriptionT &&value)
void SetEventBusName(EventBusNameT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
PutRuleRequest & WithEventBusName(EventBusNameT &&value)
void SetEventPattern(EventPatternT &&value)
PutRuleRequest & WithScheduleExpression(ScheduleExpressionT &&value)
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