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

Settings for the DetectLabels request. Settings can include filters for both * GENERAL_LABELS and IMAGE_PROPERTIES. GENERAL_LABELS filters can be inclusive or * exclusive and applied to individual labels or label categories. IMAGE_PROPERTIES * filters allow specification of a maximum number of dominant * colors.

See Also:

AWS * API Reference

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

Contains the specified filters for GENERAL_LABELS.

*/ inline const GeneralLabelsSettings& GetGeneralLabels() const{ return m_generalLabels; } /** *

Contains the specified filters for GENERAL_LABELS.

*/ inline bool GeneralLabelsHasBeenSet() const { return m_generalLabelsHasBeenSet; } /** *

Contains the specified filters for GENERAL_LABELS.

*/ inline void SetGeneralLabels(const GeneralLabelsSettings& value) { m_generalLabelsHasBeenSet = true; m_generalLabels = value; } /** *

Contains the specified filters for GENERAL_LABELS.

*/ inline void SetGeneralLabels(GeneralLabelsSettings&& value) { m_generalLabelsHasBeenSet = true; m_generalLabels = std::move(value); } /** *

Contains the specified filters for GENERAL_LABELS.

*/ inline DetectLabelsSettings& WithGeneralLabels(const GeneralLabelsSettings& value) { SetGeneralLabels(value); return *this;} /** *

Contains the specified filters for GENERAL_LABELS.

*/ inline DetectLabelsSettings& WithGeneralLabels(GeneralLabelsSettings&& value) { SetGeneralLabels(std::move(value)); return *this;} /** *

Contains the chosen number of maximum dominant colors in an image.

*/ inline const DetectLabelsImagePropertiesSettings& GetImageProperties() const{ return m_imageProperties; } /** *

Contains the chosen number of maximum dominant colors in an image.

*/ inline bool ImagePropertiesHasBeenSet() const { return m_imagePropertiesHasBeenSet; } /** *

Contains the chosen number of maximum dominant colors in an image.

*/ inline void SetImageProperties(const DetectLabelsImagePropertiesSettings& value) { m_imagePropertiesHasBeenSet = true; m_imageProperties = value; } /** *

Contains the chosen number of maximum dominant colors in an image.

*/ inline void SetImageProperties(DetectLabelsImagePropertiesSettings&& value) { m_imagePropertiesHasBeenSet = true; m_imageProperties = std::move(value); } /** *

Contains the chosen number of maximum dominant colors in an image.

*/ inline DetectLabelsSettings& WithImageProperties(const DetectLabelsImagePropertiesSettings& value) { SetImageProperties(value); return *this;} /** *

Contains the chosen number of maximum dominant colors in an image.

*/ inline DetectLabelsSettings& WithImageProperties(DetectLabelsImagePropertiesSettings&& value) { SetImageProperties(std::move(value)); return *this;} private: GeneralLabelsSettings m_generalLabels; bool m_generalLabelsHasBeenSet = false; DetectLabelsImagePropertiesSettings m_imageProperties; bool m_imagePropertiesHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws