AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Comment.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Assurance {
21namespace Model {
22
28class Comment {
29 public:
30 AWS_ASSURANCE_API Comment() = default;
31 AWS_ASSURANCE_API Comment(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API Comment& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetEnvironment() const { return m_environment; }
40 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
41 template <typename EnvironmentT = Aws::String>
42 void SetEnvironment(EnvironmentT&& value) {
43 m_environmentHasBeenSet = true;
44 m_environment = std::forward<EnvironmentT>(value);
45 }
46 template <typename EnvironmentT = Aws::String>
47 Comment& WithEnvironment(EnvironmentT&& value) {
48 SetEnvironment(std::forward<EnvironmentT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetProject() const { return m_project; }
58 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
59 template <typename ProjectT = Aws::String>
60 void SetProject(ProjectT&& value) {
61 m_projectHasBeenSet = true;
62 m_project = std::forward<ProjectT>(value);
63 }
64 template <typename ProjectT = Aws::String>
65 Comment& WithProject(ProjectT&& value) {
66 SetProject(std::forward<ProjectT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetFramework() const { return m_framework; }
76 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
77 template <typename FrameworkT = Aws::String>
78 void SetFramework(FrameworkT&& value) {
79 m_frameworkHasBeenSet = true;
80 m_framework = std::forward<FrameworkT>(value);
81 }
82 template <typename FrameworkT = Aws::String>
83 Comment& WithFramework(FrameworkT&& value) {
84 SetFramework(std::forward<FrameworkT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
94 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
95 template <typename FrameworkVersionT = Aws::String>
96 void SetFrameworkVersion(FrameworkVersionT&& value) {
97 m_frameworkVersionHasBeenSet = true;
98 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
99 }
100 template <typename FrameworkVersionT = Aws::String>
101 Comment& WithFrameworkVersion(FrameworkVersionT&& value) {
102 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetControlId() const { return m_controlId; }
113 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
114 template <typename ControlIdT = Aws::String>
115 void SetControlId(ControlIdT&& value) {
116 m_controlIdHasBeenSet = true;
117 m_controlId = std::forward<ControlIdT>(value);
118 }
119 template <typename ControlIdT = Aws::String>
120 Comment& WithControlId(ControlIdT&& value) {
121 SetControlId(std::forward<ControlIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetTaskId() const { return m_taskId; }
131 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
132 template <typename TaskIdT = Aws::String>
133 void SetTaskId(TaskIdT&& value) {
134 m_taskIdHasBeenSet = true;
135 m_taskId = std::forward<TaskIdT>(value);
136 }
137 template <typename TaskIdT = Aws::String>
138 Comment& WithTaskId(TaskIdT&& value) {
139 SetTaskId(std::forward<TaskIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetCommentId() const { return m_commentId; }
149 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
150 template <typename CommentIdT = Aws::String>
151 void SetCommentId(CommentIdT&& value) {
152 m_commentIdHasBeenSet = true;
153 m_commentId = std::forward<CommentIdT>(value);
154 }
155 template <typename CommentIdT = Aws::String>
156 Comment& WithCommentId(CommentIdT&& value) {
157 SetCommentId(std::forward<CommentIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetContent() const { return m_content; }
167 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
168 template <typename ContentT = Aws::String>
169 void SetContent(ContentT&& value) {
170 m_contentHasBeenSet = true;
171 m_content = std::forward<ContentT>(value);
172 }
173 template <typename ContentT = Aws::String>
174 Comment& WithContent(ContentT&& value) {
175 SetContent(std::forward<ContentT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetAddedBy() const { return m_addedBy; }
185 inline bool AddedByHasBeenSet() const { return m_addedByHasBeenSet; }
186 template <typename AddedByT = Aws::String>
187 void SetAddedBy(AddedByT&& value) {
188 m_addedByHasBeenSet = true;
189 m_addedBy = std::forward<AddedByT>(value);
190 }
191 template <typename AddedByT = Aws::String>
192 Comment& WithAddedBy(AddedByT&& value) {
193 SetAddedBy(std::forward<AddedByT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
203 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
204 template <typename CreatedAtT = Aws::Utils::DateTime>
205 void SetCreatedAt(CreatedAtT&& value) {
206 m_createdAtHasBeenSet = true;
207 m_createdAt = std::forward<CreatedAtT>(value);
208 }
209 template <typename CreatedAtT = Aws::Utils::DateTime>
210 Comment& WithCreatedAt(CreatedAtT&& value) {
211 SetCreatedAt(std::forward<CreatedAtT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
221 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
222 template <typename UpdatedAtT = Aws::Utils::DateTime>
223 void SetUpdatedAt(UpdatedAtT&& value) {
224 m_updatedAtHasBeenSet = true;
225 m_updatedAt = std::forward<UpdatedAtT>(value);
226 }
227 template <typename UpdatedAtT = Aws::Utils::DateTime>
228 Comment& WithUpdatedAt(UpdatedAtT&& value) {
229 SetUpdatedAt(std::forward<UpdatedAtT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_environment;
235
236 Aws::String m_project;
237
238 Aws::String m_framework;
239
240 Aws::String m_frameworkVersion;
241
242 Aws::String m_controlId;
243
244 Aws::String m_taskId;
245
246 Aws::String m_commentId;
247
248 Aws::String m_content;
249
250 Aws::String m_addedBy;
251
252 Aws::Utils::DateTime m_createdAt{};
253
254 Aws::Utils::DateTime m_updatedAt{};
255 bool m_environmentHasBeenSet = false;
256 bool m_projectHasBeenSet = false;
257 bool m_frameworkHasBeenSet = false;
258 bool m_frameworkVersionHasBeenSet = false;
259 bool m_controlIdHasBeenSet = false;
260 bool m_taskIdHasBeenSet = false;
261 bool m_commentIdHasBeenSet = false;
262 bool m_contentHasBeenSet = false;
263 bool m_addedByHasBeenSet = false;
264 bool m_createdAtHasBeenSet = false;
265 bool m_updatedAtHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Assurance
270} // namespace Aws
void SetControlId(ControlIdT &&value)
Definition Comment.h:115
const Aws::String & GetProject() const
Definition Comment.h:57
Comment & WithContent(ContentT &&value)
Definition Comment.h:174
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Comment.h:202
void SetAddedBy(AddedByT &&value)
Definition Comment.h:187
const Aws::String & GetContent() const
Definition Comment.h:166
void SetFramework(FrameworkT &&value)
Definition Comment.h:78
void SetUpdatedAt(UpdatedAtT &&value)
Definition Comment.h:223
const Aws::String & GetTaskId() const
Definition Comment.h:130
bool CreatedAtHasBeenSet() const
Definition Comment.h:203
Comment & WithCommentId(CommentIdT &&value)
Definition Comment.h:156
AWS_ASSURANCE_API Comment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetCommentId() const
Definition Comment.h:148
Comment & WithTaskId(TaskIdT &&value)
Definition Comment.h:138
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Comment.h:220
const Aws::String & GetEnvironment() const
Definition Comment.h:39
Comment & WithEnvironment(EnvironmentT &&value)
Definition Comment.h:47
AWS_ASSURANCE_API Comment()=default
bool ProjectHasBeenSet() const
Definition Comment.h:58
Comment & WithProject(ProjectT &&value)
Definition Comment.h:65
bool FrameworkHasBeenSet() const
Definition Comment.h:76
Comment & WithFramework(FrameworkT &&value)
Definition Comment.h:83
const Aws::String & GetFrameworkVersion() const
Definition Comment.h:93
AWS_ASSURANCE_API Comment(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Comment & WithCreatedAt(CreatedAtT &&value)
Definition Comment.h:210
bool FrameworkVersionHasBeenSet() const
Definition Comment.h:94
bool ControlIdHasBeenSet() const
Definition Comment.h:113
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetCommentId(CommentIdT &&value)
Definition Comment.h:151
bool UpdatedAtHasBeenSet() const
Definition Comment.h:221
Comment & WithAddedBy(AddedByT &&value)
Definition Comment.h:192
void SetCreatedAt(CreatedAtT &&value)
Definition Comment.h:205
bool CommentIdHasBeenSet() const
Definition Comment.h:149
void SetEnvironment(EnvironmentT &&value)
Definition Comment.h:42
const Aws::String & GetAddedBy() const
Definition Comment.h:184
Comment & WithUpdatedAt(UpdatedAtT &&value)
Definition Comment.h:228
void SetTaskId(TaskIdT &&value)
Definition Comment.h:133
Comment & WithFrameworkVersion(FrameworkVersionT &&value)
Definition Comment.h:101
Comment & WithControlId(ControlIdT &&value)
Definition Comment.h:120
void SetFrameworkVersion(FrameworkVersionT &&value)
Definition Comment.h:96
bool EnvironmentHasBeenSet() const
Definition Comment.h:40
void SetProject(ProjectT &&value)
Definition Comment.h:60
void SetContent(ContentT &&value)
Definition Comment.h:169
const Aws::String & GetControlId() const
Definition Comment.h:112
const Aws::String & GetFramework() const
Definition Comment.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String