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

Information about the quality and dominant colors of an input image. Quality * and color information is returned for the entire image, foreground, and * background.

See Also:

AWS * API Reference

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

Information about the quality of the image foreground as defined by * brightness, sharpness, and contrast. The higher the value the greater the * brightness, sharpness, and contrast respectively.

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

Information about the quality of the image foreground as defined by * brightness, sharpness, and contrast. The higher the value the greater the * brightness, sharpness, and contrast respectively.

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

Information about the quality of the image foreground as defined by * brightness, sharpness, and contrast. The higher the value the greater the * brightness, sharpness, and contrast respectively.

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

Information about the quality of the image foreground as defined by * brightness, sharpness, and contrast. The higher the value the greater the * brightness, sharpness, and contrast respectively.

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

Information about the quality of the image foreground as defined by * brightness, sharpness, and contrast. The higher the value the greater the * brightness, sharpness, and contrast respectively.

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

Information about the quality of the image foreground as defined by * brightness, sharpness, and contrast. The higher the value the greater the * brightness, sharpness, and contrast respectively.

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

Information about the dominant colors found in an image, described 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; } /** *

Information about the dominant colors found in an image, described 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; } /** *

Information about the dominant colors found in an image, described 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; } /** *

Information about the dominant colors found in an image, described 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); } /** *

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

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

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

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

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

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

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

*/ inline DetectLabelsImageProperties& AddDominantColors(DominantColor&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(std::move(value)); return *this; } /** *

Information about the properties of an image’s foreground, including the * foreground’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline const DetectLabelsImageForeground& GetForeground() const{ return m_foreground; } /** *

Information about the properties of an image’s foreground, including the * foreground’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline bool ForegroundHasBeenSet() const { return m_foregroundHasBeenSet; } /** *

Information about the properties of an image’s foreground, including the * foreground’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline void SetForeground(const DetectLabelsImageForeground& value) { m_foregroundHasBeenSet = true; m_foreground = value; } /** *

Information about the properties of an image’s foreground, including the * foreground’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline void SetForeground(DetectLabelsImageForeground&& value) { m_foregroundHasBeenSet = true; m_foreground = std::move(value); } /** *

Information about the properties of an image’s foreground, including the * foreground’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline DetectLabelsImageProperties& WithForeground(const DetectLabelsImageForeground& value) { SetForeground(value); return *this;} /** *

Information about the properties of an image’s foreground, including the * foreground’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline DetectLabelsImageProperties& WithForeground(DetectLabelsImageForeground&& value) { SetForeground(std::move(value)); return *this;} /** *

Information about the properties of an image’s background, including the * background’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline const DetectLabelsImageBackground& GetBackground() const{ return m_background; } /** *

Information about the properties of an image’s background, including the * background’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline bool BackgroundHasBeenSet() const { return m_backgroundHasBeenSet; } /** *

Information about the properties of an image’s background, including the * background’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline void SetBackground(const DetectLabelsImageBackground& value) { m_backgroundHasBeenSet = true; m_background = value; } /** *

Information about the properties of an image’s background, including the * background’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline void SetBackground(DetectLabelsImageBackground&& value) { m_backgroundHasBeenSet = true; m_background = std::move(value); } /** *

Information about the properties of an image’s background, including the * background’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline DetectLabelsImageProperties& WithBackground(const DetectLabelsImageBackground& value) { SetBackground(value); return *this;} /** *

Information about the properties of an image’s background, including the * background’s quality and dominant colors, including the quality and dominant * colors of the image.

*/ inline DetectLabelsImageProperties& WithBackground(DetectLabelsImageBackground&& value) { SetBackground(std::move(value)); return *this;} private: DetectLabelsImageQuality m_quality; bool m_qualityHasBeenSet = false; Aws::Vector m_dominantColors; bool m_dominantColorsHasBeenSet = false; DetectLabelsImageForeground m_foreground; bool m_foregroundHasBeenSet = false; DetectLabelsImageBackground m_background; bool m_backgroundHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws