AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeRuleResult.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/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 CloudWatchEvents
25{
26namespace Model
27{
29 {
30 public:
31 AWS_CLOUDWATCHEVENTS_API DescribeRuleResult();
34
35
37
40 inline const Aws::String& GetName() const{ return m_name; }
41 inline void SetName(const Aws::String& value) { m_name = value; }
42 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
43 inline void SetName(const char* value) { m_name.assign(value); }
44 inline DescribeRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
45 inline DescribeRuleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
46 inline DescribeRuleResult& WithName(const char* value) { SetName(value); return *this;}
48
50
53 inline const Aws::String& GetArn() const{ return m_arn; }
54 inline void SetArn(const Aws::String& value) { m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arn.assign(value); }
57 inline DescribeRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline DescribeRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline DescribeRuleResult& WithArn(const char* value) { SetArn(value); return *this;}
61
63
68 inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
69 inline void SetEventPattern(const Aws::String& value) { m_eventPattern = value; }
70 inline void SetEventPattern(Aws::String&& value) { m_eventPattern = std::move(value); }
71 inline void SetEventPattern(const char* value) { m_eventPattern.assign(value); }
72 inline DescribeRuleResult& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
73 inline DescribeRuleResult& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
74 inline DescribeRuleResult& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
76
78
82 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
83 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpression = value; }
84 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpression = std::move(value); }
85 inline void SetScheduleExpression(const char* value) { m_scheduleExpression.assign(value); }
86 inline DescribeRuleResult& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
87 inline DescribeRuleResult& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
88 inline DescribeRuleResult& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
90
92
95 inline const RuleState& GetState() const{ return m_state; }
96 inline void SetState(const RuleState& value) { m_state = value; }
97 inline void SetState(RuleState&& value) { m_state = std::move(value); }
98 inline DescribeRuleResult& WithState(const RuleState& value) { SetState(value); return *this;}
99 inline DescribeRuleResult& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
101
103
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline void SetDescription(const Aws::String& value) { m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_description.assign(value); }
110 inline DescribeRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline DescribeRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline DescribeRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
119 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
120 inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
121 inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); }
122 inline void SetRoleArn(const char* value) { m_roleArn.assign(value); }
123 inline DescribeRuleResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
124 inline DescribeRuleResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
125 inline DescribeRuleResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
127
129
134 inline const Aws::String& GetManagedBy() const{ return m_managedBy; }
135 inline void SetManagedBy(const Aws::String& value) { m_managedBy = value; }
136 inline void SetManagedBy(Aws::String&& value) { m_managedBy = std::move(value); }
137 inline void SetManagedBy(const char* value) { m_managedBy.assign(value); }
138 inline DescribeRuleResult& WithManagedBy(const Aws::String& value) { SetManagedBy(value); return *this;}
139 inline DescribeRuleResult& WithManagedBy(Aws::String&& value) { SetManagedBy(std::move(value)); return *this;}
140 inline DescribeRuleResult& WithManagedBy(const char* value) { SetManagedBy(value); return *this;}
142
144
147 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
148 inline void SetEventBusName(const Aws::String& value) { m_eventBusName = value; }
149 inline void SetEventBusName(Aws::String&& value) { m_eventBusName = std::move(value); }
150 inline void SetEventBusName(const char* value) { m_eventBusName.assign(value); }
151 inline DescribeRuleResult& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
152 inline DescribeRuleResult& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
153 inline DescribeRuleResult& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
155
157
164 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
165 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
166 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
167 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
168 inline DescribeRuleResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
169 inline DescribeRuleResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
170 inline DescribeRuleResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
172
174
175 inline const Aws::String& GetRequestId() const{ return m_requestId; }
176 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
177 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
178 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
179 inline DescribeRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
180 inline DescribeRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
181 inline DescribeRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
183 private:
184
185 Aws::String m_name;
186
187 Aws::String m_arn;
188
189 Aws::String m_eventPattern;
190
191 Aws::String m_scheduleExpression;
192
193 RuleState m_state;
194
195 Aws::String m_description;
196
197 Aws::String m_roleArn;
198
199 Aws::String m_managedBy;
200
201 Aws::String m_eventBusName;
202
203 Aws::String m_createdBy;
204
205 Aws::String m_requestId;
206 };
207
208} // namespace Model
209} // namespace CloudWatchEvents
210} // namespace Aws
DescribeRuleResult & WithArn(const Aws::String &value)
DescribeRuleResult & WithDescription(const Aws::String &value)
DescribeRuleResult & WithRequestId(Aws::String &&value)
void SetScheduleExpression(const Aws::String &value)
DescribeRuleResult & WithEventPattern(const char *value)
DescribeRuleResult & WithCreatedBy(const char *value)
DescribeRuleResult & WithArn(const char *value)
DescribeRuleResult & WithRequestId(const char *value)
DescribeRuleResult & WithEventBusName(Aws::String &&value)
DescribeRuleResult & WithEventPattern(const Aws::String &value)
DescribeRuleResult & WithRoleArn(const Aws::String &value)
DescribeRuleResult & WithEventBusName(const Aws::String &value)
DescribeRuleResult & WithManagedBy(Aws::String &&value)
DescribeRuleResult & WithRoleArn(const char *value)
DescribeRuleResult & WithArn(Aws::String &&value)
DescribeRuleResult & WithManagedBy(const Aws::String &value)
DescribeRuleResult & WithDescription(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API DescribeRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRuleResult & WithName(const char *value)
DescribeRuleResult & WithCreatedBy(const Aws::String &value)
DescribeRuleResult & WithName(Aws::String &&value)
DescribeRuleResult & WithCreatedBy(Aws::String &&value)
DescribeRuleResult & WithState(const RuleState &value)
AWS_CLOUDWATCHEVENTS_API DescribeRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRuleResult & WithScheduleExpression(const char *value)
DescribeRuleResult & WithEventPattern(Aws::String &&value)
DescribeRuleResult & WithState(RuleState &&value)
DescribeRuleResult & WithRequestId(const Aws::String &value)
DescribeRuleResult & WithEventBusName(const char *value)
DescribeRuleResult & WithManagedBy(const char *value)
DescribeRuleResult & WithDescription(const char *value)
DescribeRuleResult & WithName(const Aws::String &value)
DescribeRuleResult & WithScheduleExpression(const Aws::String &value)
DescribeRuleResult & WithScheduleExpression(Aws::String &&value)
DescribeRuleResult & WithRoleArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue