/* * 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 CreateCollection operation. /// Creates a collection in an AWS Region. You can add faces to the collection using the /// IndexFaces operation. /// /// /// /// For example, you might create collections, one for each of your application users. /// A user can then index faces using the IndexFaces operation and persist /// results in a specific collection. Then, a user can search the collection for faces /// in the user-specific container. /// /// /// /// When you create a collection, it is associated with the latest version of the face /// model version. /// /// /// /// Collection names are case-sensitive. /// /// /// /// This operation requires permissions to perform the rekognition:CreateCollection /// action. If you want to tag your collection, you also require permission to perform /// the rekognition:TagResource operation. /// /// public partial class CreateCollectionRequest : AmazonRekognitionRequest { private string _collectionId; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property CollectionId. /// /// ID for the collection that you are creating. /// /// [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 Tags. /// /// A set of tags (key-value pairs) that you want to attach to the collection. /// /// [AWSProperty(Min=0, Max=200)] public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }