AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssessmentControl.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/ControlStatus.h>
10#include <aws/auditmanager/model/ControlResponse.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/auditmanager/model/ControlComment.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AuditManager
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_AUDITMANAGER_API AssessmentControl();
40 AWS_AUDITMANAGER_API AssessmentControl(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AUDITMANAGER_API AssessmentControl& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline AssessmentControl& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline AssessmentControl& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline AssessmentControl& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline AssessmentControl& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline AssessmentControl& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline AssessmentControl& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline AssessmentControl& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline AssessmentControl& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline AssessmentControl& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
91 inline const ControlStatus& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const ControlStatus& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(ControlStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline AssessmentControl& WithStatus(const ControlStatus& value) { SetStatus(value); return *this;}
96 inline AssessmentControl& WithStatus(ControlStatus&& value) { SetStatus(std::move(value)); return *this;}
98
100
103 inline const ControlResponse& GetResponse() const{ return m_response; }
104 inline bool ResponseHasBeenSet() const { return m_responseHasBeenSet; }
105 inline void SetResponse(const ControlResponse& value) { m_responseHasBeenSet = true; m_response = value; }
106 inline void SetResponse(ControlResponse&& value) { m_responseHasBeenSet = true; m_response = std::move(value); }
107 inline AssessmentControl& WithResponse(const ControlResponse& value) { SetResponse(value); return *this;}
108 inline AssessmentControl& WithResponse(ControlResponse&& value) { SetResponse(std::move(value)); return *this;}
110
112
115 inline const Aws::Vector<ControlComment>& GetComments() const{ return m_comments; }
116 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
117 inline void SetComments(const Aws::Vector<ControlComment>& value) { m_commentsHasBeenSet = true; m_comments = value; }
118 inline void SetComments(Aws::Vector<ControlComment>&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
119 inline AssessmentControl& WithComments(const Aws::Vector<ControlComment>& value) { SetComments(value); return *this;}
120 inline AssessmentControl& WithComments(Aws::Vector<ControlComment>&& value) { SetComments(std::move(value)); return *this;}
121 inline AssessmentControl& AddComments(const ControlComment& value) { m_commentsHasBeenSet = true; m_comments.push_back(value); return *this; }
122 inline AssessmentControl& AddComments(ControlComment&& value) { m_commentsHasBeenSet = true; m_comments.push_back(std::move(value)); return *this; }
124
126
129 inline const Aws::Vector<Aws::String>& GetEvidenceSources() const{ return m_evidenceSources; }
130 inline bool EvidenceSourcesHasBeenSet() const { return m_evidenceSourcesHasBeenSet; }
131 inline void SetEvidenceSources(const Aws::Vector<Aws::String>& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources = value; }
132 inline void SetEvidenceSources(Aws::Vector<Aws::String>&& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources = std::move(value); }
134 inline AssessmentControl& WithEvidenceSources(Aws::Vector<Aws::String>&& value) { SetEvidenceSources(std::move(value)); return *this;}
135 inline AssessmentControl& AddEvidenceSources(const Aws::String& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources.push_back(value); return *this; }
136 inline AssessmentControl& AddEvidenceSources(Aws::String&& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources.push_back(std::move(value)); return *this; }
137 inline AssessmentControl& AddEvidenceSources(const char* value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources.push_back(value); return *this; }
139
141
144 inline int GetEvidenceCount() const{ return m_evidenceCount; }
145 inline bool EvidenceCountHasBeenSet() const { return m_evidenceCountHasBeenSet; }
146 inline void SetEvidenceCount(int value) { m_evidenceCountHasBeenSet = true; m_evidenceCount = value; }
147 inline AssessmentControl& WithEvidenceCount(int value) { SetEvidenceCount(value); return *this;}
149
151
154 inline int GetAssessmentReportEvidenceCount() const{ return m_assessmentReportEvidenceCount; }
155 inline bool AssessmentReportEvidenceCountHasBeenSet() const { return m_assessmentReportEvidenceCountHasBeenSet; }
156 inline void SetAssessmentReportEvidenceCount(int value) { m_assessmentReportEvidenceCountHasBeenSet = true; m_assessmentReportEvidenceCount = value; }
159 private:
160
161 Aws::String m_id;
162 bool m_idHasBeenSet = false;
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 Aws::String m_description;
168 bool m_descriptionHasBeenSet = false;
169
170 ControlStatus m_status;
171 bool m_statusHasBeenSet = false;
172
173 ControlResponse m_response;
174 bool m_responseHasBeenSet = false;
175
177 bool m_commentsHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_evidenceSources;
180 bool m_evidenceSourcesHasBeenSet = false;
181
182 int m_evidenceCount;
183 bool m_evidenceCountHasBeenSet = false;
184
185 int m_assessmentReportEvidenceCount;
186 bool m_assessmentReportEvidenceCountHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace AuditManager
191} // namespace Aws
AssessmentControl & WithName(const Aws::String &value)
AssessmentControl & AddComments(ControlComment &&value)
void SetDescription(const Aws::String &value)
AWS_AUDITMANAGER_API AssessmentControl & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentControl & WithComments(const Aws::Vector< ControlComment > &value)
void SetComments(Aws::Vector< ControlComment > &&value)
AssessmentControl & WithEvidenceSources(Aws::Vector< Aws::String > &&value)
AssessmentControl & WithDescription(Aws::String &&value)
AssessmentControl & AddEvidenceSources(const Aws::String &value)
AWS_AUDITMANAGER_API AssessmentControl(Aws::Utils::Json::JsonView jsonValue)
const ControlResponse & GetResponse() const
AssessmentControl & AddEvidenceSources(Aws::String &&value)
AssessmentControl & AddEvidenceSources(const char *value)
AssessmentControl & WithName(Aws::String &&value)
void SetEvidenceSources(Aws::Vector< Aws::String > &&value)
AssessmentControl & WithId(const Aws::String &value)
AssessmentControl & WithDescription(const Aws::String &value)
AssessmentControl & WithName(const char *value)
void SetResponse(const ControlResponse &value)
AssessmentControl & WithResponse(const ControlResponse &value)
AssessmentControl & AddComments(const ControlComment &value)
AssessmentControl & WithDescription(const char *value)
void SetComments(const Aws::Vector< ControlComment > &value)
AssessmentControl & WithAssessmentReportEvidenceCount(int value)
AssessmentControl & WithComments(Aws::Vector< ControlComment > &&value)
AssessmentControl & WithResponse(ControlResponse &&value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentControl & WithStatus(ControlStatus &&value)
AssessmentControl & WithId(const char *value)
AssessmentControl & WithId(Aws::String &&value)
AssessmentControl & WithEvidenceSources(const Aws::Vector< Aws::String > &value)
const Aws::Vector< ControlComment > & GetComments() const
void SetEvidenceSources(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetEvidenceSources() const
AssessmentControl & WithStatus(const ControlStatus &value)
void SetStatus(const ControlStatus &value)
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