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

Provides information about a celebrity recognized by the * RecognizeCelebrities operation.

See Also:

AWS * API Reference

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

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

An array of URLs pointing to additional information about the celebrity. If * there is no additional information about the celebrity, this list is empty.

*/ inline Celebrity& 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 Celebrity& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the celebrity.

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

The name of the celebrity.

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

A unique identifier for the celebrity.

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

A unique identifier for the celebrity.

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

A unique identifier for the celebrity.

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

A unique identifier for the celebrity.

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

A unique identifier for the celebrity.

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

A unique identifier for the celebrity.

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

A unique identifier for the celebrity.

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

A unique identifier for the celebrity.

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

Provides information about the celebrity's face, such as its location on the * image.

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

Provides information about the celebrity's face, such as its location on the * image.

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

Provides information about the celebrity's face, such as its location on the * image.

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

Provides information about the celebrity's face, such as its location on the * image.

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

Provides information about the celebrity's face, such as its location on the * image.

*/ inline Celebrity& WithFace(const ComparedFace& value) { SetFace(value); return *this;} /** *

Provides information about the celebrity's face, such as its location on the * image.

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

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

*/ inline double GetMatchConfidence() const{ return m_matchConfidence; } /** *

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

*/ inline bool MatchConfidenceHasBeenSet() const { return m_matchConfidenceHasBeenSet; } /** *

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

*/ inline void SetMatchConfidence(double value) { m_matchConfidenceHasBeenSet = true; m_matchConfidence = value; } /** *

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

*/ inline Celebrity& WithMatchConfidence(double value) { SetMatchConfidence(value); return *this;} inline const KnownGender& GetKnownGender() const{ return m_knownGender; } inline bool KnownGenderHasBeenSet() const { return m_knownGenderHasBeenSet; } inline void SetKnownGender(const KnownGender& value) { m_knownGenderHasBeenSet = true; m_knownGender = value; } inline void SetKnownGender(KnownGender&& value) { m_knownGenderHasBeenSet = true; m_knownGender = std::move(value); } inline Celebrity& WithKnownGender(const KnownGender& value) { SetKnownGender(value); return *this;} inline Celebrity& 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; ComparedFace m_face; bool m_faceHasBeenSet = false; double m_matchConfidence; bool m_matchConfidenceHasBeenSet = false; KnownGender m_knownGender; bool m_knownGenderHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws