AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlertTarget.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API AlertTarget();
39
40
42
46 inline const Aws::String& GetAlertTargetArn() const{ return m_alertTargetArn; }
47 inline bool AlertTargetArnHasBeenSet() const { return m_alertTargetArnHasBeenSet; }
48 inline void SetAlertTargetArn(const Aws::String& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = value; }
49 inline void SetAlertTargetArn(Aws::String&& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = std::move(value); }
50 inline void SetAlertTargetArn(const char* value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn.assign(value); }
51 inline AlertTarget& WithAlertTargetArn(const Aws::String& value) { SetAlertTargetArn(value); return *this;}
52 inline AlertTarget& WithAlertTargetArn(Aws::String&& value) { SetAlertTargetArn(std::move(value)); return *this;}
53 inline AlertTarget& WithAlertTargetArn(const char* value) { SetAlertTargetArn(value); return *this;}
55
57
61 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
62 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
63 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
64 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
65 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
66 inline AlertTarget& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
67 inline AlertTarget& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
68 inline AlertTarget& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
70 private:
71
72 Aws::String m_alertTargetArn;
73 bool m_alertTargetArnHasBeenSet = false;
74
75 Aws::String m_roleArn;
76 bool m_roleArnHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IoT
81} // namespace Aws
AlertTarget & WithAlertTargetArn(Aws::String &&value)
Definition AlertTarget.h:52
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAlertTargetArn(Aws::String &&value)
Definition AlertTarget.h:49
void SetRoleArn(const char *value)
Definition AlertTarget.h:65
AlertTarget & WithAlertTargetArn(const Aws::String &value)
Definition AlertTarget.h:51
void SetAlertTargetArn(const char *value)
Definition AlertTarget.h:50
AWS_IOT_API AlertTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AlertTarget & WithAlertTargetArn(const char *value)
Definition AlertTarget.h:53
void SetAlertTargetArn(const Aws::String &value)
Definition AlertTarget.h:48
AlertTarget & WithRoleArn(Aws::String &&value)
Definition AlertTarget.h:67
const Aws::String & GetAlertTargetArn() const
Definition AlertTarget.h:46
AlertTarget & WithRoleArn(const Aws::String &value)
Definition AlertTarget.h:66
bool AlertTargetArnHasBeenSet() const
Definition AlertTarget.h:47
AWS_IOT_API AlertTarget(Aws::Utils::Json::JsonView jsonValue)
AlertTarget & WithRoleArn(const char *value)
Definition AlertTarget.h:68
void SetRoleArn(Aws::String &&value)
Definition AlertTarget.h:64
void SetRoleArn(const Aws::String &value)
Definition AlertTarget.h:63
const Aws::String & GetRoleArn() const
Definition AlertTarget.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue