AWS SDK for C++  0.14.3
AWS SDK for C++
PutRuleRequest.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
20 
21 namespace Aws
22 {
23 namespace CloudWatchEvents
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 
52  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 
62  inline PutRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 
67  inline PutRuleRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
68 
72  inline PutRuleRequest& WithName(const char* value) { SetName(value); return *this;}
73 
78  inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
79 
84  inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
85 
90  inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
91 
96  inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
97 
102  inline PutRuleRequest& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
103 
108  inline PutRuleRequest& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(value); return *this;}
109 
114  inline PutRuleRequest& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
115 
119  inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
120 
124  inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
125 
129  inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
130 
134  inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
135 
139  inline PutRuleRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
140 
144  inline PutRuleRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(value); return *this;}
145 
149  inline PutRuleRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
150 
154  inline const RuleState& GetState() const{ return m_state; }
155 
159  inline void SetState(const RuleState& value) { m_stateHasBeenSet = true; m_state = value; }
160 
164  inline void SetState(RuleState&& value) { m_stateHasBeenSet = true; m_state = value; }
165 
169  inline PutRuleRequest& WithState(const RuleState& value) { SetState(value); return *this;}
170 
174  inline PutRuleRequest& WithState(RuleState&& value) { SetState(value); return *this;}
175 
179  inline const Aws::String& GetDescription() const{ return m_description; }
180 
184  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
185 
189  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
190 
194  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
195 
199  inline PutRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
200 
204  inline PutRuleRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
205 
209  inline PutRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
210 
214  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
215 
219  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
220 
224  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
225 
229  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
230 
234  inline PutRuleRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
235 
239  inline PutRuleRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
240 
244  inline PutRuleRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
245 
246  private:
247  Aws::String m_name;
248  bool m_nameHasBeenSet;
249  Aws::String m_scheduleExpression;
250  bool m_scheduleExpressionHasBeenSet;
251  Aws::String m_eventPattern;
252  bool m_eventPatternHasBeenSet;
253  RuleState m_state;
254  bool m_stateHasBeenSet;
255  Aws::String m_description;
256  bool m_descriptionHasBeenSet;
257  Aws::String m_roleArn;
258  bool m_roleArnHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace CloudWatchEvents
263 } // namespace Aws
PutRuleRequest & WithRoleArn(const Aws::String &value)
#define AWS_CLOUDWATCHEVENTS_API
void SetDescription(const Aws::String &value)
void SetScheduleExpression(const Aws::String &value)
PutRuleRequest & WithState(const RuleState &value)
PutRuleRequest & WithDescription(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PutRuleRequest & WithScheduleExpression(Aws::String &&value)
PutRuleRequest & WithRoleArn(Aws::String &&value)
PutRuleRequest & WithEventPattern(Aws::String &&value)
const Aws::String & GetEventPattern() const
PutRuleRequest & WithRoleArn(const char *value)
void SetEventPattern(const Aws::String &value)
void SetName(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
PutRuleRequest & WithName(const char *value)
PutRuleRequest & WithName(const Aws::String &value)
const Aws::String & GetScheduleExpression() const
const Aws::String & GetName() const
const Aws::String & GetDescription() const
PutRuleRequest & WithState(RuleState &&value)
PutRuleRequest & WithScheduleExpression(const Aws::String &value)
void SetScheduleExpression(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutRuleRequest & WithEventPattern(const char *value)
PutRuleRequest & WithDescription(Aws::String &&value)
PutRuleRequest & WithEventPattern(const Aws::String &value)
PutRuleRequest & WithName(Aws::String &&value)
const Aws::String & GetRoleArn() const
PutRuleRequest & WithDescription(const char *value)
JSON (JavaScript Object Notation).
PutRuleRequest & WithScheduleExpression(const char *value)