/** * 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 Rekognition { namespace Model { /** */ class StartFaceSearchRequest : public RekognitionRequest { public: AWS_REKOGNITION_API StartFaceSearchRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartFaceSearch"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The video you want to search. The video must be stored in an Amazon S3 * bucket.

*/ inline const Video& GetVideo() const{ return m_video; } /** *

The video you want to search. The video must be stored in an Amazon S3 * bucket.

*/ inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; } /** *

The video you want to search. The video must be stored in an Amazon S3 * bucket.

*/ inline void SetVideo(const Video& value) { m_videoHasBeenSet = true; m_video = value; } /** *

The video you want to search. The video must be stored in an Amazon S3 * bucket.

*/ inline void SetVideo(Video&& value) { m_videoHasBeenSet = true; m_video = std::move(value); } /** *

The video you want to search. The video must be stored in an Amazon S3 * bucket.

*/ inline StartFaceSearchRequest& WithVideo(const Video& value) { SetVideo(value); return *this;} /** *

The video you want to search. The video must be stored in an Amazon S3 * bucket.

*/ inline StartFaceSearchRequest& WithVideo(Video&& value) { SetVideo(std::move(value)); return *this;} /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline StartFaceSearchRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline StartFaceSearchRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Idempotent token used to identify the start request. If you use the same * token with multiple StartFaceSearch requests, the same * JobId is returned. Use ClientRequestToken to prevent * the same job from being accidently started more than once.

*/ inline StartFaceSearchRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The minimum confidence in the person match to return. For example, don't * return any matches where confidence in matches is less than 70%. The default * value is 80%.

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

The minimum confidence in the person match to return. For example, don't * return any matches where confidence in matches is less than 70%. The default * value is 80%.

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

The minimum confidence in the person match to return. For example, don't * return any matches where confidence in matches is less than 70%. The default * value is 80%.

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

The minimum confidence in the person match to return. For example, don't * return any matches where confidence in matches is less than 70%. The default * value is 80%.

*/ inline StartFaceSearchRequest& WithFaceMatchThreshold(double value) { SetFaceMatchThreshold(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to * publish the completion status of the search. The Amazon SNS topic must have a * topic name that begins with AmazonRekognition if you are using the * AmazonRekognitionServiceRole permissions policy to access the topic.

*/ inline const NotificationChannel& GetNotificationChannel() const{ return m_notificationChannel; } /** *

The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to * publish the completion status of the search. The Amazon SNS topic must have a * topic name that begins with AmazonRekognition if you are using the * AmazonRekognitionServiceRole permissions policy to access the topic.

*/ inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; } /** *

The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to * publish the completion status of the search. The Amazon SNS topic must have a * topic name that begins with AmazonRekognition if you are using the * AmazonRekognitionServiceRole permissions policy to access the topic.

*/ inline void SetNotificationChannel(const NotificationChannel& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = value; } /** *

The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to * publish the completion status of the search. The Amazon SNS topic must have a * topic name that begins with AmazonRekognition if you are using the * AmazonRekognitionServiceRole permissions policy to access the topic.

*/ inline void SetNotificationChannel(NotificationChannel&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::move(value); } /** *

The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to * publish the completion status of the search. The Amazon SNS topic must have a * topic name that begins with AmazonRekognition if you are using the * AmazonRekognitionServiceRole permissions policy to access the topic.

*/ inline StartFaceSearchRequest& WithNotificationChannel(const NotificationChannel& value) { SetNotificationChannel(value); return *this;} /** *

The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to * publish the completion status of the search. The Amazon SNS topic must have a * topic name that begins with AmazonRekognition if you are using the * AmazonRekognitionServiceRole permissions policy to access the topic.

*/ inline StartFaceSearchRequest& WithNotificationChannel(NotificationChannel&& value) { SetNotificationChannel(std::move(value)); return *this;} /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline const Aws::String& GetJobTag() const{ return m_jobTag; } /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; } /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline void SetJobTag(const Aws::String& value) { m_jobTagHasBeenSet = true; m_jobTag = value; } /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline void SetJobTag(Aws::String&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::move(value); } /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline void SetJobTag(const char* value) { m_jobTagHasBeenSet = true; m_jobTag.assign(value); } /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline StartFaceSearchRequest& WithJobTag(const Aws::String& value) { SetJobTag(value); return *this;} /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline StartFaceSearchRequest& WithJobTag(Aws::String&& value) { SetJobTag(std::move(value)); return *this;} /** *

An identifier you specify that's returned in the completion notification * that's published to your Amazon Simple Notification Service topic. For example, * you can use JobTag to group related jobs and identify them in the * completion notification.

*/ inline StartFaceSearchRequest& WithJobTag(const char* value) { SetJobTag(value); return *this;} private: Video m_video; bool m_videoHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; double m_faceMatchThreshold; bool m_faceMatchThresholdHasBeenSet = false; Aws::String m_collectionId; bool m_collectionIdHasBeenSet = false; NotificationChannel m_notificationChannel; bool m_notificationChannelHasBeenSet = false; Aws::String m_jobTag; bool m_jobTagHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws