/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeGuruSecurity { namespace Model { class GetScanResult { public: AWS_CODEGURUSECURITY_API GetScanResult(); AWS_CODEGURUSECURITY_API GetScanResult(const Aws::AmazonWebServiceResult& result); AWS_CODEGURUSECURITY_API GetScanResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The type of analysis CodeGuru Security performed in the scan, either * Security or All. The Security type only * generates findings related to security. The All type generates both * security findings and quality findings.

*/ inline const AnalysisType& GetAnalysisType() const{ return m_analysisType; } /** *

The type of analysis CodeGuru Security performed in the scan, either * Security or All. The Security type only * generates findings related to security. The All type generates both * security findings and quality findings.

*/ inline void SetAnalysisType(const AnalysisType& value) { m_analysisType = value; } /** *

The type of analysis CodeGuru Security performed in the scan, either * Security or All. The Security type only * generates findings related to security. The All type generates both * security findings and quality findings.

*/ inline void SetAnalysisType(AnalysisType&& value) { m_analysisType = std::move(value); } /** *

The type of analysis CodeGuru Security performed in the scan, either * Security or All. The Security type only * generates findings related to security. The All type generates both * security findings and quality findings.

*/ inline GetScanResult& WithAnalysisType(const AnalysisType& value) { SetAnalysisType(value); return *this;} /** *

The type of analysis CodeGuru Security performed in the scan, either * Security or All. The Security type only * generates findings related to security. The All type generates both * security findings and quality findings.

*/ inline GetScanResult& WithAnalysisType(AnalysisType&& value) { SetAnalysisType(std::move(value)); return *this;} /** *

The time the scan was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time the scan was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The time the scan was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The time the scan was created.

*/ inline GetScanResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time the scan was created.

*/ inline GetScanResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The number of times a scan has been re-run on a revised resource.

*/ inline long long GetNumberOfRevisions() const{ return m_numberOfRevisions; } /** *

The number of times a scan has been re-run on a revised resource.

*/ inline void SetNumberOfRevisions(long long value) { m_numberOfRevisions = value; } /** *

The number of times a scan has been re-run on a revised resource.

*/ inline GetScanResult& WithNumberOfRevisions(long long value) { SetNumberOfRevisions(value); return *this;} /** *

UUID that identifies the individual scan run.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

UUID that identifies the individual scan run.

*/ inline void SetRunId(const Aws::String& value) { m_runId = value; } /** *

UUID that identifies the individual scan run.

*/ inline void SetRunId(Aws::String&& value) { m_runId = std::move(value); } /** *

UUID that identifies the individual scan run.

*/ inline void SetRunId(const char* value) { m_runId.assign(value); } /** *

UUID that identifies the individual scan run.

*/ inline GetScanResult& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

UUID that identifies the individual scan run.

*/ inline GetScanResult& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

UUID that identifies the individual scan run.

*/ inline GetScanResult& WithRunId(const char* value) { SetRunId(value); return *this;} /** *

The name of the scan.

*/ inline const Aws::String& GetScanName() const{ return m_scanName; } /** *

The name of the scan.

*/ inline void SetScanName(const Aws::String& value) { m_scanName = value; } /** *

The name of the scan.

*/ inline void SetScanName(Aws::String&& value) { m_scanName = std::move(value); } /** *

The name of the scan.

*/ inline void SetScanName(const char* value) { m_scanName.assign(value); } /** *

The name of the scan.

*/ inline GetScanResult& WithScanName(const Aws::String& value) { SetScanName(value); return *this;} /** *

The name of the scan.

*/ inline GetScanResult& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;} /** *

The name of the scan.

*/ inline GetScanResult& WithScanName(const char* value) { SetScanName(value); return *this;} /** *

The ARN for the scan name.

*/ inline const Aws::String& GetScanNameArn() const{ return m_scanNameArn; } /** *

The ARN for the scan name.

*/ inline void SetScanNameArn(const Aws::String& value) { m_scanNameArn = value; } /** *

The ARN for the scan name.

*/ inline void SetScanNameArn(Aws::String&& value) { m_scanNameArn = std::move(value); } /** *

The ARN for the scan name.

*/ inline void SetScanNameArn(const char* value) { m_scanNameArn.assign(value); } /** *

The ARN for the scan name.

*/ inline GetScanResult& WithScanNameArn(const Aws::String& value) { SetScanNameArn(value); return *this;} /** *

The ARN for the scan name.

*/ inline GetScanResult& WithScanNameArn(Aws::String&& value) { SetScanNameArn(std::move(value)); return *this;} /** *

The ARN for the scan name.

*/ inline GetScanResult& WithScanNameArn(const char* value) { SetScanNameArn(value); return *this;} /** *

The current state of the scan. Pass either InProgress, * Successful, or Failed.

*/ inline const ScanState& GetScanState() const{ return m_scanState; } /** *

The current state of the scan. Pass either InProgress, * Successful, or Failed.

*/ inline void SetScanState(const ScanState& value) { m_scanState = value; } /** *

The current state of the scan. Pass either InProgress, * Successful, or Failed.

*/ inline void SetScanState(ScanState&& value) { m_scanState = std::move(value); } /** *

The current state of the scan. Pass either InProgress, * Successful, or Failed.

*/ inline GetScanResult& WithScanState(const ScanState& value) { SetScanState(value); return *this;} /** *

The current state of the scan. Pass either InProgress, * Successful, or Failed.

*/ inline GetScanResult& WithScanState(ScanState&& value) { SetScanState(std::move(value)); return *this;} /** *

The time when the scan was last updated. Only available for * STANDARD scan types.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The time when the scan was last updated. Only available for * STANDARD scan types.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } /** *

The time when the scan was last updated. Only available for * STANDARD scan types.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } /** *

The time when the scan was last updated. Only available for * STANDARD scan types.

*/ inline GetScanResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The time when the scan was last updated. Only available for * STANDARD scan types.

*/ inline GetScanResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetScanResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetScanResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetScanResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: AnalysisType m_analysisType; Aws::Utils::DateTime m_createdAt; long long m_numberOfRevisions; Aws::String m_runId; Aws::String m_scanName; Aws::String m_scanNameArn; ScanState m_scanState; Aws::Utils::DateTime m_updatedAt; Aws::String m_requestId; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws