AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codeguru-security/model/ScanState.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 CodeGuruSecurity
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CODEGURUSECURITY_API GetScanResult();
36
37
39
45 inline const AnalysisType& GetAnalysisType() const{ return m_analysisType; }
46 inline void SetAnalysisType(const AnalysisType& value) { m_analysisType = value; }
47 inline void SetAnalysisType(AnalysisType&& value) { m_analysisType = std::move(value); }
48 inline GetScanResult& WithAnalysisType(const AnalysisType& value) { SetAnalysisType(value); return *this;}
49 inline GetScanResult& WithAnalysisType(AnalysisType&& value) { SetAnalysisType(std::move(value)); return *this;}
51
53
56 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
57 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
58 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
59 inline GetScanResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
60 inline GetScanResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
62
64
67 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
68 inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; }
69 inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); }
70 inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); }
71 inline GetScanResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
72 inline GetScanResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
73 inline GetScanResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
75
77
80 inline long long GetNumberOfRevisions() const{ return m_numberOfRevisions; }
81 inline void SetNumberOfRevisions(long long value) { m_numberOfRevisions = value; }
82 inline GetScanResult& WithNumberOfRevisions(long long value) { SetNumberOfRevisions(value); return *this;}
84
86
89 inline const Aws::String& GetRunId() const{ return m_runId; }
90 inline void SetRunId(const Aws::String& value) { m_runId = value; }
91 inline void SetRunId(Aws::String&& value) { m_runId = std::move(value); }
92 inline void SetRunId(const char* value) { m_runId.assign(value); }
93 inline GetScanResult& WithRunId(const Aws::String& value) { SetRunId(value); return *this;}
94 inline GetScanResult& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;}
95 inline GetScanResult& WithRunId(const char* value) { SetRunId(value); return *this;}
97
99
102 inline const Aws::String& GetScanName() const{ return m_scanName; }
103 inline void SetScanName(const Aws::String& value) { m_scanName = value; }
104 inline void SetScanName(Aws::String&& value) { m_scanName = std::move(value); }
105 inline void SetScanName(const char* value) { m_scanName.assign(value); }
106 inline GetScanResult& WithScanName(const Aws::String& value) { SetScanName(value); return *this;}
107 inline GetScanResult& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;}
108 inline GetScanResult& WithScanName(const char* value) { SetScanName(value); return *this;}
110
112
115 inline const Aws::String& GetScanNameArn() const{ return m_scanNameArn; }
116 inline void SetScanNameArn(const Aws::String& value) { m_scanNameArn = value; }
117 inline void SetScanNameArn(Aws::String&& value) { m_scanNameArn = std::move(value); }
118 inline void SetScanNameArn(const char* value) { m_scanNameArn.assign(value); }
119 inline GetScanResult& WithScanNameArn(const Aws::String& value) { SetScanNameArn(value); return *this;}
120 inline GetScanResult& WithScanNameArn(Aws::String&& value) { SetScanNameArn(std::move(value)); return *this;}
121 inline GetScanResult& WithScanNameArn(const char* value) { SetScanNameArn(value); return *this;}
123
125
129 inline const ScanState& GetScanState() const{ return m_scanState; }
130 inline void SetScanState(const ScanState& value) { m_scanState = value; }
131 inline void SetScanState(ScanState&& value) { m_scanState = std::move(value); }
132 inline GetScanResult& WithScanState(const ScanState& value) { SetScanState(value); return *this;}
133 inline GetScanResult& WithScanState(ScanState&& value) { SetScanState(std::move(value)); return *this;}
135
137
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
142 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
143 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
144 inline GetScanResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
145 inline GetScanResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
147
149
150 inline const Aws::String& GetRequestId() const{ return m_requestId; }
151 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
152 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
153 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
154 inline GetScanResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
155 inline GetScanResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
156 inline GetScanResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
158 private:
159
160 AnalysisType m_analysisType;
161
162 Aws::Utils::DateTime m_createdAt;
163
164 Aws::String m_errorMessage;
165
166 long long m_numberOfRevisions;
167
168 Aws::String m_runId;
169
170 Aws::String m_scanName;
171
172 Aws::String m_scanNameArn;
173
174 ScanState m_scanState;
175
176 Aws::Utils::DateTime m_updatedAt;
177
178 Aws::String m_requestId;
179 };
180
181} // namespace Model
182} // namespace CodeGuruSecurity
183} // namespace Aws
AWS_CODEGURUSECURITY_API GetScanResult()
void SetErrorMessage(Aws::String &&value)
GetScanResult & WithRunId(Aws::String &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetErrorMessage() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetScanName(const Aws::String &value)
GetScanResult & WithScanNameArn(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
GetScanResult & WithScanState(const ScanState &value)
const AnalysisType & GetAnalysisType() const
GetScanResult & WithRunId(const Aws::String &value)
const Aws::String & GetScanName() const
GetScanResult & WithScanState(ScanState &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetScanResult & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_CODEGURUSECURITY_API GetScanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAnalysisType(AnalysisType &&value)
GetScanResult & WithErrorMessage(const Aws::String &value)
AWS_CODEGURUSECURITY_API GetScanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAnalysisType(const AnalysisType &value)
const Aws::String & GetScanNameArn() const
void SetRunId(const Aws::String &value)
GetScanResult & WithScanName(const Aws::String &value)
GetScanResult & WithRequestId(const char *value)
GetScanResult & WithNumberOfRevisions(long long value)
GetScanResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetScanResult & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetRequestId(const Aws::String &value)
GetScanResult & WithScanNameArn(const Aws::String &value)
GetScanResult & WithRequestId(Aws::String &&value)
GetScanResult & WithScanName(const char *value)
GetScanResult & WithRunId(const char *value)
GetScanResult & WithAnalysisType(AnalysisType &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
GetScanResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
GetScanResult & WithErrorMessage(Aws::String &&value)
GetScanResult & WithRequestId(const Aws::String &value)
GetScanResult & WithErrorMessage(const char *value)
void SetErrorMessage(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
GetScanResult & WithScanNameArn(const char *value)
void SetScanState(const ScanState &value)
void SetScanNameArn(const Aws::String &value)
GetScanResult & WithScanName(Aws::String &&value)
GetScanResult & WithAnalysisType(const AnalysisType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue