/** * 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 { /** *

An instance of a label returned by Amazon Rekognition Image * (DetectLabels) or by Amazon Rekognition Video * (GetLabelDetection).

See Also:

AWS * API Reference

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

The position of the label instance on the image.

*/ inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; } /** *

The position of the label instance on the image.

*/ inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; } /** *

The position of the label instance on the image.

*/ inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; } /** *

The position of the label instance on the image.

*/ inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); } /** *

The position of the label instance on the image.

*/ inline Instance& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;} /** *

The position of the label instance on the image.

*/ inline Instance& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;} /** *

The confidence that Amazon Rekognition has in the accuracy of the bounding * box.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

The confidence that Amazon Rekognition has in the accuracy of the bounding * box.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

The confidence that Amazon Rekognition has in the accuracy of the bounding * box.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

The confidence that Amazon Rekognition has in the accuracy of the bounding * box.

*/ inline Instance& WithConfidence(double value) { SetConfidence(value); return *this;} /** *

The dominant colors found in an individual instance of a label.

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

The dominant colors found in an individual instance of a label.

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

The dominant colors found in an individual instance of a label.

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

The dominant colors found in an individual instance of a label.

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

The dominant colors found in an individual instance of a label.

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

The dominant colors found in an individual instance of a label.

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

The dominant colors found in an individual instance of a label.

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

The dominant colors found in an individual instance of a label.

*/ inline Instance& AddDominantColors(DominantColor&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(std::move(value)); return *this; } private: BoundingBox m_boundingBox; bool m_boundingBoxHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; Aws::Vector m_dominantColors; bool m_dominantColorsHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws