AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeRuleResult.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/RuleState.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace EventBridge
25{
26namespace Model
27{
29 {
30 public:
31 AWS_EVENTBRIDGE_API DescribeRuleResult() = default;
34
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 template<typename NameT = Aws::String>
42 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
43 template<typename NameT = Aws::String>
44 DescribeRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
46
48
51 inline const Aws::String& GetArn() const { return m_arn; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 DescribeRuleResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
64 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
65 template<typename EventPatternT = Aws::String>
66 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
67 template<typename EventPatternT = Aws::String>
68 DescribeRuleResult& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
70
72
76 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
77 template<typename ScheduleExpressionT = Aws::String>
78 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
79 template<typename ScheduleExpressionT = Aws::String>
80 DescribeRuleResult& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
82
84
87 inline RuleState GetState() const { return m_state; }
88 inline void SetState(RuleState value) { m_stateHasBeenSet = true; m_state = value; }
89 inline DescribeRuleResult& WithState(RuleState value) { SetState(value); return *this;}
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 DescribeRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
107 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
108 template<typename RoleArnT = Aws::String>
109 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
110 template<typename RoleArnT = Aws::String>
111 DescribeRuleResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
113
115
120 inline const Aws::String& GetManagedBy() const { return m_managedBy; }
121 template<typename ManagedByT = Aws::String>
122 void SetManagedBy(ManagedByT&& value) { m_managedByHasBeenSet = true; m_managedBy = std::forward<ManagedByT>(value); }
123 template<typename ManagedByT = Aws::String>
124 DescribeRuleResult& WithManagedBy(ManagedByT&& value) { SetManagedBy(std::forward<ManagedByT>(value)); return *this;}
126
128
131 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
132 template<typename EventBusNameT = Aws::String>
133 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::forward<EventBusNameT>(value); }
134 template<typename EventBusNameT = Aws::String>
135 DescribeRuleResult& WithEventBusName(EventBusNameT&& value) { SetEventBusName(std::forward<EventBusNameT>(value)); return *this;}
137
139
146 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
147 template<typename CreatedByT = Aws::String>
148 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
149 template<typename CreatedByT = Aws::String>
150 DescribeRuleResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
152
154
155 inline const Aws::String& GetRequestId() const { return m_requestId; }
156 template<typename RequestIdT = Aws::String>
157 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
158 template<typename RequestIdT = Aws::String>
159 DescribeRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
161 private:
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 Aws::String m_arn;
167 bool m_arnHasBeenSet = false;
168
169 Aws::String m_eventPattern;
170 bool m_eventPatternHasBeenSet = false;
171
172 Aws::String m_scheduleExpression;
173 bool m_scheduleExpressionHasBeenSet = false;
174
176 bool m_stateHasBeenSet = false;
177
178 Aws::String m_description;
179 bool m_descriptionHasBeenSet = false;
180
181 Aws::String m_roleArn;
182 bool m_roleArnHasBeenSet = false;
183
184 Aws::String m_managedBy;
185 bool m_managedByHasBeenSet = false;
186
187 Aws::String m_eventBusName;
188 bool m_eventBusNameHasBeenSet = false;
189
190 Aws::String m_createdBy;
191 bool m_createdByHasBeenSet = false;
192
193 Aws::String m_requestId;
194 bool m_requestIdHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace EventBridge
199} // 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