AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetCodeSecurityScanResult.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/inspector2/model/CodeSecurityResource.h>
11#include <aws/inspector2/model/CodeScanStatus.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Inspector2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_INSPECTOR2_API GetCodeSecurityScanResult() = default;
36
37
39
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 template<typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
45 template<typename AccountIdT = Aws::String>
46 GetCodeSecurityScanResult& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
48
50
53 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
54 template<typename CreatedAtT = Aws::Utils::DateTime>
55 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
56 template<typename CreatedAtT = Aws::Utils::DateTime>
57 GetCodeSecurityScanResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
59
61
65 inline const Aws::String& GetLastCommitId() const { return m_lastCommitId; }
66 template<typename LastCommitIdT = Aws::String>
67 void SetLastCommitId(LastCommitIdT&& value) { m_lastCommitIdHasBeenSet = true; m_lastCommitId = std::forward<LastCommitIdT>(value); }
68 template<typename LastCommitIdT = Aws::String>
69 GetCodeSecurityScanResult& WithLastCommitId(LastCommitIdT&& value) { SetLastCommitId(std::forward<LastCommitIdT>(value)); return *this;}
71
73
76 inline const CodeSecurityResource& GetResource() const { return m_resource; }
77 template<typename ResourceT = CodeSecurityResource>
78 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
79 template<typename ResourceT = CodeSecurityResource>
80 GetCodeSecurityScanResult& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
82
84
87 inline const Aws::String& GetScanId() const { return m_scanId; }
88 template<typename ScanIdT = Aws::String>
89 void SetScanId(ScanIdT&& value) { m_scanIdHasBeenSet = true; m_scanId = std::forward<ScanIdT>(value); }
90 template<typename ScanIdT = Aws::String>
91 GetCodeSecurityScanResult& WithScanId(ScanIdT&& value) { SetScanId(std::forward<ScanIdT>(value)); return *this;}
93
95
98 inline CodeScanStatus GetStatus() const { return m_status; }
99 inline void SetStatus(CodeScanStatus value) { m_statusHasBeenSet = true; m_status = value; }
100 inline GetCodeSecurityScanResult& WithStatus(CodeScanStatus value) { SetStatus(value); return *this;}
102
104
107 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
108 template<typename StatusReasonT = Aws::String>
109 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
110 template<typename StatusReasonT = Aws::String>
111 GetCodeSecurityScanResult& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
119 template<typename UpdatedAtT = Aws::Utils::DateTime>
120 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
121 template<typename UpdatedAtT = Aws::Utils::DateTime>
122 GetCodeSecurityScanResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
124
126
127 inline const Aws::String& GetRequestId() const { return m_requestId; }
128 template<typename RequestIdT = Aws::String>
129 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
130 template<typename RequestIdT = Aws::String>
131 GetCodeSecurityScanResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
133 private:
134
135 Aws::String m_accountId;
136 bool m_accountIdHasBeenSet = false;
137
138 Aws::Utils::DateTime m_createdAt{};
139 bool m_createdAtHasBeenSet = false;
140
141 Aws::String m_lastCommitId;
142 bool m_lastCommitIdHasBeenSet = false;
143
144 CodeSecurityResource m_resource;
145 bool m_resourceHasBeenSet = false;
146
147 Aws::String m_scanId;
148 bool m_scanIdHasBeenSet = false;
149
151 bool m_statusHasBeenSet = false;
152
153 Aws::String m_statusReason;
154 bool m_statusReasonHasBeenSet = false;
155
156 Aws::Utils::DateTime m_updatedAt{};
157 bool m_updatedAtHasBeenSet = false;
158
159 Aws::String m_requestId;
160 bool m_requestIdHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Inspector2
165} // namespace Aws
GetCodeSecurityScanResult & WithLastCommitId(LastCommitIdT &&value)
GetCodeSecurityScanResult & WithCreatedAt(CreatedAtT &&value)
GetCodeSecurityScanResult & WithStatusReason(StatusReasonT &&value)
GetCodeSecurityScanResult & WithRequestId(RequestIdT &&value)
GetCodeSecurityScanResult & WithScanId(ScanIdT &&value)
GetCodeSecurityScanResult & WithUpdatedAt(UpdatedAtT &&value)
GetCodeSecurityScanResult & WithResource(ResourceT &&value)
GetCodeSecurityScanResult & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API GetCodeSecurityScanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCodeSecurityScanResult & WithStatus(CodeScanStatus value)
AWS_INSPECTOR2_API GetCodeSecurityScanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_INSPECTOR2_API GetCodeSecurityScanResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue