/* * 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 ListFaces operation. /// Returns metadata for faces in the specified collection. This metadata includes information /// such as the bounding box coordinates, the confidence (that the bounding box contains /// a face), and face ID. For an example, see Listing Faces in a Collection in the Amazon /// Rekognition Developer Guide. /// /// /// /// This operation requires permissions to perform the rekognition:ListFaces /// action. /// /// public partial class ListFacesRequest : AmazonRekognitionRequest { private string _collectionId; private List _faceIds = new List(); private int? _maxResults; private string _nextToken; private string _userId; /// /// Gets and sets the property CollectionId. /// /// ID of the collection from which to list the faces. /// /// [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 face IDs to match when listing faces in a collection. /// /// [AWSProperty(Min=1, Max=4096)] 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 MaxResults. /// /// Maximum number of faces to return. /// /// [AWSProperty(Min=0, Max=4096)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// /// Gets and sets the property NextToken. /// /// If the previous response was incomplete (because there is more data to retrieve), /// Amazon Rekognition returns a pagination token in the response. You can use this pagination /// token to retrieve the next set of faces. /// /// [AWSProperty(Max=255)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property UserId. /// /// An array of user IDs to match when listing faces in a collection. /// /// [AWSProperty(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; } } }