AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutRuleRequest.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace EventBridge
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EVENTBRIDGE_API PutRuleRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutRule"; }
34
35 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
36
37 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
49 PutRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
58 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
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>
62 PutRuleRequest& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
64
66
72 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
73 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
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>
77 PutRuleRequest& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
79
81
105 inline RuleState GetState() const { return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 inline void SetState(RuleState value) { m_stateHasBeenSet = true; m_state = value; }
108 inline PutRuleRequest& WithState(RuleState value) { SetState(value); return *this;}
110
112
115 inline const Aws::String& GetDescription() const { return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
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>
120 PutRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
122
124
132 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
133 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
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>
137 PutRuleRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
139
141
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
149 PutRuleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
150 template<typename TagsT = Tag>
151 PutRuleRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
153
155
159 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
160 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
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>
164 PutRuleRequest& WithEventBusName(EventBusNameT&& value) { SetEventBusName(std::forward<EventBusNameT>(value)); return *this;}
166 private:
167
168 Aws::String m_name;
169 bool m_nameHasBeenSet = false;
170
171 Aws::String m_scheduleExpression;
172 bool m_scheduleExpressionHasBeenSet = false;
173
174 Aws::String m_eventPattern;
175 bool m_eventPatternHasBeenSet = false;
176
178 bool m_stateHasBeenSet = false;
179
180 Aws::String m_description;
181 bool m_descriptionHasBeenSet = false;
182
183 Aws::String m_roleArn;
184 bool m_roleArnHasBeenSet = false;
185
186 Aws::Vector<Tag> m_tags;
187 bool m_tagsHasBeenSet = false;
188
189 Aws::String m_eventBusName;
190 bool m_eventBusNameHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace EventBridge
195} // namespace Aws
const Aws::String & GetName() const
const Aws::String & GetEventPattern() const
void SetScheduleExpression(ScheduleExpressionT &&value)
PutRuleRequest & WithName(NameT &&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)
const Aws::String & GetRoleArn() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetScheduleExpression() const
void SetEventPattern(EventPatternT &&value)
PutRuleRequest & WithScheduleExpression(ScheduleExpressionT &&value)
const Aws::String & GetEventBusName() 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
void SetEventBusName(EventBusNameT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutRuleRequest & WithRoleArn(RoleArnT &&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