AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeRuleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/CloudWatchEvents_EXPORTS.h>
10#include <aws/events/model/RuleState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchEvents {
24namespace Model {
26 public:
27 AWS_CLOUDWATCHEVENTS_API DescribeRuleResult() = default;
30
32
35 inline const Aws::String& GetName() const { return m_name; }
36 template <typename NameT = Aws::String>
37 void SetName(NameT&& value) {
38 m_nameHasBeenSet = true;
39 m_name = std::forward<NameT>(value);
40 }
41 template <typename NameT = Aws::String>
42 DescribeRuleResult& WithName(NameT&& value) {
43 SetName(std::forward<NameT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
53 template <typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) {
55 m_arnHasBeenSet = true;
56 m_arn = std::forward<ArnT>(value);
57 }
58 template <typename ArnT = Aws::String>
59 DescribeRuleResult& WithArn(ArnT&& value) {
60 SetArn(std::forward<ArnT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
72 template <typename EventPatternT = Aws::String>
73 void SetEventPattern(EventPatternT&& value) {
74 m_eventPatternHasBeenSet = true;
75 m_eventPattern = std::forward<EventPatternT>(value);
76 }
77 template <typename EventPatternT = Aws::String>
78 DescribeRuleResult& WithEventPattern(EventPatternT&& value) {
79 SetEventPattern(std::forward<EventPatternT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
90 template <typename ScheduleExpressionT = Aws::String>
91 void SetScheduleExpression(ScheduleExpressionT&& value) {
92 m_scheduleExpressionHasBeenSet = true;
93 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
94 }
95 template <typename ScheduleExpressionT = Aws::String>
96 DescribeRuleResult& WithScheduleExpression(ScheduleExpressionT&& value) {
97 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
98 return *this;
99 }
101
103
106 inline RuleState GetState() const { return m_state; }
107 inline void SetState(RuleState value) {
108 m_stateHasBeenSet = true;
109 m_state = value;
110 }
112 SetState(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetDescription() const { return m_description; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
128 DescribeRuleResult& WithDescription(DescriptionT&& value) {
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
139 template <typename RoleArnT = Aws::String>
140 void SetRoleArn(RoleArnT&& value) {
141 m_roleArnHasBeenSet = true;
142 m_roleArn = std::forward<RoleArnT>(value);
143 }
144 template <typename RoleArnT = Aws::String>
145 DescribeRuleResult& WithRoleArn(RoleArnT&& value) {
146 SetRoleArn(std::forward<RoleArnT>(value));
147 return *this;
148 }
150
152
157 inline const Aws::String& GetManagedBy() const { return m_managedBy; }
158 template <typename ManagedByT = Aws::String>
159 void SetManagedBy(ManagedByT&& value) {
160 m_managedByHasBeenSet = true;
161 m_managedBy = std::forward<ManagedByT>(value);
162 }
163 template <typename ManagedByT = Aws::String>
164 DescribeRuleResult& WithManagedBy(ManagedByT&& value) {
165 SetManagedBy(std::forward<ManagedByT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
175 template <typename EventBusNameT = Aws::String>
176 void SetEventBusName(EventBusNameT&& value) {
177 m_eventBusNameHasBeenSet = true;
178 m_eventBusName = std::forward<EventBusNameT>(value);
179 }
180 template <typename EventBusNameT = Aws::String>
181 DescribeRuleResult& WithEventBusName(EventBusNameT&& value) {
182 SetEventBusName(std::forward<EventBusNameT>(value));
183 return *this;
184 }
186
188
195 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
196 template <typename CreatedByT = Aws::String>
197 void SetCreatedBy(CreatedByT&& value) {
198 m_createdByHasBeenSet = true;
199 m_createdBy = std::forward<CreatedByT>(value);
200 }
201 template <typename CreatedByT = Aws::String>
202 DescribeRuleResult& WithCreatedBy(CreatedByT&& value) {
203 SetCreatedBy(std::forward<CreatedByT>(value));
204 return *this;
205 }
207
209
210 inline const Aws::String& GetRequestId() const { return m_requestId; }
211 template <typename RequestIdT = Aws::String>
212 void SetRequestId(RequestIdT&& value) {
213 m_requestIdHasBeenSet = true;
214 m_requestId = std::forward<RequestIdT>(value);
215 }
216 template <typename RequestIdT = Aws::String>
217 DescribeRuleResult& WithRequestId(RequestIdT&& value) {
218 SetRequestId(std::forward<RequestIdT>(value));
219 return *this;
220 }
222 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
223
224 private:
225 Aws::String m_name;
226
227 Aws::String m_arn;
228
229 Aws::String m_eventPattern;
230
231 Aws::String m_scheduleExpression;
232
234
235 Aws::String m_description;
236
237 Aws::String m_roleArn;
238
239 Aws::String m_managedBy;
240
241 Aws::String m_eventBusName;
242
243 Aws::String m_createdBy;
244
245 Aws::String m_requestId;
246 Aws::Http::HttpResponseCode m_HttpResponseCode;
247 bool m_nameHasBeenSet = false;
248 bool m_arnHasBeenSet = false;
249 bool m_eventPatternHasBeenSet = false;
250 bool m_scheduleExpressionHasBeenSet = false;
251 bool m_stateHasBeenSet = false;
252 bool m_descriptionHasBeenSet = false;
253 bool m_roleArnHasBeenSet = false;
254 bool m_managedByHasBeenSet = false;
255 bool m_eventBusNameHasBeenSet = false;
256 bool m_createdByHasBeenSet = false;
257 bool m_requestIdHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace CloudWatchEvents
262} // namespace Aws
DescribeRuleResult & WithName(NameT &&value)
DescribeRuleResult & WithEventPattern(EventPatternT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetScheduleExpression(ScheduleExpressionT &&value)
DescribeRuleResult & WithCreatedBy(CreatedByT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRuleResult & WithScheduleExpression(ScheduleExpressionT &&value)
DescribeRuleResult & WithState(RuleState value)
AWS_CLOUDWATCHEVENTS_API DescribeRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRuleResult & WithRoleArn(RoleArnT &&value)
DescribeRuleResult & WithManagedBy(ManagedByT &&value)
DescribeRuleResult & WithEventBusName(EventBusNameT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeRuleResult()=default
DescribeRuleResult & WithRequestId(RequestIdT &&value)
DescribeRuleResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue