AWS SDK for C++  0.14.3
AWS SDK for C++
ReplaceTopicRuleRequest.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
16 #include <aws/iot/IoT_EXPORTS.h>
17 #include <aws/iot/IoTRequest.h>
20 
21 namespace Aws
22 {
23 namespace IoT
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
41 
45  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
46 
50  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
51 
55  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
56 
60  inline ReplaceTopicRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
61 
65  inline ReplaceTopicRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(value); return *this;}
66 
70  inline ReplaceTopicRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
71 
75  inline const TopicRulePayload& GetTopicRulePayload() const{ return m_topicRulePayload; }
76 
80  inline void SetTopicRulePayload(const TopicRulePayload& value) { m_topicRulePayloadHasBeenSet = true; m_topicRulePayload = value; }
81 
85  inline void SetTopicRulePayload(TopicRulePayload&& value) { m_topicRulePayloadHasBeenSet = true; m_topicRulePayload = value; }
86 
90  inline ReplaceTopicRuleRequest& WithTopicRulePayload(const TopicRulePayload& value) { SetTopicRulePayload(value); return *this;}
91 
95  inline ReplaceTopicRuleRequest& WithTopicRulePayload(TopicRulePayload&& value) { SetTopicRulePayload(value); return *this;}
96 
97  private:
98  Aws::String m_ruleName;
99  bool m_ruleNameHasBeenSet;
100  TopicRulePayload m_topicRulePayload;
101  bool m_topicRulePayloadHasBeenSet;
102  };
103 
104 } // namespace Model
105 } // namespace IoT
106 } // namespace Aws
ReplaceTopicRuleRequest & WithRuleName(Aws::String &&value)
ReplaceTopicRuleRequest & WithRuleName(const Aws::String &value)
ReplaceTopicRuleRequest & WithTopicRulePayload(TopicRulePayload &&value)
void SetTopicRulePayload(const TopicRulePayload &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
void SetTopicRulePayload(TopicRulePayload &&value)
void SetRuleName(const Aws::String &value)
const TopicRulePayload & GetTopicRulePayload() const
ReplaceTopicRuleRequest & WithTopicRulePayload(const TopicRulePayload &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReplaceTopicRuleRequest & WithRuleName(const char *value)
JSON (JavaScript Object Notation).