/* * 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 { /// /// Structure containing details about the detected label, including the name, detected /// instances, parent labels, and level of confidence. /// /// /// /// /// /// public partial class Label { private List _aliases = new List(); private List _categories = new List(); private float? _confidence; private List _instances = new List(); private string _name; private List _parents = new List(); /// /// Gets and sets the property Aliases. /// /// A list of potential aliases for a given label. /// /// public List Aliases { get { return this._aliases; } set { this._aliases = value; } } // Check to see if Aliases property is set internal bool IsSetAliases() { return this._aliases != null && this._aliases.Count > 0; } /// /// Gets and sets the property Categories. /// /// A list of the categories associated with a given label. /// /// public List Categories { get { return this._categories; } set { this._categories = value; } } // Check to see if Categories property is set internal bool IsSetCategories() { return this._categories != null && this._categories.Count > 0; } /// /// Gets and sets the property Confidence. /// /// Level of confidence. /// /// [AWSProperty(Min=0, Max=100)] public float Confidence { get { return this._confidence.GetValueOrDefault(); } set { this._confidence = value; } } // Check to see if Confidence property is set internal bool IsSetConfidence() { return this._confidence.HasValue; } /// /// Gets and sets the property Instances. /// /// If Label represents an object, Instances contains the bounding /// boxes for each instance of the detected object. Bounding boxes are returned for common /// object labels such as people, cars, furniture, apparel or pets. /// /// public List Instances { get { return this._instances; } set { this._instances = value; } } // Check to see if Instances property is set internal bool IsSetInstances() { return this._instances != null && this._instances.Count > 0; } /// /// Gets and sets the property Name. /// /// The name (label) of the object or scene. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Parents. /// /// The parent labels for a label. The response includes all ancestor labels. /// /// public List Parents { get { return this._parents; } set { this._parents = value; } } // Check to see if Parents property is set internal bool IsSetParents() { return this._parents != null && this._parents.Count > 0; } } }