/** * 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 imagebuilder { namespace Model { /** *

Shows the vulnerability scan status for a specific image, and the reason for * that status.

See Also:

AWS * API Reference

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

The current state of vulnerability scans for the image.

*/ inline const ImageScanStatus& GetStatus() const{ return m_status; } /** *

The current state of vulnerability scans for the image.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current state of vulnerability scans for the image.

*/ inline void SetStatus(const ImageScanStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current state of vulnerability scans for the image.

*/ inline void SetStatus(ImageScanStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current state of vulnerability scans for the image.

*/ inline ImageScanState& WithStatus(const ImageScanStatus& value) { SetStatus(value); return *this;} /** *

The current state of vulnerability scans for the image.

*/ inline ImageScanState& WithStatus(ImageScanStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The reason for the scan status for the image.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason for the scan status for the image.

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

The reason for the scan status for the image.

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

The reason for the scan status for the image.

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

The reason for the scan status for the image.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason for the scan status for the image.

*/ inline ImageScanState& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason for the scan status for the image.

*/ inline ImageScanState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason for the scan status for the image.

*/ inline ImageScanState& WithReason(const char* value) { SetReason(value); return *this;} private: ImageScanStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws