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

The current status of an image scan.

See Also:

AWS * API Reference

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

The current state of an image scan.

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

The current state of an image scan.

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

The current state of an image scan.

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

The current state of an image scan.

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

The current state of an image scan.

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

The current state of an image scan.

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

The description of the image scan status.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the image scan status.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the image scan status.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the image scan status.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the image scan status.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the image scan status.

*/ inline ImageScanStatus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the image scan status.

*/ inline ImageScanStatus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the image scan status.

*/ inline ImageScanStatus& WithDescription(const char* value) { SetDescription(value); return *this;} private: ScanStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws