/* * 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 DetectModerationLabels operation. /// Detects unsafe content in a specified JPEG or PNG format image. Use DetectModerationLabels /// to moderate images depending on your requirements. For example, you might want to /// filter images that contain nudity, but not images containing suggestive content. /// /// /// /// To filter images, use the labels returned by DetectModerationLabels to /// determine which types of content are appropriate. /// /// /// /// For information about moderation labels, see Detecting Unsafe Content in the Amazon /// Rekognition Developer Guide. /// /// /// /// You pass the input image either as base64-encoded image bytes or as a reference to /// an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition /// operations, passing image bytes is not supported. The image must be either a PNG or /// JPEG formatted file. /// /// public partial class DetectModerationLabelsRequest : AmazonRekognitionRequest { private HumanLoopConfig _humanLoopConfig; private Image _image; private float? _minConfidence; /// /// Gets and sets the property HumanLoopConfig. /// /// Sets up the configuration for human evaluation, including the FlowDefinition the image /// will be sent to. /// /// public HumanLoopConfig HumanLoopConfig { get { return this._humanLoopConfig; } set { this._humanLoopConfig = value; } } // Check to see if HumanLoopConfig property is set internal bool IsSetHumanLoopConfig() { return this._humanLoopConfig != null; } /// /// Gets and sets the property Image. /// /// The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to /// call Amazon Rekognition operations, passing base64-encoded image bytes is not supported. /// /// /// /// /// If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode /// image bytes passed using the Bytes field. For more information, see Images /// in the Amazon Rekognition developer guide. /// /// [AWSProperty(Required=true)] public Image Image { get { return this._image; } set { this._image = value; } } // Check to see if Image property is set internal bool IsSetImage() { return this._image != null; } /// /// Gets and sets the property MinConfidence. /// /// Specifies the minimum confidence level for the labels to return. Amazon Rekognition /// doesn't return any labels with a confidence level lower than this specified value. /// /// /// /// If you don't specify MinConfidence, the operation returns labels with /// confidence values greater than or equal to 50 percent. /// /// [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; } } }