AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
SnsAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/MessageFormat.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29class SnsAction {
30 public:
31 AWS_IOT_API SnsAction() = default;
32 AWS_IOT_API SnsAction(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
41 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
42 template <typename TargetArnT = Aws::String>
43 void SetTargetArn(TargetArnT&& value) {
44 m_targetArnHasBeenSet = true;
45 m_targetArn = std::forward<TargetArnT>(value);
46 }
47 template <typename TargetArnT = Aws::String>
48 SnsAction& WithTargetArn(TargetArnT&& value) {
49 SetTargetArn(std::forward<TargetArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
59 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
60 template <typename RoleArnT = Aws::String>
61 void SetRoleArn(RoleArnT&& value) {
62 m_roleArnHasBeenSet = true;
63 m_roleArn = std::forward<RoleArnT>(value);
64 }
65 template <typename RoleArnT = Aws::String>
66 SnsAction& WithRoleArn(RoleArnT&& value) {
67 SetRoleArn(std::forward<RoleArnT>(value));
68 return *this;
69 }
71
73
82 inline MessageFormat GetMessageFormat() const { return m_messageFormat; }
83 inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
84 inline void SetMessageFormat(MessageFormat value) {
85 m_messageFormatHasBeenSet = true;
86 m_messageFormat = value;
87 }
89 SetMessageFormat(value);
90 return *this;
91 }
93 private:
94 Aws::String m_targetArn;
95
96 Aws::String m_roleArn;
97
99 bool m_targetArnHasBeenSet = false;
100 bool m_roleArnHasBeenSet = false;
101 bool m_messageFormatHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace IoT
106} // namespace Aws
void SetTargetArn(TargetArnT &&value)
Definition SnsAction.h:43
bool RoleArnHasBeenSet() const
Definition SnsAction.h:59
SnsAction & WithMessageFormat(MessageFormat value)
Definition SnsAction.h:88
bool MessageFormatHasBeenSet() const
Definition SnsAction.h:83
const Aws::String & GetRoleArn() const
Definition SnsAction.h:58
bool TargetArnHasBeenSet() const
Definition SnsAction.h:41
MessageFormat GetMessageFormat() const
Definition SnsAction.h:82
AWS_IOT_API SnsAction()=default
AWS_IOT_API SnsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
SnsAction & WithTargetArn(TargetArnT &&value)
Definition SnsAction.h:48
const Aws::String & GetTargetArn() const
Definition SnsAction.h:40
AWS_IOT_API SnsAction(Aws::Utils::Json::JsonView jsonValue)
void SetMessageFormat(MessageFormat value)
Definition SnsAction.h:84
SnsAction & WithRoleArn(RoleArnT &&value)
Definition SnsAction.h:66
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoleArn(RoleArnT &&value)
Definition SnsAction.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue