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

Provides UserID metadata along with the confidence in the match of this * UserID with the input face.

See Also:

AWS * API Reference

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

Describes the UserID metadata.

*/ inline double GetSimilarity() const{ return m_similarity; } /** *

Describes the UserID metadata.

*/ inline bool SimilarityHasBeenSet() const { return m_similarityHasBeenSet; } /** *

Describes the UserID metadata.

*/ inline void SetSimilarity(double value) { m_similarityHasBeenSet = true; m_similarity = value; } /** *

Describes the UserID metadata.

*/ inline UserMatch& WithSimilarity(double value) { SetSimilarity(value); return *this;} /** *

Confidence in the match of this UserID with the input face.

*/ inline const MatchedUser& GetUser() const{ return m_user; } /** *

Confidence in the match of this UserID with the input face.

*/ inline bool UserHasBeenSet() const { return m_userHasBeenSet; } /** *

Confidence in the match of this UserID with the input face.

*/ inline void SetUser(const MatchedUser& value) { m_userHasBeenSet = true; m_user = value; } /** *

Confidence in the match of this UserID with the input face.

*/ inline void SetUser(MatchedUser&& value) { m_userHasBeenSet = true; m_user = std::move(value); } /** *

Confidence in the match of this UserID with the input face.

*/ inline UserMatch& WithUser(const MatchedUser& value) { SetUser(value); return *this;} /** *

Confidence in the match of this UserID with the input face.

*/ inline UserMatch& WithUser(MatchedUser&& value) { SetUser(std::move(value)); return *this;} private: double m_similarity; bool m_similarityHasBeenSet = false; MatchedUser m_user; bool m_userHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws