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

The foreground of the image with regard to image quality and dominant * colors.

See Also:

AWS * API Reference

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

The quality of the image foreground as defined by brightness and * sharpness.

*/ inline const DetectLabelsImageQuality& GetQuality() const{ return m_quality; } /** *

The quality of the image foreground as defined by brightness and * sharpness.

*/ inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; } /** *

The quality of the image foreground as defined by brightness and * sharpness.

*/ inline void SetQuality(const DetectLabelsImageQuality& value) { m_qualityHasBeenSet = true; m_quality = value; } /** *

The quality of the image foreground as defined by brightness and * sharpness.

*/ inline void SetQuality(DetectLabelsImageQuality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); } /** *

The quality of the image foreground as defined by brightness and * sharpness.

*/ inline DetectLabelsImageForeground& WithQuality(const DetectLabelsImageQuality& value) { SetQuality(value); return *this;} /** *

The quality of the image foreground as defined by brightness and * sharpness.

*/ inline DetectLabelsImageForeground& WithQuality(DetectLabelsImageQuality&& value) { SetQuality(std::move(value)); return *this;} /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline const Aws::Vector& GetDominantColors() const{ return m_dominantColors; } /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline bool DominantColorsHasBeenSet() const { return m_dominantColorsHasBeenSet; } /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline void SetDominantColors(const Aws::Vector& value) { m_dominantColorsHasBeenSet = true; m_dominantColors = value; } /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline void SetDominantColors(Aws::Vector&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors = std::move(value); } /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline DetectLabelsImageForeground& WithDominantColors(const Aws::Vector& value) { SetDominantColors(value); return *this;} /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline DetectLabelsImageForeground& WithDominantColors(Aws::Vector&& value) { SetDominantColors(std::move(value)); return *this;} /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline DetectLabelsImageForeground& AddDominantColors(const DominantColor& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(value); return *this; } /** *

The dominant colors found in the foreground of an image, defined with RGB * values, CSS color name, simplified color name, and PixelPercentage (the * percentage of image pixels that have a particular color).

*/ inline DetectLabelsImageForeground& AddDominantColors(DominantColor&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(std::move(value)); return *this; } private: DetectLabelsImageQuality m_quality; bool m_qualityHasBeenSet = false; Aws::Vector m_dominantColors; bool m_dominantColorsHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws