AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TargetArnT = Aws::String>
49 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
50 template<typename TargetArnT = Aws::String>
51 SNSTopicPublishAction& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
53
55
59 inline const Payload& GetPayload() const { return m_payload; }
60 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
61 template<typename PayloadT = Payload>
62 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
63 template<typename PayloadT = Payload>
64 SNSTopicPublishAction& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
66 private:
67
68 Aws::String m_targetArn;
69 bool m_targetArnHasBeenSet = false;
70
71 Payload m_payload;
72 bool m_payloadHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoTEvents
77} // namespace Aws
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTS_API SNSTopicPublishAction & operator=(Aws::Utils::Json::JsonView jsonValue)
SNSTopicPublishAction & WithPayload(PayloadT &&value)
AWS_IOTEVENTS_API SNSTopicPublishAction()=default
AWS_IOTEVENTS_API SNSTopicPublishAction(Aws::Utils::Json::JsonView jsonValue)
SNSTopicPublishAction & WithTargetArn(TargetArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue