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

Settings for the IMAGE_PROPERTIES feature type.

See Also:

AWS * API Reference

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

The maximum number of dominant colors to return when detecting labels in an * image. The default value is 10.

*/ inline int GetMaxDominantColors() const{ return m_maxDominantColors; } /** *

The maximum number of dominant colors to return when detecting labels in an * image. The default value is 10.

*/ inline bool MaxDominantColorsHasBeenSet() const { return m_maxDominantColorsHasBeenSet; } /** *

The maximum number of dominant colors to return when detecting labels in an * image. The default value is 10.

*/ inline void SetMaxDominantColors(int value) { m_maxDominantColorsHasBeenSet = true; m_maxDominantColors = value; } /** *

The maximum number of dominant colors to return when detecting labels in an * image. The default value is 10.

*/ inline DetectLabelsImagePropertiesSettings& WithMaxDominantColors(int value) { SetMaxDominantColors(value); return *this;} private: int m_maxDominantColors; bool m_maxDominantColorsHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws