AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetScanResult.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/AnalysisType.h>
9#include <aws/codeguru-security/model/ScanState.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeGuruSecurity {
26namespace Model {
28 public:
29 AWS_CODEGURUSECURITY_API GetScanResult() = default;
32
34
37 inline const Aws::String& GetScanName() const { return m_scanName; }
38 template <typename ScanNameT = Aws::String>
39 void SetScanName(ScanNameT&& value) {
40 m_scanNameHasBeenSet = true;
41 m_scanName = std::forward<ScanNameT>(value);
42 }
43 template <typename ScanNameT = Aws::String>
44 GetScanResult& WithScanName(ScanNameT&& value) {
45 SetScanName(std::forward<ScanNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetRunId() const { return m_runId; }
55 template <typename RunIdT = Aws::String>
56 void SetRunId(RunIdT&& value) {
57 m_runIdHasBeenSet = true;
58 m_runId = std::forward<RunIdT>(value);
59 }
60 template <typename RunIdT = Aws::String>
61 GetScanResult& WithRunId(RunIdT&& value) {
62 SetRunId(std::forward<RunIdT>(value));
63 return *this;
64 }
66
68
72 inline ScanState GetScanState() const { return m_scanState; }
73 inline void SetScanState(ScanState value) {
74 m_scanStateHasBeenSet = true;
75 m_scanState = value;
76 }
78 SetScanState(value);
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) {
90 m_createdAtHasBeenSet = true;
91 m_createdAt = std::forward<CreatedAtT>(value);
92 }
93 template <typename CreatedAtT = Aws::Utils::DateTime>
94 GetScanResult& WithCreatedAt(CreatedAtT&& value) {
95 SetCreatedAt(std::forward<CreatedAtT>(value));
96 return *this;
97 }
99
101
107 inline AnalysisType GetAnalysisType() const { return m_analysisType; }
108 inline void SetAnalysisType(AnalysisType value) {
109 m_analysisTypeHasBeenSet = true;
110 m_analysisType = value;
111 }
113 SetAnalysisType(value);
114 return *this;
115 }
117
119
123 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
124 template <typename UpdatedAtT = Aws::Utils::DateTime>
125 void SetUpdatedAt(UpdatedAtT&& value) {
126 m_updatedAtHasBeenSet = true;
127 m_updatedAt = std::forward<UpdatedAtT>(value);
128 }
129 template <typename UpdatedAtT = Aws::Utils::DateTime>
130 GetScanResult& WithUpdatedAt(UpdatedAtT&& value) {
131 SetUpdatedAt(std::forward<UpdatedAtT>(value));
132 return *this;
133 }
135
137
140 inline long long GetNumberOfRevisions() const { return m_numberOfRevisions; }
141 inline void SetNumberOfRevisions(long long value) {
142 m_numberOfRevisionsHasBeenSet = true;
143 m_numberOfRevisions = value;
144 }
145 inline GetScanResult& WithNumberOfRevisions(long long value) {
147 return *this;
148 }
150
152
155 inline const Aws::String& GetScanNameArn() const { return m_scanNameArn; }
156 template <typename ScanNameArnT = Aws::String>
157 void SetScanNameArn(ScanNameArnT&& value) {
158 m_scanNameArnHasBeenSet = true;
159 m_scanNameArn = std::forward<ScanNameArnT>(value);
160 }
161 template <typename ScanNameArnT = Aws::String>
162 GetScanResult& WithScanNameArn(ScanNameArnT&& value) {
163 SetScanNameArn(std::forward<ScanNameArnT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
173 template <typename ErrorMessageT = Aws::String>
174 void SetErrorMessage(ErrorMessageT&& value) {
175 m_errorMessageHasBeenSet = true;
176 m_errorMessage = std::forward<ErrorMessageT>(value);
177 }
178 template <typename ErrorMessageT = Aws::String>
179 GetScanResult& WithErrorMessage(ErrorMessageT&& value) {
180 SetErrorMessage(std::forward<ErrorMessageT>(value));
181 return *this;
182 }
184
186
187 inline const Aws::String& GetRequestId() const { return m_requestId; }
188 template <typename RequestIdT = Aws::String>
189 void SetRequestId(RequestIdT&& value) {
190 m_requestIdHasBeenSet = true;
191 m_requestId = std::forward<RequestIdT>(value);
192 }
193 template <typename RequestIdT = Aws::String>
194 GetScanResult& WithRequestId(RequestIdT&& value) {
195 SetRequestId(std::forward<RequestIdT>(value));
196 return *this;
197 }
199 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
200
201 private:
202 Aws::String m_scanName;
203
204 Aws::String m_runId;
205
206 ScanState m_scanState{ScanState::NOT_SET};
207
208 Aws::Utils::DateTime m_createdAt{};
209
210 AnalysisType m_analysisType{AnalysisType::NOT_SET};
211
212 Aws::Utils::DateTime m_updatedAt{};
213
214 long long m_numberOfRevisions{0};
215
216 Aws::String m_scanNameArn;
217
218 Aws::String m_errorMessage;
219
220 Aws::String m_requestId;
221 Aws::Http::HttpResponseCode m_HttpResponseCode;
222 bool m_scanNameHasBeenSet = false;
223 bool m_runIdHasBeenSet = false;
224 bool m_scanStateHasBeenSet = false;
225 bool m_createdAtHasBeenSet = false;
226 bool m_analysisTypeHasBeenSet = false;
227 bool m_updatedAtHasBeenSet = false;
228 bool m_numberOfRevisionsHasBeenSet = false;
229 bool m_scanNameArnHasBeenSet = false;
230 bool m_errorMessageHasBeenSet = false;
231 bool m_requestIdHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace CodeGuruSecurity
236} // namespace Aws
const Aws::String & GetRequestId() const
const Aws::String & GetErrorMessage() const
const Aws::String & GetScanName() const
const Aws::Utils::DateTime & GetCreatedAt() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CODEGURUSECURITY_API GetScanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEGURUSECURITY_API GetScanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScanResult & WithScanState(ScanState value)
const Aws::String & GetScanNameArn() const
GetScanResult & WithRunId(RunIdT &&value)
GetScanResult & WithNumberOfRevisions(long long value)
AWS_CODEGURUSECURITY_API GetScanResult()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
GetScanResult & WithCreatedAt(CreatedAtT &&value)
GetScanResult & WithScanName(ScanNameT &&value)
void SetErrorMessage(ErrorMessageT &&value)
GetScanResult & WithScanNameArn(ScanNameArnT &&value)
GetScanResult & WithErrorMessage(ErrorMessageT &&value)
void SetScanNameArn(ScanNameArnT &&value)
GetScanResult & WithUpdatedAt(UpdatedAtT &&value)
GetScanResult & WithRequestId(RequestIdT &&value)
GetScanResult & WithAnalysisType(AnalysisType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue