AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline PutRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline PutRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline PutRuleRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
59 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
60 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
61 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
62 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
63 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
64 inline PutRuleRequest& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
65 inline PutRuleRequest& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
66 inline PutRuleRequest& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
68
70
76 inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
77 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
78 inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
79 inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
80 inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
81 inline PutRuleRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
82 inline PutRuleRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
83 inline PutRuleRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
85
87
111 inline const RuleState& GetState() const{ return m_state; }
112 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
113 inline void SetState(const RuleState& value) { m_stateHasBeenSet = true; m_state = value; }
114 inline void SetState(RuleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
115 inline PutRuleRequest& WithState(const RuleState& value) { SetState(value); return *this;}
116 inline PutRuleRequest& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetDescription() const{ return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
127 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
128 inline PutRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
129 inline PutRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
130 inline PutRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
132
134
142 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
143 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
144 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
145 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
146 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
147 inline PutRuleRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
148 inline PutRuleRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
149 inline PutRuleRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
151
153
156 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
160 inline PutRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
161 inline PutRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
162 inline PutRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
163 inline PutRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
165
167
171 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
172 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
173 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
174 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
175 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
176 inline PutRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
177 inline PutRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
178 inline PutRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
180 private:
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
185 Aws::String m_scheduleExpression;
186 bool m_scheduleExpressionHasBeenSet = false;
187
188 Aws::String m_eventPattern;
189 bool m_eventPatternHasBeenSet = false;
190
191 RuleState m_state;
192 bool m_stateHasBeenSet = false;
193
194 Aws::String m_description;
195 bool m_descriptionHasBeenSet = false;
196
197 Aws::String m_roleArn;
198 bool m_roleArnHasBeenSet = false;
199
200 Aws::Vector<Tag> m_tags;
201 bool m_tagsHasBeenSet = false;
202
203 Aws::String m_eventBusName;
204 bool m_eventBusNameHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EventBridge
209} // namespace Aws
void SetScheduleExpression(Aws::String &&value)
const Aws::String & GetName() const
PutRuleRequest & AddTags(const Tag &value)
const Aws::String & GetEventPattern() const
PutRuleRequest & WithEventPattern(const Aws::String &value)
PutRuleRequest & WithScheduleExpression(const char *value)
void SetEventPattern(Aws::String &&value)
void SetScheduleExpression(const char *value)
PutRuleRequest & WithDescription(const char *value)
PutRuleRequest & WithTags(const Aws::Vector< Tag > &value)
void SetEventBusName(Aws::String &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
PutRuleRequest & AddTags(Tag &&value)
PutRuleRequest & WithEventPattern(const char *value)
PutRuleRequest & WithEventPattern(Aws::String &&value)
void SetRoleArn(const Aws::String &value)
const Aws::String & GetRoleArn() const
PutRuleRequest & WithEventBusName(const char *value)
virtual const char * GetServiceRequestName() const override
PutRuleRequest & WithScheduleExpression(const Aws::String &value)
const Aws::String & GetScheduleExpression() const
void SetName(const Aws::String &value)
void SetEventPattern(const Aws::String &value)
void SetDescription(Aws::String &&value)
PutRuleRequest & WithName(const char *value)
void SetEventPattern(const char *value)
PutRuleRequest & WithDescription(Aws::String &&value)
const Aws::String & GetEventBusName() const
void SetTags(Aws::Vector< Tag > &&value)
PutRuleRequest & WithState(const RuleState &value)
PutRuleRequest & WithRoleArn(Aws::String &&value)
PutRuleRequest & WithScheduleExpression(Aws::String &&value)
PutRuleRequest & WithName(const Aws::String &value)
const Aws::String & GetDescription() const
const Aws::Vector< Tag > & GetTags() const
PutRuleRequest & WithEventBusName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
PutRuleRequest & WithDescription(const Aws::String &value)
void SetState(const RuleState &value)
PutRuleRequest & WithRoleArn(const Aws::String &value)
PutRuleRequest & WithEventBusName(Aws::String &&value)
void SetScheduleExpression(const Aws::String &value)
void SetDescription(const Aws::String &value)
PutRuleRequest & WithTags(Aws::Vector< Tag > &&value)
PutRuleRequest & WithRoleArn(const char *value)
PutRuleRequest & WithState(RuleState &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEventBusName(const Aws::String &value)
PutRuleRequest & WithName(Aws::String &&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