/** * 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 a recognized celebrity.

See Also:

AWS * API Reference

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

An array of URLs pointing to additional celebrity information.

*/ inline const Aws::Vector& GetUrls() const{ return m_urls; } /** *

An array of URLs pointing to additional celebrity information.

*/ inline bool UrlsHasBeenSet() const { return m_urlsHasBeenSet; } /** *

An array of URLs pointing to additional celebrity information.

*/ inline void SetUrls(const Aws::Vector& value) { m_urlsHasBeenSet = true; m_urls = value; } /** *

An array of URLs pointing to additional celebrity information.

*/ inline void SetUrls(Aws::Vector&& value) { m_urlsHasBeenSet = true; m_urls = std::move(value); } /** *

An array of URLs pointing to additional celebrity information.

*/ inline CelebrityDetail& WithUrls(const Aws::Vector& value) { SetUrls(value); return *this;} /** *

An array of URLs pointing to additional celebrity information.

*/ inline CelebrityDetail& WithUrls(Aws::Vector&& value) { SetUrls(std::move(value)); return *this;} /** *

An array of URLs pointing to additional celebrity information.

*/ inline CelebrityDetail& AddUrls(const Aws::String& value) { m_urlsHasBeenSet = true; m_urls.push_back(value); return *this; } /** *

An array of URLs pointing to additional celebrity information.

*/ inline CelebrityDetail& AddUrls(Aws::String&& value) { m_urlsHasBeenSet = true; m_urls.push_back(std::move(value)); return *this; } /** *

An array of URLs pointing to additional celebrity information.

*/ inline CelebrityDetail& AddUrls(const char* value) { m_urlsHasBeenSet = true; m_urls.push_back(value); return *this; } /** *

The name of the celebrity.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the celebrity.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the celebrity.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the celebrity.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the celebrity.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the celebrity.

*/ inline CelebrityDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the celebrity.

*/ inline CelebrityDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the celebrity.

*/ inline CelebrityDetail& WithName(const char* value) { SetName(value); return *this;} /** *

The unique identifier for the celebrity.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the celebrity.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the celebrity.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the celebrity.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the celebrity.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the celebrity.

*/ inline CelebrityDetail& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the celebrity.

*/ inline CelebrityDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the celebrity.

*/ inline CelebrityDetail& WithId(const char* value) { SetId(value); return *this;} /** *

The confidence, in percentage, that Amazon Rekognition has that the * recognized face is the celebrity.

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

The confidence, in percentage, that Amazon Rekognition has that the * recognized face is the celebrity.

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

The confidence, in percentage, that Amazon Rekognition has that the * recognized face is the celebrity.

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

The confidence, in percentage, that Amazon Rekognition has that the * recognized face is the celebrity.

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

Bounding box around the body of a celebrity.

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

Bounding box around the body of a celebrity.

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

Bounding box around the body of a celebrity.

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

Bounding box around the body of a celebrity.

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

Bounding box around the body of a celebrity.

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

Bounding box around the body of a celebrity.

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

Face details for the recognized celebrity.

*/ inline const FaceDetail& GetFace() const{ return m_face; } /** *

Face details for the recognized celebrity.

*/ inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; } /** *

Face details for the recognized celebrity.

*/ inline void SetFace(const FaceDetail& value) { m_faceHasBeenSet = true; m_face = value; } /** *

Face details for the recognized celebrity.

*/ inline void SetFace(FaceDetail&& value) { m_faceHasBeenSet = true; m_face = std::move(value); } /** *

Face details for the recognized celebrity.

*/ inline CelebrityDetail& WithFace(const FaceDetail& value) { SetFace(value); return *this;} /** *

Face details for the recognized celebrity.

*/ inline CelebrityDetail& WithFace(FaceDetail&& value) { SetFace(std::move(value)); return *this;} /** *

Retrieves the known gender for the celebrity.

*/ inline const KnownGender& GetKnownGender() const{ return m_knownGender; } /** *

Retrieves the known gender for the celebrity.

*/ inline bool KnownGenderHasBeenSet() const { return m_knownGenderHasBeenSet; } /** *

Retrieves the known gender for the celebrity.

*/ inline void SetKnownGender(const KnownGender& value) { m_knownGenderHasBeenSet = true; m_knownGender = value; } /** *

Retrieves the known gender for the celebrity.

*/ inline void SetKnownGender(KnownGender&& value) { m_knownGenderHasBeenSet = true; m_knownGender = std::move(value); } /** *

Retrieves the known gender for the celebrity.

*/ inline CelebrityDetail& WithKnownGender(const KnownGender& value) { SetKnownGender(value); return *this;} /** *

Retrieves the known gender for the celebrity.

*/ inline CelebrityDetail& WithKnownGender(KnownGender&& value) { SetKnownGender(std::move(value)); return *this;} private: Aws::Vector m_urls; bool m_urlsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; BoundingBox m_boundingBox; bool m_boundingBoxHasBeenSet = false; FaceDetail m_face; bool m_faceHasBeenSet = false; KnownGender m_knownGender; bool m_knownGenderHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws