AWS SDK for C++  1.9.129
AWS SDK for C++
AuditNotificationTarget.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 
44  inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
45 
49  inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
50 
54  inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
55 
59  inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
60 
64  inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
65 
69  inline AuditNotificationTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
70 
74  inline AuditNotificationTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
75 
79  inline AuditNotificationTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
80 
81 
86  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
87 
92  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 
98  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
99 
104  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
105 
110  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
111 
116  inline AuditNotificationTarget& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
117 
122  inline AuditNotificationTarget& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
123 
128  inline AuditNotificationTarget& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
129 
130 
134  inline bool GetEnabled() const{ return m_enabled; }
135 
139  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
140 
144  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
145 
149  inline AuditNotificationTarget& WithEnabled(bool value) { SetEnabled(value); return *this;}
150 
151  private:
152 
153  Aws::String m_targetArn;
154  bool m_targetArnHasBeenSet;
155 
156  Aws::String m_roleArn;
157  bool m_roleArnHasBeenSet;
158 
159  bool m_enabled;
160  bool m_enabledHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace IoT
165 } // namespace Aws
Aws::IoT::Model::AuditNotificationTarget::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AuditNotificationTarget.h:104
Aws::IoT::Model::AuditNotificationTarget::WithRoleArn
AuditNotificationTarget & WithRoleArn(const Aws::String &value)
Definition: AuditNotificationTarget.h:116
Aws::IoT::Model::AuditNotificationTarget::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AuditNotificationTarget.h:86
Aws::IoT::Model::AuditNotificationTarget::WithTargetArn
AuditNotificationTarget & WithTargetArn(const Aws::String &value)
Definition: AuditNotificationTarget.h:69
Aws::IoT::Model::AuditNotificationTarget::SetTargetArn
void SetTargetArn(const char *value)
Definition: AuditNotificationTarget.h:64
Aws::IoT::Model::AuditNotificationTarget::operator=
AuditNotificationTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AuditNotificationTarget::WithTargetArn
AuditNotificationTarget & WithTargetArn(const char *value)
Definition: AuditNotificationTarget.h:79
Aws::IoT::Model::AuditNotificationTarget::SetRoleArn
void SetRoleArn(const char *value)
Definition: AuditNotificationTarget.h:110
Aws::IoT::Model::AuditNotificationTarget::WithEnabled
AuditNotificationTarget & WithEnabled(bool value)
Definition: AuditNotificationTarget.h:149
Aws::IoT::Model::AuditNotificationTarget::SetTargetArn
void SetTargetArn(Aws::String &&value)
Definition: AuditNotificationTarget.h:59
Aws::IoT::Model::AuditNotificationTarget::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AuditNotificationTarget.h:92
Aws::IoT::Model::AuditNotificationTarget
Definition: AuditNotificationTarget.h:33
Aws::IoT::Model::AuditNotificationTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::AuditNotificationTarget::AuditNotificationTarget
AuditNotificationTarget(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::AuditNotificationTarget::SetEnabled
void SetEnabled(bool value)
Definition: AuditNotificationTarget.h:144
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AuditNotificationTarget::AuditNotificationTarget
AuditNotificationTarget()
Aws::IoT::Model::AuditNotificationTarget::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: AuditNotificationTarget.h:139
Aws::IoT::Model::AuditNotificationTarget::WithRoleArn
AuditNotificationTarget & WithRoleArn(Aws::String &&value)
Definition: AuditNotificationTarget.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AuditNotificationTarget::TargetArnHasBeenSet
bool TargetArnHasBeenSet() const
Definition: AuditNotificationTarget.h:49
Aws::IoT::Model::AuditNotificationTarget::SetTargetArn
void SetTargetArn(const Aws::String &value)
Definition: AuditNotificationTarget.h:54
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AuditNotificationTarget::GetTargetArn
const Aws::String & GetTargetArn() const
Definition: AuditNotificationTarget.h:44
Aws::IoT::Model::AuditNotificationTarget::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AuditNotificationTarget.h:98
Aws::IoT::Model::AuditNotificationTarget::GetEnabled
bool GetEnabled() const
Definition: AuditNotificationTarget.h:134
Aws::IoT::Model::AuditNotificationTarget::WithRoleArn
AuditNotificationTarget & WithRoleArn(const char *value)
Definition: AuditNotificationTarget.h:128
IoT_EXPORTS.h
Aws::IoT::Model::AuditNotificationTarget::WithTargetArn
AuditNotificationTarget & WithTargetArn(Aws::String &&value)
Definition: AuditNotificationTarget.h:74