AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SqsAction.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/Payload.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTEVENTS_API SqsAction();
37 AWS_IOTEVENTS_API SqsAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTS_API SqsAction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
47 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
48 inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
49 inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
50 inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
51 inline SqsAction& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
52 inline SqsAction& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
53 inline SqsAction& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
55
57
61 inline bool GetUseBase64() const{ return m_useBase64; }
62 inline bool UseBase64HasBeenSet() const { return m_useBase64HasBeenSet; }
63 inline void SetUseBase64(bool value) { m_useBase64HasBeenSet = true; m_useBase64 = value; }
64 inline SqsAction& WithUseBase64(bool value) { SetUseBase64(value); return *this;}
66
68
72 inline const Payload& GetPayload() const{ return m_payload; }
73 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
74 inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
75 inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
76 inline SqsAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
77 inline SqsAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_queueUrl;
82 bool m_queueUrlHasBeenSet = false;
83
84 bool m_useBase64;
85 bool m_useBase64HasBeenSet = false;
86
87 Payload m_payload;
88 bool m_payloadHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace IoTEvents
93} // namespace Aws
SqsAction & WithQueueUrl(Aws::String &&value)
Definition SqsAction.h:52
SqsAction & WithPayload(const Payload &value)
Definition SqsAction.h:76
AWS_IOTEVENTS_API SqsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Payload & GetPayload() const
Definition SqsAction.h:72
const Aws::String & GetQueueUrl() const
Definition SqsAction.h:46
AWS_IOTEVENTS_API SqsAction()
void SetUseBase64(bool value)
Definition SqsAction.h:63
SqsAction & WithQueueUrl(const char *value)
Definition SqsAction.h:53
void SetPayload(Payload &&value)
Definition SqsAction.h:75
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetQueueUrl(const Aws::String &value)
Definition SqsAction.h:48
void SetQueueUrl(const char *value)
Definition SqsAction.h:50
void SetQueueUrl(Aws::String &&value)
Definition SqsAction.h:49
SqsAction & WithUseBase64(bool value)
Definition SqsAction.h:64
SqsAction & WithQueueUrl(const Aws::String &value)
Definition SqsAction.h:51
SqsAction & WithPayload(Payload &&value)
Definition SqsAction.h:77
void SetPayload(const Payload &value)
Definition SqsAction.h:74
AWS_IOTEVENTS_API SqsAction(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue