AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
CodeScanSummary.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/ScanFailureStage.h>
9#include <aws/continuum/model/ScanOrigin.h>
10#include <aws/continuum/model/ScanStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Continuum {
24namespace Model {
25
33 public:
34 AWS_CONTINUUM_API CodeScanSummary() = default;
35 AWS_CONTINUUM_API CodeScanSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetScanRunId() const { return m_scanRunId; }
44 inline bool ScanRunIdHasBeenSet() const { return m_scanRunIdHasBeenSet; }
45 template <typename ScanRunIdT = Aws::String>
46 void SetScanRunId(ScanRunIdT&& value) {
47 m_scanRunIdHasBeenSet = true;
48 m_scanRunId = std::forward<ScanRunIdT>(value);
49 }
50 template <typename ScanRunIdT = Aws::String>
51 CodeScanSummary& WithScanRunId(ScanRunIdT&& value) {
52 SetScanRunId(std::forward<ScanRunIdT>(value));
53 return *this;
54 }
56
58
61 inline ScanStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(ScanStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline ScanOrigin GetOrigin() const { return m_origin; }
78 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
79 inline void SetOrigin(ScanOrigin value) {
80 m_originHasBeenSet = true;
81 m_origin = value;
82 }
84 SetOrigin(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template <typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) {
97 m_createdAtHasBeenSet = true;
98 m_createdAt = std::forward<CreatedAtT>(value);
99 }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 CodeScanSummary& WithCreatedAt(CreatedAtT&& value) {
102 SetCreatedAt(std::forward<CreatedAtT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
112 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
113 template <typename CompletedAtT = Aws::Utils::DateTime>
114 void SetCompletedAt(CompletedAtT&& value) {
115 m_completedAtHasBeenSet = true;
116 m_completedAt = std::forward<CompletedAtT>(value);
117 }
118 template <typename CompletedAtT = Aws::Utils::DateTime>
119 CodeScanSummary& WithCompletedAt(CompletedAtT&& value) {
120 SetCompletedAt(std::forward<CompletedAtT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
130 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
131 template <typename FailureMessageT = Aws::String>
132 void SetFailureMessage(FailureMessageT&& value) {
133 m_failureMessageHasBeenSet = true;
134 m_failureMessage = std::forward<FailureMessageT>(value);
135 }
136 template <typename FailureMessageT = Aws::String>
137 CodeScanSummary& WithFailureMessage(FailureMessageT&& value) {
138 SetFailureMessage(std::forward<FailureMessageT>(value));
139 return *this;
140 }
142
144
148 inline ScanFailureStage GetFailureStage() const { return m_failureStage; }
149 inline bool FailureStageHasBeenSet() const { return m_failureStageHasBeenSet; }
151 m_failureStageHasBeenSet = true;
152 m_failureStage = value;
153 }
155 SetFailureStage(value);
156 return *this;
157 }
159 private:
160 Aws::String m_scanRunId;
161
163
165
166 Aws::Utils::DateTime m_createdAt{};
167
168 Aws::Utils::DateTime m_completedAt{};
169
170 Aws::String m_failureMessage;
171
173 bool m_scanRunIdHasBeenSet = false;
174 bool m_statusHasBeenSet = false;
175 bool m_originHasBeenSet = false;
176 bool m_createdAtHasBeenSet = false;
177 bool m_completedAtHasBeenSet = false;
178 bool m_failureMessageHasBeenSet = false;
179 bool m_failureStageHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace Continuum
184} // namespace Aws
CodeScanSummary & WithFailureStage(ScanFailureStage value)
CodeScanSummary & WithScanRunId(ScanRunIdT &&value)
ScanFailureStage GetFailureStage() const
CodeScanSummary & WithCreatedAt(CreatedAtT &&value)
CodeScanSummary & WithStatus(ScanStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
CodeScanSummary & WithOrigin(ScanOrigin value)
CodeScanSummary & WithFailureMessage(FailureMessageT &&value)
AWS_CONTINUUM_API CodeScanSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScanRunId() const
void SetCreatedAt(CreatedAtT &&value)
AWS_CONTINUUM_API CodeScanSummary()=default
void SetCompletedAt(CompletedAtT &&value)
void SetFailureMessage(FailureMessageT &&value)
AWS_CONTINUUM_API CodeScanSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCompletedAt() const
void SetScanRunId(ScanRunIdT &&value)
CodeScanSummary & WithCompletedAt(CompletedAtT &&value)
void SetFailureStage(ScanFailureStage value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFailureMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue