AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SnsAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/MessageFormat.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 IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API SnsAction() = default;
37 AWS_IOT_API SnsAction(Aws::Utils::Json::JsonView jsonValue);
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 SnsAction& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
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) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
62 template<typename RoleArnT = Aws::String>
63 SnsAction& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
65
67
76 inline MessageFormat GetMessageFormat() const { return m_messageFormat; }
77 inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
78 inline void SetMessageFormat(MessageFormat value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
79 inline SnsAction& WithMessageFormat(MessageFormat value) { SetMessageFormat(value); return *this;}
81 private:
82
83 Aws::String m_targetArn;
84 bool m_targetArnHasBeenSet = false;
85
86 Aws::String m_roleArn;
87 bool m_roleArnHasBeenSet = false;
88
90 bool m_messageFormatHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace IoT
95} // namespace Aws
void SetTargetArn(TargetArnT &&value)
Definition SnsAction.h:49
bool RoleArnHasBeenSet() const
Definition SnsAction.h:59
SnsAction & WithMessageFormat(MessageFormat value)
Definition SnsAction.h:79
bool MessageFormatHasBeenSet() const
Definition SnsAction.h:77
const Aws::String & GetRoleArn() const
Definition SnsAction.h:58
bool TargetArnHasBeenSet() const
Definition SnsAction.h:47
MessageFormat GetMessageFormat() const
Definition SnsAction.h:76
AWS_IOT_API SnsAction()=default
AWS_IOT_API SnsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
SnsAction & WithTargetArn(TargetArnT &&value)
Definition SnsAction.h:51
const Aws::String & GetTargetArn() const
Definition SnsAction.h:46
AWS_IOT_API SnsAction(Aws::Utils::Json::JsonView jsonValue)
void SetMessageFormat(MessageFormat value)
Definition SnsAction.h:78
SnsAction & WithRoleArn(RoleArnT &&value)
Definition SnsAction.h:63
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