/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the rekognition-2016-06-27.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Rekognition.Model
{
///
/// Container for the parameters to the AssociateFaces operation.
/// Associates one or more faces with an existing UserID. Takes an array of FaceIds
.
/// Each FaceId
that are present in the FaceIds
list is associated
/// with the provided UserID. The maximum number of total FaceIds
per UserID
/// is 100.
///
///
///
/// The UserMatchThreshold
parameter specifies the minimum user match confidence
/// required for the face to be associated with a UserID that has at least one FaceID
/// already associated. This ensures that the FaceIds
are associated with
/// the right UserID. The value ranges from 0-100 and default value is 75.
///
///
///
/// If successful, an array of AssociatedFace
objects containing the associated
/// FaceIds
is returned. If a given face is already associated with the given
/// UserID
, it will be ignored and will not be returned in the response.
/// If a given face is already associated to a different UserID
, isn't found
/// in the collection, doesn’t meet the UserMatchThreshold
, or there are
/// already 100 faces associated with the UserID
, it will be returned as
/// part of an array of UnsuccessfulFaceAssociations.
///
///
///
/// The UserStatus
reflects the status of an operation which updates a UserID
/// representation with a list of given faces. The UserStatus
can be:
///
/// -
///
/// ACTIVE - All associations or disassociations of FaceID(s) for a UserID are complete.
///
///
-
///
/// CREATED - A UserID has been created, but has no FaceID(s) associated with it.
///
///
-
///
/// UPDATING - A UserID is being updated and there are current associations or disassociations
/// of FaceID(s) taking place.
///
///
///
public partial class AssociateFacesRequest : AmazonRekognitionRequest
{
private string _clientRequestToken;
private string _collectionId;
private List _faceIds = new List();
private string _userId;
private float? _userMatchThreshold;
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Min=1, Max=64)]
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
///
/// Gets and sets the property CollectionId.
///
/// The ID of an existing collection containing the UserID.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string CollectionId
{
get { return this._collectionId; }
set { this._collectionId = value; }
}
// Check to see if CollectionId property is set
internal bool IsSetCollectionId()
{
return this._collectionId != null;
}
///
/// Gets and sets the property FaceIds.
///
/// An array of FaceIDs to associate with the UserID.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public List FaceIds
{
get { return this._faceIds; }
set { this._faceIds = value; }
}
// Check to see if FaceIds property is set
internal bool IsSetFaceIds()
{
return this._faceIds != null && this._faceIds.Count > 0;
}
///
/// Gets and sets the property UserId.
///
/// The ID for the existing UserID.
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string UserId
{
get { return this._userId; }
set { this._userId = value; }
}
// Check to see if UserId property is set
internal bool IsSetUserId()
{
return this._userId != null;
}
///
/// Gets and sets the property UserMatchThreshold.
///
/// An optional value specifying the minimum confidence in the UserID match to return.
/// The default value is 75.
///
///
[AWSProperty(Min=0, Max=100)]
public float UserMatchThreshold
{
get { return this._userMatchThreshold.GetValueOrDefault(); }
set { this._userMatchThreshold = value; }
}
// Check to see if UserMatchThreshold property is set
internal bool IsSetUserMatchThreshold()
{
return this._userMatchThreshold.HasValue;
}
}
}