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

The status of the scan.

See Also:

AWS * API Reference

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

The reason for the scan.

*/ inline const ScanStatusReason& GetReason() const{ return m_reason; } /** *

The reason for the scan.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for the scan.

*/ inline void SetReason(const ScanStatusReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for the scan.

*/ inline void SetReason(ScanStatusReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for the scan.

*/ inline ScanStatus& WithReason(const ScanStatusReason& value) { SetReason(value); return *this;} /** *

The reason for the scan.

*/ inline ScanStatus& WithReason(ScanStatusReason&& value) { SetReason(std::move(value)); return *this;} /** *

The status code of the scan.

*/ inline const ScanStatusCode& GetStatusCode() const{ return m_statusCode; } /** *

The status code of the scan.

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

The status code of the scan.

*/ inline void SetStatusCode(const ScanStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

The status code of the scan.

*/ inline void SetStatusCode(ScanStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *

The status code of the scan.

*/ inline ScanStatus& WithStatusCode(const ScanStatusCode& value) { SetStatusCode(value); return *this;} /** *

The status code of the scan.

*/ inline ScanStatus& WithStatusCode(ScanStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} private: ScanStatusReason m_reason; bool m_reasonHasBeenSet = false; ScanStatusCode m_statusCode; bool m_statusCodeHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws