AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CommentSummary.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Assurance {
20namespace Model {
21
29 public:
30 AWS_ASSURANCE_API CommentSummary() = default;
31 AWS_ASSURANCE_API CommentSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API CommentSummary& 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 CommentSummary& 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 CommentSummary& 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 CommentSummary& 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 CommentSummary& 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 CommentSummary& 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 CommentSummary& 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 CommentSummary& WithCommentId(CommentIdT&& value) {
157 SetCommentId(std::forward<CommentIdT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_environment;
163
164 Aws::String m_project;
165
166 Aws::String m_framework;
167
168 Aws::String m_frameworkVersion;
169
170 Aws::String m_controlId;
171
172 Aws::String m_taskId;
173
174 Aws::String m_commentId;
175 bool m_environmentHasBeenSet = false;
176 bool m_projectHasBeenSet = false;
177 bool m_frameworkHasBeenSet = false;
178 bool m_frameworkVersionHasBeenSet = false;
179 bool m_controlIdHasBeenSet = false;
180 bool m_taskIdHasBeenSet = false;
181 bool m_commentIdHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Assurance
186} // namespace Aws
CommentSummary & WithEnvironment(EnvironmentT &&value)
CommentSummary & WithFramework(FrameworkT &&value)
const Aws::String & GetTaskId() const
CommentSummary & WithProject(ProjectT &&value)
const Aws::String & GetProject() const
CommentSummary & WithFrameworkVersion(FrameworkVersionT &&value)
void SetFrameworkVersion(FrameworkVersionT &&value)
AWS_ASSURANCE_API CommentSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API CommentSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetControlId() const
void SetControlId(ControlIdT &&value)
void SetCommentId(CommentIdT &&value)
CommentSummary & WithControlId(ControlIdT &&value)
AWS_ASSURANCE_API CommentSummary()=default
const Aws::String & GetFramework() const
CommentSummary & WithTaskId(TaskIdT &&value)
void SetEnvironment(EnvironmentT &&value)
CommentSummary & WithCommentId(CommentIdT &&value)
void SetFramework(FrameworkT &&value)
const Aws::String & GetCommentId() const
const Aws::String & GetEnvironment() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetFrameworkVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String