/* * 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 { /// /// Label detection settings to use on a streaming video. Defining the settings is required /// in the request parameter for CreateStreamProcessor. Including this setting /// in the CreateStreamProcessor request enables you to use the stream processor /// for label detection. You can then select what you want the stream processor to detect, /// such as people or pets. When the stream processor has started, one notification is /// sent for each object class specified. For example, if packages and pets are selected, /// one SNS notification is published the first time a package is detected and one SNS /// notification is published the first time a pet is detected, as well as an end-of-session /// summary. /// public partial class ConnectedHomeSettings { private List _labels = new List(); private float? _minConfidence; /// /// Gets and sets the property Labels. /// /// Specifies what you want to detect in the video, such as people, packages, or pets. /// The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", /// and "ALL". /// /// [AWSProperty(Required=true, Min=1, Max=128)] public List Labels { get { return this._labels; } set { this._labels = value; } } // Check to see if Labels property is set internal bool IsSetLabels() { return this._labels != null && this._labels.Count > 0; } /// /// Gets and sets the property MinConfidence. /// /// The minimum confidence required to label an object in the video. /// /// [AWSProperty(Min=0, Max=100)] public float MinConfidence { get { return this._minConfidence.GetValueOrDefault(); } set { this._minConfidence = value; } } // Check to see if MinConfidence property is set internal bool IsSetMinConfidence() { return this._minConfidence.HasValue; } } }