AWS SDK for C++  0.12.9
AWS SDK for C++
SnsAction.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace IoT
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  SnsAction();
41  SnsAction(const Aws::Utils::Json::JsonValue& jsonValue);
42  SnsAction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
49 
53  inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
54 
58  inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
59 
63  inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
64 
68  inline SnsAction& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
69 
73  inline SnsAction& WithTargetArn(Aws::String&& value) { SetTargetArn(value); return *this;}
74 
78  inline SnsAction& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
79 
83  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
84 
88  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
89 
93  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
94 
98  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
99 
103  inline SnsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
104 
108  inline SnsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
109 
113  inline SnsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
114 
124  inline const MessageFormat& GetMessageFormat() const{ return m_messageFormat; }
125 
135  inline void SetMessageFormat(const MessageFormat& value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
136 
146  inline void SetMessageFormat(MessageFormat&& value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
147 
157  inline SnsAction& WithMessageFormat(const MessageFormat& value) { SetMessageFormat(value); return *this;}
158 
168  inline SnsAction& WithMessageFormat(MessageFormat&& value) { SetMessageFormat(value); return *this;}
169 
170  private:
171  Aws::String m_targetArn;
172  bool m_targetArnHasBeenSet;
173  Aws::String m_roleArn;
174  bool m_roleArnHasBeenSet;
175  MessageFormat m_messageFormat;
176  bool m_messageFormatHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace IoT
181 } // namespace Aws
SnsAction & WithRoleArn(const char *value)
Definition: SnsAction.h:113
void SetTargetArn(const char *value)
Definition: SnsAction.h:63
void SetTargetArn(Aws::String &&value)
Definition: SnsAction.h:58
const MessageFormat & GetMessageFormat() const
Definition: SnsAction.h:124
SnsAction & WithTargetArn(Aws::String &&value)
Definition: SnsAction.h:73
SnsAction & WithTargetArn(const char *value)
Definition: SnsAction.h:78
void SetMessageFormat(const MessageFormat &value)
Definition: SnsAction.h:135
const Aws::String & GetRoleArn() const
Definition: SnsAction.h:83
void SetTargetArn(const Aws::String &value)
Definition: SnsAction.h:53
void SetRoleArn(const Aws::String &value)
Definition: SnsAction.h:88
SnsAction & WithTargetArn(const Aws::String &value)
Definition: SnsAction.h:68
SnsAction & WithMessageFormat(MessageFormat &&value)
Definition: SnsAction.h:168
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
SnsAction & WithRoleArn(const Aws::String &value)
Definition: SnsAction.h:103
void SetRoleArn(Aws::String &&value)
Definition: SnsAction.h:93
SnsAction & WithRoleArn(Aws::String &&value)
Definition: SnsAction.h:108
void SetRoleArn(const char *value)
Definition: SnsAction.h:98
const Aws::String & GetTargetArn() const
Definition: SnsAction.h:48
SnsAction & WithMessageFormat(const MessageFormat &value)
Definition: SnsAction.h:157
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetMessageFormat(MessageFormat &&value)
Definition: SnsAction.h:146
JSON (JavaScript Object Notation).