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

Information about the pixels in an anomaly mask. For more information, see * Anomaly. PixelAnomaly is only returned by image segmentation * models.

See Also:

AWS * API Reference

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

The percentage area of the image that the anomaly type covers.

*/ inline double GetTotalPercentageArea() const{ return m_totalPercentageArea; } /** *

The percentage area of the image that the anomaly type covers.

*/ inline bool TotalPercentageAreaHasBeenSet() const { return m_totalPercentageAreaHasBeenSet; } /** *

The percentage area of the image that the anomaly type covers.

*/ inline void SetTotalPercentageArea(double value) { m_totalPercentageAreaHasBeenSet = true; m_totalPercentageArea = value; } /** *

The percentage area of the image that the anomaly type covers.

*/ inline PixelAnomaly& WithTotalPercentageArea(double value) { SetTotalPercentageArea(value); return *this;} /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline const Aws::String& GetColor() const{ return m_color; } /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; } /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; } /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); } /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); } /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline PixelAnomaly& WithColor(const Aws::String& value) { SetColor(value); return *this;} /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline PixelAnomaly& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;} /** *

A hex color value for the mask that covers an anomaly type. Each anomaly type * has a different mask color. The color maps to the color of the anomaly type used * in the training dataset.

*/ inline PixelAnomaly& WithColor(const char* value) { SetColor(value); return *this;} private: double m_totalPercentageArea; bool m_totalPercentageAreaHasBeenSet = false; Aws::String m_color; bool m_colorHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws