7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/events/CloudWatchEventsRequest.h>
10#include <aws/events/CloudWatchEvents_EXPORTS.h>
11#include <aws/events/model/RuleState.h>
12#include <aws/events/model/Tag.h>
17namespace CloudWatchEvents {
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));
61 template <
typename ScheduleExpressionT = Aws::String>
63 m_scheduleExpressionHasBeenSet =
true;
64 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
66 template <
typename ScheduleExpressionT = Aws::String>
81 template <
typename EventPatternT = Aws::String>
83 m_eventPatternHasBeenSet =
true;
84 m_eventPattern = std::forward<EventPatternT>(value);
86 template <
typename EventPatternT = Aws::String>
100 m_stateHasBeenSet =
true;
115 template <
typename DescriptionT = Aws::String>
117 m_descriptionHasBeenSet =
true;
118 m_description = std::forward<DescriptionT>(value);
120 template <
typename DescriptionT = Aws::String>
138 template <
typename RoleArnT = Aws::String>
140 m_roleArnHasBeenSet =
true;
141 m_roleArn = std::forward<RoleArnT>(value);
143 template <
typename RoleArnT = Aws::String>
156 template <
typename TagsT = Aws::Vector<Tag>>
158 m_tagsHasBeenSet =
true;
159 m_tags = std::forward<TagsT>(value);
161 template <
typename TagsT = Aws::Vector<Tag>>
163 SetTags(std::forward<TagsT>(value));
166 template <
typename TagsT = Tag>
168 m_tagsHasBeenSet =
true;
169 m_tags.emplace_back(std::forward<TagsT>(value));
181 template <
typename EventBusNameT = Aws::String>
183 m_eventBusNameHasBeenSet =
true;
184 m_eventBusName = std::forward<EventBusNameT>(value);
186 template <
typename EventBusNameT = Aws::String>
208 bool m_nameHasBeenSet =
false;
209 bool m_scheduleExpressionHasBeenSet =
false;
210 bool m_eventPatternHasBeenSet =
false;
211 bool m_stateHasBeenSet =
false;
212 bool m_descriptionHasBeenSet =
false;
213 bool m_roleArnHasBeenSet =
false;
214 bool m_tagsHasBeenSet =
false;
215 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