AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AssessmentControl.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/ControlComment.h>
9#include <aws/auditmanager/model/ControlResponse.h>
10#include <aws/auditmanager/model/ControlStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AuditManager {
24namespace Model {
25
33 public:
34 AWS_AUDITMANAGER_API AssessmentControl() = default;
35 AWS_AUDITMANAGER_API AssessmentControl(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AUDITMANAGER_API AssessmentControl& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 AssessmentControl& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 AssessmentControl& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline ControlStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(ControlStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
95 inline ControlResponse GetResponse() const { return m_response; }
96 inline bool ResponseHasBeenSet() const { return m_responseHasBeenSet; }
97 inline void SetResponse(ControlResponse value) {
98 m_responseHasBeenSet = true;
99 m_response = value;
100 }
102 SetResponse(value);
103 return *this;
104 }
106
108
111 inline const Aws::Vector<ControlComment>& GetComments() const { return m_comments; }
112 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
113 template <typename CommentsT = Aws::Vector<ControlComment>>
114 void SetComments(CommentsT&& value) {
115 m_commentsHasBeenSet = true;
116 m_comments = std::forward<CommentsT>(value);
117 }
118 template <typename CommentsT = Aws::Vector<ControlComment>>
119 AssessmentControl& WithComments(CommentsT&& value) {
120 SetComments(std::forward<CommentsT>(value));
121 return *this;
122 }
123 template <typename CommentsT = ControlComment>
124 AssessmentControl& AddComments(CommentsT&& value) {
125 m_commentsHasBeenSet = true;
126 m_comments.emplace_back(std::forward<CommentsT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<Aws::String>& GetEvidenceSources() const { return m_evidenceSources; }
136 inline bool EvidenceSourcesHasBeenSet() const { return m_evidenceSourcesHasBeenSet; }
137 template <typename EvidenceSourcesT = Aws::Vector<Aws::String>>
138 void SetEvidenceSources(EvidenceSourcesT&& value) {
139 m_evidenceSourcesHasBeenSet = true;
140 m_evidenceSources = std::forward<EvidenceSourcesT>(value);
141 }
142 template <typename EvidenceSourcesT = Aws::Vector<Aws::String>>
143 AssessmentControl& WithEvidenceSources(EvidenceSourcesT&& value) {
144 SetEvidenceSources(std::forward<EvidenceSourcesT>(value));
145 return *this;
146 }
147 template <typename EvidenceSourcesT = Aws::String>
148 AssessmentControl& AddEvidenceSources(EvidenceSourcesT&& value) {
149 m_evidenceSourcesHasBeenSet = true;
150 m_evidenceSources.emplace_back(std::forward<EvidenceSourcesT>(value));
151 return *this;
152 }
154
156
159 inline int GetEvidenceCount() const { return m_evidenceCount; }
160 inline bool EvidenceCountHasBeenSet() const { return m_evidenceCountHasBeenSet; }
161 inline void SetEvidenceCount(int value) {
162 m_evidenceCountHasBeenSet = true;
163 m_evidenceCount = value;
164 }
166 SetEvidenceCount(value);
167 return *this;
168 }
170
172
175 inline int GetAssessmentReportEvidenceCount() const { return m_assessmentReportEvidenceCount; }
176 inline bool AssessmentReportEvidenceCountHasBeenSet() const { return m_assessmentReportEvidenceCountHasBeenSet; }
177 inline void SetAssessmentReportEvidenceCount(int value) {
178 m_assessmentReportEvidenceCountHasBeenSet = true;
179 m_assessmentReportEvidenceCount = value;
180 }
183 return *this;
184 }
186 private:
187 Aws::String m_id;
188
189 Aws::String m_name;
190
192
194
196
197 Aws::Vector<Aws::String> m_evidenceSources;
198
199 int m_evidenceCount{0};
200
201 int m_assessmentReportEvidenceCount{0};
202 bool m_idHasBeenSet = false;
203 bool m_nameHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_responseHasBeenSet = false;
206 bool m_commentsHasBeenSet = false;
207 bool m_evidenceSourcesHasBeenSet = false;
208 bool m_evidenceCountHasBeenSet = false;
209 bool m_assessmentReportEvidenceCountHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace AuditManager
214} // namespace Aws
AWS_AUDITMANAGER_API AssessmentControl & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentControl & WithName(NameT &&value)
AssessmentControl & WithComments(CommentsT &&value)
AWS_AUDITMANAGER_API AssessmentControl(Aws::Utils::Json::JsonView jsonValue)
void SetEvidenceSources(EvidenceSourcesT &&value)
AssessmentControl & AddEvidenceSources(EvidenceSourcesT &&value)
AssessmentControl & WithResponse(ControlResponse value)
AssessmentControl & AddComments(CommentsT &&value)
AssessmentControl & WithEvidenceSources(EvidenceSourcesT &&value)
AssessmentControl & WithId(IdT &&value)
AssessmentControl & WithAssessmentReportEvidenceCount(int value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentControl & WithStatus(ControlStatus value)
AWS_AUDITMANAGER_API AssessmentControl()=default
const Aws::Vector< ControlComment > & GetComments() const
const Aws::Vector< Aws::String > & GetEvidenceSources() const
AssessmentControl & WithEvidenceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue