7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/EventBridgeRequest.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/RuleState.h>
12#include <aws/eventbridge/model/Tag.h>
17namespace EventBridge {
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>
82 template <
typename EventPatternT = Aws::String>
84 m_eventPatternHasBeenSet =
true;
85 m_eventPattern = std::forward<EventPatternT>(value);
87 template <
typename EventPatternT = Aws::String>
122 m_stateHasBeenSet =
true;
137 template <
typename DescriptionT = Aws::String>
139 m_descriptionHasBeenSet =
true;
140 m_description = std::forward<DescriptionT>(value);
142 template <
typename DescriptionT = Aws::String>
160 template <
typename RoleArnT = Aws::String>
162 m_roleArnHasBeenSet =
true;
163 m_roleArn = std::forward<RoleArnT>(value);
165 template <
typename RoleArnT = Aws::String>
178 template <
typename TagsT = Aws::Vector<Tag>>
180 m_tagsHasBeenSet =
true;
181 m_tags = std::forward<TagsT>(value);
183 template <
typename TagsT = Aws::Vector<Tag>>
185 SetTags(std::forward<TagsT>(value));
188 template <
typename TagsT = Tag>
190 m_tagsHasBeenSet =
true;
191 m_tags.emplace_back(std::forward<TagsT>(value));
203 template <
typename EventBusNameT = Aws::String>
205 m_eventBusNameHasBeenSet =
true;
206 m_eventBusName = std::forward<EventBusNameT>(value);
208 template <
typename EventBusNameT = Aws::String>
230 bool m_nameHasBeenSet =
false;
231 bool m_scheduleExpressionHasBeenSet =
false;
232 bool m_eventPatternHasBeenSet =
false;
233 bool m_stateHasBeenSet =
false;
234 bool m_descriptionHasBeenSet =
false;
235 bool m_roleArnHasBeenSet =
false;
236 bool m_tagsHasBeenSet =
false;
237 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