AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Notification.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AuditManager {
21namespace Model {
22
31 public:
32 AWS_AUDITMANAGER_API Notification() = default;
33 AWS_AUDITMANAGER_API Notification(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AUDITMANAGER_API Notification& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 Notification& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
60 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
61 template <typename AssessmentIdT = Aws::String>
62 void SetAssessmentId(AssessmentIdT&& value) {
63 m_assessmentIdHasBeenSet = true;
64 m_assessmentId = std::forward<AssessmentIdT>(value);
65 }
66 template <typename AssessmentIdT = Aws::String>
67 Notification& WithAssessmentId(AssessmentIdT&& value) {
68 SetAssessmentId(std::forward<AssessmentIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAssessmentName() const { return m_assessmentName; }
78 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
79 template <typename AssessmentNameT = Aws::String>
80 void SetAssessmentName(AssessmentNameT&& value) {
81 m_assessmentNameHasBeenSet = true;
82 m_assessmentName = std::forward<AssessmentNameT>(value);
83 }
84 template <typename AssessmentNameT = Aws::String>
85 Notification& WithAssessmentName(AssessmentNameT&& value) {
86 SetAssessmentName(std::forward<AssessmentNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetControlSetId() const { return m_controlSetId; }
96 inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; }
97 template <typename ControlSetIdT = Aws::String>
98 void SetControlSetId(ControlSetIdT&& value) {
99 m_controlSetIdHasBeenSet = true;
100 m_controlSetId = std::forward<ControlSetIdT>(value);
101 }
102 template <typename ControlSetIdT = Aws::String>
103 Notification& WithControlSetId(ControlSetIdT&& value) {
104 SetControlSetId(std::forward<ControlSetIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetControlSetName() const { return m_controlSetName; }
114 inline bool ControlSetNameHasBeenSet() const { return m_controlSetNameHasBeenSet; }
115 template <typename ControlSetNameT = Aws::String>
116 void SetControlSetName(ControlSetNameT&& value) {
117 m_controlSetNameHasBeenSet = true;
118 m_controlSetName = std::forward<ControlSetNameT>(value);
119 }
120 template <typename ControlSetNameT = Aws::String>
121 Notification& WithControlSetName(ControlSetNameT&& value) {
122 SetControlSetName(std::forward<ControlSetNameT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
139 Notification& WithDescription(DescriptionT&& value) {
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
150 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
151 template <typename EventTimeT = Aws::Utils::DateTime>
152 void SetEventTime(EventTimeT&& value) {
153 m_eventTimeHasBeenSet = true;
154 m_eventTime = std::forward<EventTimeT>(value);
155 }
156 template <typename EventTimeT = Aws::Utils::DateTime>
157 Notification& WithEventTime(EventTimeT&& value) {
158 SetEventTime(std::forward<EventTimeT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetSource() const { return m_source; }
168 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
169 template <typename SourceT = Aws::String>
170 void SetSource(SourceT&& value) {
171 m_sourceHasBeenSet = true;
172 m_source = std::forward<SourceT>(value);
173 }
174 template <typename SourceT = Aws::String>
175 Notification& WithSource(SourceT&& value) {
176 SetSource(std::forward<SourceT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_id;
182
183 Aws::String m_assessmentId;
184
185 Aws::String m_assessmentName;
186
187 Aws::String m_controlSetId;
188
189 Aws::String m_controlSetName;
190
191 Aws::String m_description;
192
193 Aws::Utils::DateTime m_eventTime{};
194
195 Aws::String m_source;
196 bool m_idHasBeenSet = false;
197 bool m_assessmentIdHasBeenSet = false;
198 bool m_assessmentNameHasBeenSet = false;
199 bool m_controlSetIdHasBeenSet = false;
200 bool m_controlSetNameHasBeenSet = false;
201 bool m_descriptionHasBeenSet = false;
202 bool m_eventTimeHasBeenSet = false;
203 bool m_sourceHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace AuditManager
208} // namespace Aws
void SetAssessmentName(AssessmentNameT &&value)
void SetEventTime(EventTimeT &&value)
AWS_AUDITMANAGER_API Notification & operator=(Aws::Utils::Json::JsonView jsonValue)
Notification & WithSource(SourceT &&value)
Notification & WithDescription(DescriptionT &&value)
Notification & WithId(IdT &&value)
const Aws::String & GetControlSetId() const
const Aws::String & GetId() const
const Aws::String & GetAssessmentId() const
void SetControlSetId(ControlSetIdT &&value)
AWS_AUDITMANAGER_API Notification()=default
const Aws::String & GetAssessmentName() const
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Notification & WithControlSetName(ControlSetNameT &&value)
const Aws::String & GetSource() const
void SetAssessmentId(AssessmentIdT &&value)
Notification & WithControlSetId(ControlSetIdT &&value)
const Aws::Utils::DateTime & GetEventTime() const
const Aws::String & GetDescription() const
void SetControlSetName(ControlSetNameT &&value)
Notification & WithEventTime(EventTimeT &&value)
AWS_AUDITMANAGER_API Notification(Aws::Utils::Json::JsonView jsonValue)
Notification & WithAssessmentName(AssessmentNameT &&value)
const Aws::String & GetControlSetName() const
Notification & WithAssessmentId(AssessmentIdT &&value)
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue