AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeRuleResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridge_EXPORTS.h>
9#include <aws/eventbridge/model/RuleState.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace EventBridge {
23namespace Model {
25 public:
26 AWS_EVENTBRIDGE_API DescribeRuleResult() = default;
29
31
34 inline const Aws::String& GetName() const { return m_name; }
35 template <typename NameT = Aws::String>
36 void SetName(NameT&& value) {
37 m_nameHasBeenSet = true;
38 m_name = std::forward<NameT>(value);
39 }
40 template <typename NameT = Aws::String>
41 DescribeRuleResult& WithName(NameT&& value) {
42 SetName(std::forward<NameT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetArn() const { return m_arn; }
52 template <typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) {
54 m_arnHasBeenSet = true;
55 m_arn = std::forward<ArnT>(value);
56 }
57 template <typename ArnT = Aws::String>
58 DescribeRuleResult& WithArn(ArnT&& value) {
59 SetArn(std::forward<ArnT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
71 template <typename EventPatternT = Aws::String>
72 void SetEventPattern(EventPatternT&& value) {
73 m_eventPatternHasBeenSet = true;
74 m_eventPattern = std::forward<EventPatternT>(value);
75 }
76 template <typename EventPatternT = Aws::String>
77 DescribeRuleResult& WithEventPattern(EventPatternT&& value) {
78 SetEventPattern(std::forward<EventPatternT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
89 template <typename ScheduleExpressionT = Aws::String>
90 void SetScheduleExpression(ScheduleExpressionT&& value) {
91 m_scheduleExpressionHasBeenSet = true;
92 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
93 }
94 template <typename ScheduleExpressionT = Aws::String>
95 DescribeRuleResult& WithScheduleExpression(ScheduleExpressionT&& value) {
96 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
97 return *this;
98 }
100
102
105 inline RuleState GetState() const { return m_state; }
106 inline void SetState(RuleState value) {
107 m_stateHasBeenSet = true;
108 m_state = value;
109 }
111 SetState(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetDescription() const { return m_description; }
121 template <typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) {
123 m_descriptionHasBeenSet = true;
124 m_description = std::forward<DescriptionT>(value);
125 }
126 template <typename DescriptionT = Aws::String>
127 DescribeRuleResult& WithDescription(DescriptionT&& value) {
128 SetDescription(std::forward<DescriptionT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
138 template <typename RoleArnT = Aws::String>
139 void SetRoleArn(RoleArnT&& value) {
140 m_roleArnHasBeenSet = true;
141 m_roleArn = std::forward<RoleArnT>(value);
142 }
143 template <typename RoleArnT = Aws::String>
144 DescribeRuleResult& WithRoleArn(RoleArnT&& value) {
145 SetRoleArn(std::forward<RoleArnT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::String& GetManagedBy() const { return m_managedBy; }
157 template <typename ManagedByT = Aws::String>
158 void SetManagedBy(ManagedByT&& value) {
159 m_managedByHasBeenSet = true;
160 m_managedBy = std::forward<ManagedByT>(value);
161 }
162 template <typename ManagedByT = Aws::String>
163 DescribeRuleResult& WithManagedBy(ManagedByT&& value) {
164 SetManagedBy(std::forward<ManagedByT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
174 template <typename EventBusNameT = Aws::String>
175 void SetEventBusName(EventBusNameT&& value) {
176 m_eventBusNameHasBeenSet = true;
177 m_eventBusName = std::forward<EventBusNameT>(value);
178 }
179 template <typename EventBusNameT = Aws::String>
180 DescribeRuleResult& WithEventBusName(EventBusNameT&& value) {
181 SetEventBusName(std::forward<EventBusNameT>(value));
182 return *this;
183 }
185
187
194 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
195 template <typename CreatedByT = Aws::String>
196 void SetCreatedBy(CreatedByT&& value) {
197 m_createdByHasBeenSet = true;
198 m_createdBy = std::forward<CreatedByT>(value);
199 }
200 template <typename CreatedByT = Aws::String>
201 DescribeRuleResult& WithCreatedBy(CreatedByT&& value) {
202 SetCreatedBy(std::forward<CreatedByT>(value));
203 return *this;
204 }
206
208
209 inline const Aws::String& GetRequestId() const { return m_requestId; }
210 template <typename RequestIdT = Aws::String>
211 void SetRequestId(RequestIdT&& value) {
212 m_requestIdHasBeenSet = true;
213 m_requestId = std::forward<RequestIdT>(value);
214 }
215 template <typename RequestIdT = Aws::String>
216 DescribeRuleResult& WithRequestId(RequestIdT&& value) {
217 SetRequestId(std::forward<RequestIdT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_name;
223
224 Aws::String m_arn;
225
226 Aws::String m_eventPattern;
227
228 Aws::String m_scheduleExpression;
229
231
232 Aws::String m_description;
233
234 Aws::String m_roleArn;
235
236 Aws::String m_managedBy;
237
238 Aws::String m_eventBusName;
239
240 Aws::String m_createdBy;
241
242 Aws::String m_requestId;
243 bool m_nameHasBeenSet = false;
244 bool m_arnHasBeenSet = false;
245 bool m_eventPatternHasBeenSet = false;
246 bool m_scheduleExpressionHasBeenSet = false;
247 bool m_stateHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_roleArnHasBeenSet = false;
250 bool m_managedByHasBeenSet = false;
251 bool m_eventBusNameHasBeenSet = false;
252 bool m_createdByHasBeenSet = false;
253 bool m_requestIdHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace EventBridge
258} // namespace Aws
AWS_EVENTBRIDGE_API DescribeRuleResult()=default
DescribeRuleResult & WithArn(ArnT &&value)
AWS_EVENTBRIDGE_API DescribeRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRuleResult & WithRoleArn(RoleArnT &&value)
DescribeRuleResult & WithState(RuleState value)
DescribeRuleResult & WithEventBusName(EventBusNameT &&value)
DescribeRuleResult & WithManagedBy(ManagedByT &&value)
DescribeRuleResult & WithName(NameT &&value)
DescribeRuleResult & WithDescription(DescriptionT &&value)
DescribeRuleResult & WithEventPattern(EventPatternT &&value)
AWS_EVENTBRIDGE_API DescribeRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRuleResult & WithScheduleExpression(ScheduleExpressionT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
const Aws::String & GetScheduleExpression() const
DescribeRuleResult & WithRequestId(RequestIdT &&value)
DescribeRuleResult & WithCreatedBy(CreatedByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue