/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The status of the scan.See Also:
AWS
* API Reference
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