AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Notification.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AuditManager
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_AUDITMANAGER_API Notification() = default;
38 AWS_AUDITMANAGER_API Notification(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Notification& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Notification& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::forward<AssessmentIdT>(value); }
63 template<typename AssessmentIdT = Aws::String>
64 Notification& WithAssessmentId(AssessmentIdT&& value) { SetAssessmentId(std::forward<AssessmentIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAssessmentName() const { return m_assessmentName; }
72 inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; }
73 template<typename AssessmentNameT = Aws::String>
74 void SetAssessmentName(AssessmentNameT&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::forward<AssessmentNameT>(value); }
75 template<typename AssessmentNameT = Aws::String>
76 Notification& WithAssessmentName(AssessmentNameT&& value) { SetAssessmentName(std::forward<AssessmentNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetControlSetId() const { return m_controlSetId; }
84 inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; }
85 template<typename ControlSetIdT = Aws::String>
86 void SetControlSetId(ControlSetIdT&& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = std::forward<ControlSetIdT>(value); }
87 template<typename ControlSetIdT = Aws::String>
88 Notification& WithControlSetId(ControlSetIdT&& value) { SetControlSetId(std::forward<ControlSetIdT>(value)); return *this;}
90
92
95 inline const Aws::String& GetControlSetName() const { return m_controlSetName; }
96 inline bool ControlSetNameHasBeenSet() const { return m_controlSetNameHasBeenSet; }
97 template<typename ControlSetNameT = Aws::String>
98 void SetControlSetName(ControlSetNameT&& value) { m_controlSetNameHasBeenSet = true; m_controlSetName = std::forward<ControlSetNameT>(value); }
99 template<typename ControlSetNameT = Aws::String>
100 Notification& WithControlSetName(ControlSetNameT&& value) { SetControlSetName(std::forward<ControlSetNameT>(value)); return *this;}
102
104
107 inline const Aws::String& GetDescription() const { return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 template<typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
111 template<typename DescriptionT = Aws::String>
112 Notification& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
120 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
121 template<typename EventTimeT = Aws::Utils::DateTime>
122 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
123 template<typename EventTimeT = Aws::Utils::DateTime>
124 Notification& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
126
128
131 inline const Aws::String& GetSource() const { return m_source; }
132 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
133 template<typename SourceT = Aws::String>
134 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
135 template<typename SourceT = Aws::String>
136 Notification& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
138 private:
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::String m_assessmentId;
144 bool m_assessmentIdHasBeenSet = false;
145
146 Aws::String m_assessmentName;
147 bool m_assessmentNameHasBeenSet = false;
148
149 Aws::String m_controlSetId;
150 bool m_controlSetIdHasBeenSet = false;
151
152 Aws::String m_controlSetName;
153 bool m_controlSetNameHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 Aws::Utils::DateTime m_eventTime{};
159 bool m_eventTimeHasBeenSet = false;
160
161 Aws::String m_source;
162 bool m_sourceHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace AuditManager
167} // 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