/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruSecurity { namespace Model { /** *

Information about a scan.

See Also:

AWS * API Reference

*/ class ScanSummary { public: AWS_CODEGURUSECURITY_API ScanSummary(); AWS_CODEGURUSECURITY_API ScanSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUSECURITY_API ScanSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time when the scan was created.

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

The time when the scan was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the scan was created.

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

The time when the scan was created.

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

The time when the scan was created.

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

The time when the scan was created.

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

The identifier for the scan run.

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

The identifier for the scan run.

*/ inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; } /** *

The identifier for the scan run.

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

The identifier for the scan run.

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

The identifier for the scan run.

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

The identifier for the scan run.

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

The identifier for the scan run.

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

The identifier for the scan run.

*/ inline ScanSummary& 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 bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; } /** *

The name of the scan.

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

The name of the scan.

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

The name of the scan.

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

The name of the scan.

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

The name of the scan.

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

The name of the scan.

*/ inline ScanSummary& 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 bool ScanNameArnHasBeenSet() const { return m_scanNameArnHasBeenSet; } /** *

The ARN for the scan name.

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

The ARN for the scan name.

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

The ARN for the scan name.

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

The ARN for the scan name.

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

The ARN for the scan name.

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

The ARN for the scan name.

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

The state of the scan. A scan can be In Progress, * Complete, or Failed.

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

The state of the scan. A scan can be In Progress, * Complete, or Failed.

*/ inline bool ScanStateHasBeenSet() const { return m_scanStateHasBeenSet; } /** *

The state of the scan. A scan can be In Progress, * Complete, or Failed.

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

The state of the scan. A scan can be In Progress, * Complete, or Failed.

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

The state of the scan. A scan can be In Progress, * Complete, or Failed.

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

The state of the scan. A scan can be In Progress, * Complete, or Failed.

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

The time the scan was last updated. A scan is updated when it is re-run.

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

The time the scan was last updated. A scan is updated when it is re-run.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The time the scan was last updated. A scan is updated when it is re-run.

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

The time the scan was last updated. A scan is updated when it is re-run.

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

The time the scan was last updated. A scan is updated when it is re-run.

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

The time the scan was last updated. A scan is updated when it is re-run.

*/ inline ScanSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_runId; bool m_runIdHasBeenSet = false; Aws::String m_scanName; bool m_scanNameHasBeenSet = false; Aws::String m_scanNameArn; bool m_scanNameArnHasBeenSet = false; ScanState m_scanState; bool m_scanStateHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws