AWS SDK for C++  1.9.132
AWS SDK for C++
AlertTarget.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetAlertTargetArn() const{ return m_alertTargetArn; }
46 
51  inline bool AlertTargetArnHasBeenSet() const { return m_alertTargetArnHasBeenSet; }
52 
57  inline void SetAlertTargetArn(const Aws::String& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = value; }
58 
63  inline void SetAlertTargetArn(Aws::String&& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = std::move(value); }
64 
69  inline void SetAlertTargetArn(const char* value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn.assign(value); }
70 
75  inline AlertTarget& WithAlertTargetArn(const Aws::String& value) { SetAlertTargetArn(value); return *this;}
76 
81  inline AlertTarget& WithAlertTargetArn(Aws::String&& value) { SetAlertTargetArn(std::move(value)); return *this;}
82 
87  inline AlertTarget& WithAlertTargetArn(const char* value) { SetAlertTargetArn(value); return *this;}
88 
89 
94  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
95 
100  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
101 
106  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
107 
112  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
113 
118  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
119 
124  inline AlertTarget& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
125 
130  inline AlertTarget& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
131 
136  inline AlertTarget& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
137 
138  private:
139 
140  Aws::String m_alertTargetArn;
141  bool m_alertTargetArnHasBeenSet;
142 
143  Aws::String m_roleArn;
144  bool m_roleArnHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoT
149 } // namespace Aws
Aws::IoT::Model::AlertTarget::GetAlertTargetArn
const Aws::String & GetAlertTargetArn() const
Definition: AlertTarget.h:45
Aws::IoT::Model::AlertTarget
Definition: AlertTarget.h:33
Aws::IoT::Model::AlertTarget::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AlertTarget.h:106
Aws::IoT::Model::AlertTarget::AlertTarget
AlertTarget(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AlertTarget::WithRoleArn
AlertTarget & WithRoleArn(const char *value)
Definition: AlertTarget.h:136
Aws::IoT::Model::AlertTarget::SetRoleArn
void SetRoleArn(const char *value)
Definition: AlertTarget.h:118
Aws::IoT::Model::AlertTarget::AlertTarget
AlertTarget()
Aws::IoT::Model::AlertTarget::WithAlertTargetArn
AlertTarget & WithAlertTargetArn(Aws::String &&value)
Definition: AlertTarget.h:81
Aws::IoT::Model::AlertTarget::AlertTargetArnHasBeenSet
bool AlertTargetArnHasBeenSet() const
Definition: AlertTarget.h:51
Aws::IoT::Model::AlertTarget::WithAlertTargetArn
AlertTarget & WithAlertTargetArn(const Aws::String &value)
Definition: AlertTarget.h:75
Aws::IoT::Model::AlertTarget::SetAlertTargetArn
void SetAlertTargetArn(const Aws::String &value)
Definition: AlertTarget.h:57
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AlertTarget::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AlertTarget.h:100
Aws::IoT::Model::AlertTarget::SetAlertTargetArn
void SetAlertTargetArn(const char *value)
Definition: AlertTarget.h:69
Aws::IoT::Model::AlertTarget::WithRoleArn
AlertTarget & WithRoleArn(const Aws::String &value)
Definition: AlertTarget.h:124
Aws::IoT::Model::AlertTarget::operator=
AlertTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AlertTarget::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AlertTarget.h:94
Aws::IoT::Model::AlertTarget::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AlertTarget.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AlertTarget::SetAlertTargetArn
void SetAlertTargetArn(Aws::String &&value)
Definition: AlertTarget.h:63
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::AlertTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AlertTarget::WithRoleArn
AlertTarget & WithRoleArn(Aws::String &&value)
Definition: AlertTarget.h:130
Aws::IoT::Model::AlertTarget::WithAlertTargetArn
AlertTarget & WithAlertTargetArn(const char *value)
Definition: AlertTarget.h:87
IoT_EXPORTS.h