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

Input face recognition parameters for an Amazon Rekognition stream processor. * Includes the collection to use for face recognition and the face attributes to * detect. Defining the settings is required in the request parameter for * CreateStreamProcessor.

See Also:

AWS * API Reference

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

The ID of a collection that contains faces that you want to search for.

*/ inline const Aws::String& GetCollectionId() const{ return m_collectionId; } /** *

The ID of a collection that contains faces that you want to search for.

*/ inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; } /** *

The ID of a collection that contains faces that you want to search for.

*/ inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; } /** *

The ID of a collection that contains faces that you want to search for.

*/ inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); } /** *

The ID of a collection that contains faces that you want to search for.

*/ inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); } /** *

The ID of a collection that contains faces that you want to search for.

*/ inline FaceSearchSettings& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;} /** *

The ID of a collection that contains faces that you want to search for.

*/ inline FaceSearchSettings& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;} /** *

The ID of a collection that contains faces that you want to search for.

*/ inline FaceSearchSettings& WithCollectionId(const char* value) { SetCollectionId(value); return *this;} /** *

Minimum face match confidence score that must be met to return a result for a * recognized face. The default is 80. 0 is the lowest confidence. 100 is the * highest confidence. Values between 0 and 100 are accepted, and values lower than * 80 are set to 80.

*/ inline double GetFaceMatchThreshold() const{ return m_faceMatchThreshold; } /** *

Minimum face match confidence score that must be met to return a result for a * recognized face. The default is 80. 0 is the lowest confidence. 100 is the * highest confidence. Values between 0 and 100 are accepted, and values lower than * 80 are set to 80.

*/ inline bool FaceMatchThresholdHasBeenSet() const { return m_faceMatchThresholdHasBeenSet; } /** *

Minimum face match confidence score that must be met to return a result for a * recognized face. The default is 80. 0 is the lowest confidence. 100 is the * highest confidence. Values between 0 and 100 are accepted, and values lower than * 80 are set to 80.

*/ inline void SetFaceMatchThreshold(double value) { m_faceMatchThresholdHasBeenSet = true; m_faceMatchThreshold = value; } /** *

Minimum face match confidence score that must be met to return a result for a * recognized face. The default is 80. 0 is the lowest confidence. 100 is the * highest confidence. Values between 0 and 100 are accepted, and values lower than * 80 are set to 80.

*/ inline FaceSearchSettings& WithFaceMatchThreshold(double value) { SetFaceMatchThreshold(value); return *this;} private: Aws::String m_collectionId; bool m_collectionIdHasBeenSet = false; double m_faceMatchThreshold; bool m_faceMatchThresholdHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws