AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AuditNotificationTarget.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 AuditNotificationTarget() = default;
39
40
42
45 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
46 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
47 template<typename TargetArnT = Aws::String>
48 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
49 template<typename TargetArnT = Aws::String>
50 AuditNotificationTarget& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
52
54
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 AuditNotificationTarget& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
65
67
70 inline bool GetEnabled() const { return m_enabled; }
71 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
72 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
73 inline AuditNotificationTarget& WithEnabled(bool value) { SetEnabled(value); return *this;}
75 private:
76
77 Aws::String m_targetArn;
78 bool m_targetArnHasBeenSet = false;
79
80 Aws::String m_roleArn;
81 bool m_roleArnHasBeenSet = false;
82
83 bool m_enabled{false};
84 bool m_enabledHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IoT
89} // namespace Aws
AWS_IOT_API AuditNotificationTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AuditNotificationTarget & WithTargetArn(TargetArnT &&value)
AuditNotificationTarget & WithEnabled(bool value)
AWS_IOT_API AuditNotificationTarget()=default
AWS_IOT_API AuditNotificationTarget(Aws::Utils::Json::JsonView jsonValue)
AuditNotificationTarget & WithRoleArn(RoleArnT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue