AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeRuleResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace CloudWatchEvents
33 {
34 namespace Model
35 {
40  {
41  public:
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_name = value; }
60 
64  inline void SetName(const char* value) { m_name.assign(value); }
65 
69  inline DescribeRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline DescribeRuleResult& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline DescribeRuleResult& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const Aws::String& GetArn() const{ return m_arn; }
85 
89  inline void SetArn(const Aws::String& value) { m_arn = value; }
90 
94  inline void SetArn(Aws::String&& value) { m_arn = value; }
95 
99  inline void SetArn(const char* value) { m_arn.assign(value); }
100 
104  inline DescribeRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
105 
109  inline DescribeRuleResult& WithArn(Aws::String&& value) { SetArn(value); return *this;}
110 
114  inline DescribeRuleResult& WithArn(const char* value) { SetArn(value); return *this;}
115 
119  inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
120 
124  inline void SetEventPattern(const Aws::String& value) { m_eventPattern = value; }
125 
129  inline void SetEventPattern(Aws::String&& value) { m_eventPattern = value; }
130 
134  inline void SetEventPattern(const char* value) { m_eventPattern.assign(value); }
135 
139  inline DescribeRuleResult& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
140 
144  inline DescribeRuleResult& WithEventPattern(Aws::String&& value) { SetEventPattern(value); return *this;}
145 
149  inline DescribeRuleResult& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
150 
155  inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
156 
161  inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpression = value; }
162 
167  inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpression = value; }
168 
173  inline void SetScheduleExpression(const char* value) { m_scheduleExpression.assign(value); }
174 
179  inline DescribeRuleResult& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
180 
185  inline DescribeRuleResult& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(value); return *this;}
186 
191  inline DescribeRuleResult& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
192 
196  inline const RuleState& GetState() const{ return m_state; }
197 
201  inline void SetState(const RuleState& value) { m_state = value; }
202 
206  inline void SetState(RuleState&& value) { m_state = value; }
207 
211  inline DescribeRuleResult& WithState(const RuleState& value) { SetState(value); return *this;}
212 
216  inline DescribeRuleResult& WithState(RuleState&& value) { SetState(value); return *this;}
217 
221  inline const Aws::String& GetDescription() const{ return m_description; }
222 
226  inline void SetDescription(const Aws::String& value) { m_description = value; }
227 
231  inline void SetDescription(Aws::String&& value) { m_description = value; }
232 
236  inline void SetDescription(const char* value) { m_description.assign(value); }
237 
241  inline DescribeRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
242 
246  inline DescribeRuleResult& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
247 
251  inline DescribeRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
252 
256  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
257 
261  inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
262 
266  inline void SetRoleArn(Aws::String&& value) { m_roleArn = value; }
267 
271  inline void SetRoleArn(const char* value) { m_roleArn.assign(value); }
272 
276  inline DescribeRuleResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
277 
281  inline DescribeRuleResult& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
282 
286  inline DescribeRuleResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
287 
288  private:
289  Aws::String m_name;
290  Aws::String m_arn;
291  Aws::String m_eventPattern;
292  Aws::String m_scheduleExpression;
293  RuleState m_state;
294  Aws::String m_description;
295  Aws::String m_roleArn;
296  };
297 
298 } // namespace Model
299 } // namespace CloudWatchEvents
300 } // namespace Aws
#define AWS_CLOUDWATCHEVENTS_API
DescribeRuleResult & WithEventPattern(const char *value)
DescribeRuleResult & WithArn(const char *value)
DescribeRuleResult & WithRoleArn(const Aws::String &value)
DescribeRuleResult & WithArn(const Aws::String &value)
DescribeRuleResult & WithScheduleExpression(Aws::String &&value)
DescribeRuleResult & WithName(const char *value)
DescribeRuleResult & WithDescription(const char *value)
DescribeRuleResult & WithEventPattern(Aws::String &&value)
DescribeRuleResult & WithName(const Aws::String &value)
DescribeRuleResult & WithDescription(Aws::String &&value)
DescribeRuleResult & WithScheduleExpression(const char *value)
DescribeRuleResult & WithArn(Aws::String &&value)
DescribeRuleResult & WithState(RuleState &&value)
DescribeRuleResult & WithRoleArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeRuleResult & WithRoleArn(Aws::String &&value)
DescribeRuleResult & WithDescription(const Aws::String &value)
DescribeRuleResult & WithScheduleExpression(const Aws::String &value)
DescribeRuleResult & WithState(const RuleState &value)
DescribeRuleResult & WithName(Aws::String &&value)
DescribeRuleResult & WithEventPattern(const Aws::String &value)
void SetScheduleExpression(const Aws::String &value)
JSON (JavaScript Object Notation).