AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AnnotationSummary.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 AnnotationSummary() = default;
31 AWS_ASSURANCE_API AnnotationSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API AnnotationSummary& 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 AnnotationSummary& WithEnvironment(EnvironmentT&& value) {
48 SetEnvironment(std::forward<EnvironmentT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEvidenceId() const { return m_evidenceId; }
58 inline bool EvidenceIdHasBeenSet() const { return m_evidenceIdHasBeenSet; }
59 template <typename EvidenceIdT = Aws::String>
60 void SetEvidenceId(EvidenceIdT&& value) {
61 m_evidenceIdHasBeenSet = true;
62 m_evidenceId = std::forward<EvidenceIdT>(value);
63 }
64 template <typename EvidenceIdT = Aws::String>
65 AnnotationSummary& WithEvidenceId(EvidenceIdT&& value) {
66 SetEvidenceId(std::forward<EvidenceIdT>(value));
67 return *this;
68 }
70
72
75 inline int64_t GetEvidenceVersion() const { return m_evidenceVersion; }
76 inline bool EvidenceVersionHasBeenSet() const { return m_evidenceVersionHasBeenSet; }
77 inline void SetEvidenceVersion(int64_t value) {
78 m_evidenceVersionHasBeenSet = true;
79 m_evidenceVersion = value;
80 }
81 inline AnnotationSummary& WithEvidenceVersion(int64_t value) {
82 SetEvidenceVersion(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetProject() const { return m_project; }
92 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
93 template <typename ProjectT = Aws::String>
94 void SetProject(ProjectT&& value) {
95 m_projectHasBeenSet = true;
96 m_project = std::forward<ProjectT>(value);
97 }
98 template <typename ProjectT = Aws::String>
99 AnnotationSummary& WithProject(ProjectT&& value) {
100 SetProject(std::forward<ProjectT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetFramework() const { return m_framework; }
110 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
111 template <typename FrameworkT = Aws::String>
112 void SetFramework(FrameworkT&& value) {
113 m_frameworkHasBeenSet = true;
114 m_framework = std::forward<FrameworkT>(value);
115 }
116 template <typename FrameworkT = Aws::String>
117 AnnotationSummary& WithFramework(FrameworkT&& value) {
118 SetFramework(std::forward<FrameworkT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
128 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
129 template <typename FrameworkVersionT = Aws::String>
130 void SetFrameworkVersion(FrameworkVersionT&& value) {
131 m_frameworkVersionHasBeenSet = true;
132 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
133 }
134 template <typename FrameworkVersionT = Aws::String>
135 AnnotationSummary& WithFrameworkVersion(FrameworkVersionT&& value) {
136 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetControlId() const { return m_controlId; }
147 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
148 template <typename ControlIdT = Aws::String>
149 void SetControlId(ControlIdT&& value) {
150 m_controlIdHasBeenSet = true;
151 m_controlId = std::forward<ControlIdT>(value);
152 }
153 template <typename ControlIdT = Aws::String>
154 AnnotationSummary& WithControlId(ControlIdT&& value) {
155 SetControlId(std::forward<ControlIdT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
165 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
166 template <typename AssessmentIdT = Aws::String>
167 void SetAssessmentId(AssessmentIdT&& value) {
168 m_assessmentIdHasBeenSet = true;
169 m_assessmentId = std::forward<AssessmentIdT>(value);
170 }
171 template <typename AssessmentIdT = Aws::String>
172 AnnotationSummary& WithAssessmentId(AssessmentIdT&& value) {
173 SetAssessmentId(std::forward<AssessmentIdT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_environment;
179
180 Aws::String m_evidenceId;
181
182 int64_t m_evidenceVersion{0};
183
184 Aws::String m_project;
185
186 Aws::String m_framework;
187
188 Aws::String m_frameworkVersion;
189
190 Aws::String m_controlId;
191
192 Aws::String m_assessmentId;
193 bool m_environmentHasBeenSet = false;
194 bool m_evidenceIdHasBeenSet = false;
195 bool m_evidenceVersionHasBeenSet = false;
196 bool m_projectHasBeenSet = false;
197 bool m_frameworkHasBeenSet = false;
198 bool m_frameworkVersionHasBeenSet = false;
199 bool m_controlIdHasBeenSet = false;
200 bool m_assessmentIdHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Assurance
205} // namespace Aws
AnnotationSummary & WithAssessmentId(AssessmentIdT &&value)
void SetFrameworkVersion(FrameworkVersionT &&value)
AWS_ASSURANCE_API AnnotationSummary()=default
AnnotationSummary & WithEvidenceId(EvidenceIdT &&value)
AWS_ASSURANCE_API AnnotationSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetEvidenceId() const
AnnotationSummary & WithEvidenceVersion(int64_t value)
const Aws::String & GetAssessmentId() const
AnnotationSummary & WithProject(ProjectT &&value)
AnnotationSummary & WithFramework(FrameworkT &&value)
void SetEnvironment(EnvironmentT &&value)
void SetAssessmentId(AssessmentIdT &&value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetFrameworkVersion() const
AnnotationSummary & WithControlId(ControlIdT &&value)
const Aws::String & GetEnvironment() const
AWS_ASSURANCE_API AnnotationSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AnnotationSummary & WithFrameworkVersion(FrameworkVersionT &&value)
AnnotationSummary & WithEnvironment(EnvironmentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String