AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 SnsAction& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
52 inline SnsAction& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
53 inline SnsAction& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
55
57
60 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
61 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
62 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
63 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
64 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 inline SnsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
66 inline SnsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
67 inline SnsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
69
71
80 inline const MessageFormat& GetMessageFormat() const{ return m_messageFormat; }
81 inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
82 inline void SetMessageFormat(const MessageFormat& value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
83 inline void SetMessageFormat(MessageFormat&& value) { m_messageFormatHasBeenSet = true; m_messageFormat = std::move(value); }
84 inline SnsAction& WithMessageFormat(const MessageFormat& value) { SetMessageFormat(value); return *this;}
85 inline SnsAction& WithMessageFormat(MessageFormat&& value) { SetMessageFormat(std::move(value)); return *this;}
87 private:
88
89 Aws::String m_targetArn;
90 bool m_targetArnHasBeenSet = false;
91
92 Aws::String m_roleArn;
93 bool m_roleArnHasBeenSet = false;
94
95 MessageFormat m_messageFormat;
96 bool m_messageFormatHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoT
101} // namespace Aws
void SetTargetArn(const Aws::String &value)
Definition SnsAction.h:48
bool RoleArnHasBeenSet() const
Definition SnsAction.h:61
SnsAction & WithTargetArn(Aws::String &&value)
Definition SnsAction.h:52
void SetRoleArn(const char *value)
Definition SnsAction.h:64
SnsAction & WithRoleArn(const Aws::String &value)
Definition SnsAction.h:65
SnsAction & WithTargetArn(const Aws::String &value)
Definition SnsAction.h:51
bool MessageFormatHasBeenSet() const
Definition SnsAction.h:81
SnsAction & WithMessageFormat(MessageFormat &&value)
Definition SnsAction.h:85
const Aws::String & GetRoleArn() const
Definition SnsAction.h:60
void SetMessageFormat(MessageFormat &&value)
Definition SnsAction.h:83
SnsAction & WithTargetArn(const char *value)
Definition SnsAction.h:53
void SetRoleArn(const Aws::String &value)
Definition SnsAction.h:62
void SetTargetArn(Aws::String &&value)
Definition SnsAction.h:49
const MessageFormat & GetMessageFormat() const
Definition SnsAction.h:80
void SetRoleArn(Aws::String &&value)
Definition SnsAction.h:63
SnsAction & WithRoleArn(Aws::String &&value)
Definition SnsAction.h:66
bool TargetArnHasBeenSet() const
Definition SnsAction.h:47
AWS_IOT_API SnsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
SnsAction & WithMessageFormat(const MessageFormat &value)
Definition SnsAction.h:84
const Aws::String & GetTargetArn() const
Definition SnsAction.h:46
AWS_IOT_API SnsAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
SnsAction & WithRoleArn(const char *value)
Definition SnsAction.h:67
void SetMessageFormat(const MessageFormat &value)
Definition SnsAction.h:82
void SetTargetArn(const char *value)
Definition SnsAction.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue