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

Structure containing the estimated age range, in years, for a face.

*

Amazon Rekognition estimates an age range for faces detected in the input * image. Estimated age ranges can overlap. A face of a 5-year-old might have an * estimated range of 4-6, while the face of a 6-year-old might have an estimated * range of 4-8.

See Also:

AWS * API Reference

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

The lowest estimated age.

*/ inline int GetLow() const{ return m_low; } /** *

The lowest estimated age.

*/ inline bool LowHasBeenSet() const { return m_lowHasBeenSet; } /** *

The lowest estimated age.

*/ inline void SetLow(int value) { m_lowHasBeenSet = true; m_low = value; } /** *

The lowest estimated age.

*/ inline AgeRange& WithLow(int value) { SetLow(value); return *this;} /** *

The highest estimated age.

*/ inline int GetHigh() const{ return m_high; } /** *

The highest estimated age.

*/ inline bool HighHasBeenSet() const { return m_highHasBeenSet; } /** *

The highest estimated age.

*/ inline void SetHigh(int value) { m_highHasBeenSet = true; m_high = value; } /** *

The highest estimated age.

*/ inline AgeRange& WithHigh(int value) { SetHigh(value); return *this;} private: int m_low; bool m_lowHasBeenSet = false; int m_high; bool m_highHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws