AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SNSTopicPublishAction.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 SNSTopicPublishAction();
39 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
47 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
48 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
49 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
50 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
51 inline SNSTopicPublishAction& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
52 inline SNSTopicPublishAction& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
53 inline SNSTopicPublishAction& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
55
57
61 inline const Payload& GetPayload() const{ return m_payload; }
62 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
63 inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
64 inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
65 inline SNSTopicPublishAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
66 inline SNSTopicPublishAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_targetArn;
71 bool m_targetArnHasBeenSet = false;
72
73 Payload m_payload;
74 bool m_payloadHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace IoTEvents
79} // namespace Aws
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTS_API SNSTopicPublishAction & operator=(Aws::Utils::Json::JsonView jsonValue)
SNSTopicPublishAction & WithTargetArn(const char *value)
SNSTopicPublishAction & WithPayload(const Payload &value)
AWS_IOTEVENTS_API SNSTopicPublishAction(Aws::Utils::Json::JsonView jsonValue)
SNSTopicPublishAction & WithTargetArn(const Aws::String &value)
SNSTopicPublishAction & WithPayload(Payload &&value)
SNSTopicPublishAction & WithTargetArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue