AWS SDK for C++  0.12.9
AWS SDK for C++
SqsAction.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>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace IoT
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  SqsAction();
40  SqsAction(const Aws::Utils::Json::JsonValue& jsonValue);
41  SqsAction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
48 
52  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
53 
57  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
58 
62  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
63 
67  inline SqsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
68 
72  inline SqsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
73 
77  inline SqsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
78 
82  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
83 
87  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
88 
92  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
93 
97  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
98 
102  inline SqsAction& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
103 
107  inline SqsAction& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
108 
112  inline SqsAction& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
113 
117  inline bool GetUseBase64() const{ return m_useBase64; }
118 
122  inline void SetUseBase64(bool value) { m_useBase64HasBeenSet = true; m_useBase64 = value; }
123 
127  inline SqsAction& WithUseBase64(bool value) { SetUseBase64(value); return *this;}
128 
129  private:
130  Aws::String m_roleArn;
131  bool m_roleArnHasBeenSet;
132  Aws::String m_queueUrl;
133  bool m_queueUrlHasBeenSet;
134  bool m_useBase64;
135  bool m_useBase64HasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace IoT
140 } // namespace Aws
SqsAction & WithQueueUrl(Aws::String &&value)
Definition: SqsAction.h:107
void SetRoleArn(const Aws::String &value)
Definition: SqsAction.h:52
SqsAction & WithQueueUrl(const Aws::String &value)
Definition: SqsAction.h:102
SqsAction & WithUseBase64(bool value)
Definition: SqsAction.h:127
const Aws::String & GetQueueUrl() const
Definition: SqsAction.h:82
SqsAction & WithQueueUrl(const char *value)
Definition: SqsAction.h:112
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
const Aws::String & GetRoleArn() const
Definition: SqsAction.h:47
void SetQueueUrl(Aws::String &&value)
Definition: SqsAction.h:92
void SetQueueUrl(const char *value)
Definition: SqsAction.h:97
SqsAction & WithRoleArn(const char *value)
Definition: SqsAction.h:77
void SetUseBase64(bool value)
Definition: SqsAction.h:122
void SetRoleArn(Aws::String &&value)
Definition: SqsAction.h:57
void SetRoleArn(const char *value)
Definition: SqsAction.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SqsAction & WithRoleArn(const Aws::String &value)
Definition: SqsAction.h:67
bool GetUseBase64() const
Definition: SqsAction.h:117
void SetQueueUrl(const Aws::String &value)
Definition: SqsAction.h:87
SqsAction & WithRoleArn(Aws::String &&value)
Definition: SqsAction.h:72
JSON (JavaScript Object Notation).