/** * 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 AssociateFacesRequest : public RekognitionRequest { public: AWS_REKOGNITION_API AssociateFacesRequest(); // 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 "AssociateFaces"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of an existing collection containing the UserID.

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

The ID of an existing collection containing the UserID.

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

The ID of an existing collection containing the UserID.

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

The ID of an existing collection containing the UserID.

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

The ID of an existing collection containing the UserID.

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

The ID of an existing collection containing the UserID.

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

The ID of an existing collection containing the UserID.

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

The ID of an existing collection containing the UserID.

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

The ID for the existing UserID.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The ID for the existing UserID.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The ID for the existing UserID.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The ID for the existing UserID.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The ID for the existing UserID.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The ID for the existing UserID.

*/ inline AssociateFacesRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The ID for the existing UserID.

*/ inline AssociateFacesRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The ID for the existing UserID.

*/ inline AssociateFacesRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

An array of FaceIDs to associate with the UserID.

*/ inline const Aws::Vector& GetFaceIds() const{ return m_faceIds; } /** *

An array of FaceIDs to associate with the UserID.

*/ inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; } /** *

An array of FaceIDs to associate with the UserID.

*/ inline void SetFaceIds(const Aws::Vector& value) { m_faceIdsHasBeenSet = true; m_faceIds = value; } /** *

An array of FaceIDs to associate with the UserID.

*/ inline void SetFaceIds(Aws::Vector&& value) { m_faceIdsHasBeenSet = true; m_faceIds = std::move(value); } /** *

An array of FaceIDs to associate with the UserID.

*/ inline AssociateFacesRequest& WithFaceIds(const Aws::Vector& value) { SetFaceIds(value); return *this;} /** *

An array of FaceIDs to associate with the UserID.

*/ inline AssociateFacesRequest& WithFaceIds(Aws::Vector&& value) { SetFaceIds(std::move(value)); return *this;} /** *

An array of FaceIDs to associate with the UserID.

*/ inline AssociateFacesRequest& AddFaceIds(const Aws::String& value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(value); return *this; } /** *

An array of FaceIDs to associate with the UserID.

*/ inline AssociateFacesRequest& AddFaceIds(Aws::String&& value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(std::move(value)); return *this; } /** *

An array of FaceIDs to associate with the UserID.

*/ inline AssociateFacesRequest& AddFaceIds(const char* value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(value); return *this; } /** *

An optional value specifying the minimum confidence in the UserID match to * return. The default value is 75.

*/ inline double GetUserMatchThreshold() const{ return m_userMatchThreshold; } /** *

An optional value specifying the minimum confidence in the UserID match to * return. The default value is 75.

*/ inline bool UserMatchThresholdHasBeenSet() const { return m_userMatchThresholdHasBeenSet; } /** *

An optional value specifying the minimum confidence in the UserID match to * return. The default value is 75.

*/ inline void SetUserMatchThreshold(double value) { m_userMatchThresholdHasBeenSet = true; m_userMatchThreshold = value; } /** *

An optional value specifying the minimum confidence in the UserID match to * return. The default value is 75.

*/ inline AssociateFacesRequest& WithUserMatchThreshold(double value) { SetUserMatchThreshold(value); return *this;} /** *

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

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

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

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

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

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

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

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

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

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

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

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

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

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

Idempotent token used to identify the request to AssociateFaces. * If you use the same token with multiple AssociateFaces requests, * the same response is returned. Use ClientRequestToken to prevent the same * request from being processed more than once.

*/ inline AssociateFacesRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_collectionId; bool m_collectionIdHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::Vector m_faceIds; bool m_faceIdsHasBeenSet = false; double m_userMatchThreshold; bool m_userMatchThresholdHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws