AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruSecurity {
25namespace Model {
27 public:
28 AWS_CODEGURUSECURITY_API GetScanResult() = default;
31
33
36 inline const Aws::String& GetScanName() const { return m_scanName; }
37 template <typename ScanNameT = Aws::String>
38 void SetScanName(ScanNameT&& value) {
39 m_scanNameHasBeenSet = true;
40 m_scanName = std::forward<ScanNameT>(value);
41 }
42 template <typename ScanNameT = Aws::String>
43 GetScanResult& WithScanName(ScanNameT&& value) {
44 SetScanName(std::forward<ScanNameT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetRunId() const { return m_runId; }
54 template <typename RunIdT = Aws::String>
55 void SetRunId(RunIdT&& value) {
56 m_runIdHasBeenSet = true;
57 m_runId = std::forward<RunIdT>(value);
58 }
59 template <typename RunIdT = Aws::String>
60 GetScanResult& WithRunId(RunIdT&& value) {
61 SetRunId(std::forward<RunIdT>(value));
62 return *this;
63 }
65
67
71 inline ScanState GetScanState() const { return m_scanState; }
72 inline void SetScanState(ScanState value) {
73 m_scanStateHasBeenSet = true;
74 m_scanState = value;
75 }
77 SetScanState(value);
78 return *this;
79 }
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
87 template <typename CreatedAtT = Aws::Utils::DateTime>
88 void SetCreatedAt(CreatedAtT&& value) {
89 m_createdAtHasBeenSet = true;
90 m_createdAt = std::forward<CreatedAtT>(value);
91 }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
93 GetScanResult& WithCreatedAt(CreatedAtT&& value) {
94 SetCreatedAt(std::forward<CreatedAtT>(value));
95 return *this;
96 }
98
100
106 inline AnalysisType GetAnalysisType() const { return m_analysisType; }
107 inline void SetAnalysisType(AnalysisType value) {
108 m_analysisTypeHasBeenSet = true;
109 m_analysisType = value;
110 }
112 SetAnalysisType(value);
113 return *this;
114 }
116
118
122 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
123 template <typename UpdatedAtT = Aws::Utils::DateTime>
124 void SetUpdatedAt(UpdatedAtT&& value) {
125 m_updatedAtHasBeenSet = true;
126 m_updatedAt = std::forward<UpdatedAtT>(value);
127 }
128 template <typename UpdatedAtT = Aws::Utils::DateTime>
129 GetScanResult& WithUpdatedAt(UpdatedAtT&& value) {
130 SetUpdatedAt(std::forward<UpdatedAtT>(value));
131 return *this;
132 }
134
136
139 inline long long GetNumberOfRevisions() const { return m_numberOfRevisions; }
140 inline void SetNumberOfRevisions(long long value) {
141 m_numberOfRevisionsHasBeenSet = true;
142 m_numberOfRevisions = value;
143 }
144 inline GetScanResult& WithNumberOfRevisions(long long value) {
146 return *this;
147 }
149
151
154 inline const Aws::String& GetScanNameArn() const { return m_scanNameArn; }
155 template <typename ScanNameArnT = Aws::String>
156 void SetScanNameArn(ScanNameArnT&& value) {
157 m_scanNameArnHasBeenSet = true;
158 m_scanNameArn = std::forward<ScanNameArnT>(value);
159 }
160 template <typename ScanNameArnT = Aws::String>
161 GetScanResult& WithScanNameArn(ScanNameArnT&& value) {
162 SetScanNameArn(std::forward<ScanNameArnT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
172 template <typename ErrorMessageT = Aws::String>
173 void SetErrorMessage(ErrorMessageT&& value) {
174 m_errorMessageHasBeenSet = true;
175 m_errorMessage = std::forward<ErrorMessageT>(value);
176 }
177 template <typename ErrorMessageT = Aws::String>
178 GetScanResult& WithErrorMessage(ErrorMessageT&& value) {
179 SetErrorMessage(std::forward<ErrorMessageT>(value));
180 return *this;
181 }
183
185
186 inline const Aws::String& GetRequestId() const { return m_requestId; }
187 template <typename RequestIdT = Aws::String>
188 void SetRequestId(RequestIdT&& value) {
189 m_requestIdHasBeenSet = true;
190 m_requestId = std::forward<RequestIdT>(value);
191 }
192 template <typename RequestIdT = Aws::String>
193 GetScanResult& WithRequestId(RequestIdT&& value) {
194 SetRequestId(std::forward<RequestIdT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_scanName;
200
201 Aws::String m_runId;
202
203 ScanState m_scanState{ScanState::NOT_SET};
204
205 Aws::Utils::DateTime m_createdAt{};
206
207 AnalysisType m_analysisType{AnalysisType::NOT_SET};
208
209 Aws::Utils::DateTime m_updatedAt{};
210
211 long long m_numberOfRevisions{0};
212
213 Aws::String m_scanNameArn;
214
215 Aws::String m_errorMessage;
216
217 Aws::String m_requestId;
218 bool m_scanNameHasBeenSet = false;
219 bool m_runIdHasBeenSet = false;
220 bool m_scanStateHasBeenSet = false;
221 bool m_createdAtHasBeenSet = false;
222 bool m_analysisTypeHasBeenSet = false;
223 bool m_updatedAtHasBeenSet = false;
224 bool m_numberOfRevisionsHasBeenSet = false;
225 bool m_scanNameArnHasBeenSet = false;
226 bool m_errorMessageHasBeenSet = false;
227 bool m_requestIdHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace CodeGuruSecurity
232} // namespace Aws
const Aws::String & GetRequestId() const
const Aws::String & GetErrorMessage() const
const Aws::String & GetScanName() const
const Aws::Utils::DateTime & GetCreatedAt() 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