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/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>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatchEvents
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCHEVENTS_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_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHEVENTS_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
75 inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
76 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
77 inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
78 inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
79 inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
80 inline PutRuleRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
81 inline PutRuleRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
82 inline PutRuleRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
84
86
89 inline const RuleState& GetState() const{ return m_state; }
90 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
91 inline void SetState(const RuleState& value) { m_stateHasBeenSet = true; m_state = value; }
92 inline void SetState(RuleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
93 inline PutRuleRequest& WithState(const RuleState& value) { SetState(value); return *this;}
94 inline PutRuleRequest& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetDescription() const{ return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
104 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 inline PutRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 inline PutRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
108 inline PutRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
110
112
120 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
121 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
122 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
123 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
124 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
125 inline PutRuleRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
126 inline PutRuleRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
127 inline PutRuleRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
129
131
134 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 inline PutRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
139 inline PutRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
140 inline PutRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
141 inline PutRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
143
145
149 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
150 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
151 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
152 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
153 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
154 inline PutRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
155 inline PutRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
156 inline PutRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
158 private:
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
163 Aws::String m_scheduleExpression;
164 bool m_scheduleExpressionHasBeenSet = false;
165
166 Aws::String m_eventPattern;
167 bool m_eventPatternHasBeenSet = false;
168
169 RuleState m_state;
170 bool m_stateHasBeenSet = false;
171
172 Aws::String m_description;
173 bool m_descriptionHasBeenSet = false;
174
175 Aws::String m_roleArn;
176 bool m_roleArnHasBeenSet = false;
177
178 Aws::Vector<Tag> m_tags;
179 bool m_tagsHasBeenSet = false;
180
181 Aws::String m_eventBusName;
182 bool m_eventBusNameHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace CloudWatchEvents
187} // namespace Aws
PutRuleRequest & WithTags(const Aws::Vector< Tag > &value)
PutRuleRequest & WithRoleArn(Aws::String &&value)
PutRuleRequest & WithEventBusName(const char *value)
PutRuleRequest & WithScheduleExpression(const char *value)
PutRuleRequest & WithEventBusName(const Aws::String &value)
void SetScheduleExpression(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutRuleRequest & WithState(RuleState &&value)
PutRuleRequest & WithDescription(Aws::String &&value)
PutRuleRequest & WithEventBusName(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API PutRuleRequest()
PutRuleRequest & WithDescription(const Aws::String &value)
const Aws::String & GetScheduleExpression() const
const Aws::String & GetEventPattern() const
virtual const char * GetServiceRequestName() const override
PutRuleRequest & AddTags(const Tag &value)
PutRuleRequest & WithEventPattern(Aws::String &&value)
void SetName(const Aws::String &value)
PutRuleRequest & WithTags(Aws::Vector< Tag > &&value)
PutRuleRequest & WithScheduleExpression(const Aws::String &value)
PutRuleRequest & WithName(Aws::String &&value)
const Aws::String & GetEventBusName() const
PutRuleRequest & WithScheduleExpression(Aws::String &&value)
void SetScheduleExpression(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
PutRuleRequest & WithName(const Aws::String &value)
PutRuleRequest & WithEventPattern(const Aws::String &value)
PutRuleRequest & WithState(const RuleState &value)
PutRuleRequest & WithDescription(const char *value)
PutRuleRequest & WithRoleArn(const char *value)
void SetEventPattern(const Aws::String &value)
PutRuleRequest & WithName(const char *value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
void SetDescription(const Aws::String &value)
void SetEventBusName(const Aws::String &value)
PutRuleRequest & WithEventPattern(const char *value)
PutRuleRequest & WithRoleArn(const Aws::String &value)
void SetRoleArn(const 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