AWS SDK for C++  1.9.155
AWS SDK for C++
SnsAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
46 
50  inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
51 
55  inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
56 
60  inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
61 
65  inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
66 
70  inline SnsAction& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
71 
75  inline SnsAction& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
76 
80  inline SnsAction& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
81 
82 
86  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
87 
91  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
92 
96  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
97 
101  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
102 
106  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
107 
111  inline SnsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
112 
116  inline SnsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
117 
121  inline SnsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
122 
123 
133  inline const MessageFormat& GetMessageFormat() const{ return m_messageFormat; }
134 
144  inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
145 
155  inline void SetMessageFormat(const MessageFormat& value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
156 
166  inline void SetMessageFormat(MessageFormat&& value) { m_messageFormatHasBeenSet = true; m_messageFormat = std::move(value); }
167 
177  inline SnsAction& WithMessageFormat(const MessageFormat& value) { SetMessageFormat(value); return *this;}
178 
188  inline SnsAction& WithMessageFormat(MessageFormat&& value) { SetMessageFormat(std::move(value)); return *this;}
189 
190  private:
191 
192  Aws::String m_targetArn;
193  bool m_targetArnHasBeenSet;
194 
195  Aws::String m_roleArn;
196  bool m_roleArnHasBeenSet;
197 
198  MessageFormat m_messageFormat;
199  bool m_messageFormatHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace IoT
204 } // namespace Aws
Aws::IoT::Model::SnsAction::WithTargetArn
SnsAction & WithTargetArn(const char *value)
Definition: SnsAction.h:80
Aws::IoT::Model::SnsAction::SetRoleArn
void SetRoleArn(const char *value)
Definition: SnsAction.h:106
Aws::IoT::Model::SnsAction::GetTargetArn
const Aws::String & GetTargetArn() const
Definition: SnsAction.h:45
Aws::IoT::Model::SnsAction
Definition: SnsAction.h:34
Aws::IoT::Model::SnsAction::TargetArnHasBeenSet
bool TargetArnHasBeenSet() const
Definition: SnsAction.h:50
Aws::IoT::Model::SnsAction::SnsAction
SnsAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::SnsAction::SetTargetArn
void SetTargetArn(Aws::String &&value)
Definition: SnsAction.h:60
Aws::IoT::Model::SnsAction::operator=
SnsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::SnsAction::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: SnsAction.h:101
Aws::IoT::Model::SnsAction::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: SnsAction.h:86
MessageFormat.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::SnsAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::SnsAction::GetMessageFormat
const MessageFormat & GetMessageFormat() const
Definition: SnsAction.h:133
Aws::IoT::Model::SnsAction::SetMessageFormat
void SetMessageFormat(const MessageFormat &value)
Definition: SnsAction.h:155
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::SnsAction::SetMessageFormat
void SetMessageFormat(MessageFormat &&value)
Definition: SnsAction.h:166
Aws::IoT::Model::SnsAction::SnsAction
SnsAction()
Aws::IoT::Model::SnsAction::WithRoleArn
SnsAction & WithRoleArn(Aws::String &&value)
Definition: SnsAction.h:116
Aws::IoT::Model::SnsAction::WithTargetArn
SnsAction & WithTargetArn(Aws::String &&value)
Definition: SnsAction.h:75
Aws::IoT::Model::SnsAction::SetTargetArn
void SetTargetArn(const char *value)
Definition: SnsAction.h:65
Aws::IoT::Model::SnsAction::WithRoleArn
SnsAction & WithRoleArn(const Aws::String &value)
Definition: SnsAction.h:111
Aws::IoT::Model::SnsAction::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: SnsAction.h:96
Aws::IoT::Model::SnsAction::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: SnsAction.h:91
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::MessageFormat
MessageFormat
Definition: MessageFormat.h:17
Aws::IoT::Model::SnsAction::SetTargetArn
void SetTargetArn(const Aws::String &value)
Definition: SnsAction.h:55
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::SnsAction::WithRoleArn
SnsAction & WithRoleArn(const char *value)
Definition: SnsAction.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::SnsAction::MessageFormatHasBeenSet
bool MessageFormatHasBeenSet() const
Definition: SnsAction.h:144
Aws::IoT::Model::SnsAction::WithMessageFormat
SnsAction & WithMessageFormat(MessageFormat &&value)
Definition: SnsAction.h:188
Aws::IoT::Model::SnsAction::WithMessageFormat
SnsAction & WithMessageFormat(const MessageFormat &value)
Definition: SnsAction.h:177
IoT_EXPORTS.h
Aws::IoT::Model::SnsAction::WithTargetArn
SnsAction & WithTargetArn(const Aws::String &value)
Definition: SnsAction.h:70