/*
* 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 lookoutvision-2020-11-20.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.LookoutforVision.Model
{
///
/// Container for the parameters to the DetectAnomalies operation.
/// Detects anomalies in an image that you supply.
///
///
///
/// The response from DetectAnomalies
includes a boolean prediction that
/// the image contains one or more anomalies and a confidence value for the prediction.
/// If the model is an image segmentation model, the response also includes segmentation
/// information for each type of anomaly found in the image.
///
///
///
/// Before calling DetectAnomalies
, you must first start your model with
/// the StartModel operation. You are charged for the amount of time, in minutes,
/// that a model runs and for the number of anomaly detection units that your model uses.
/// If you are not using a model, use the StopModel operation to stop your model.
///
///
///
///
/// For more information, see Detecting anomalies in an image in the Amazon Lookout
/// for Vision developer guide.
///
///
///
/// This operation requires permissions to perform the lookoutvision:DetectAnomalies
/// operation.
///
///
public partial class DetectAnomaliesRequest : AmazonLookoutforVisionRequest
{
private Stream _body;
private string _contentType;
private string _modelVersion;
private string _projectName;
///
/// Gets and sets the property Body.
///
/// The unencrypted image bytes that you want to analyze.
///
///
[AWSProperty(Required=true)]
public Stream Body
{
get { return this._body; }
set { this._body = value; }
}
// Check to see if Body property is set
internal bool IsSetBody()
{
return this._body != null;
}
///
/// Gets and sets the property ContentType.
///
/// The type of the image passed in Body
. Valid values are image/png
/// (PNG format images) and image/jpeg
(JPG format images).
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string ContentType
{
get { return this._contentType; }
set { this._contentType = value; }
}
// Check to see if ContentType property is set
internal bool IsSetContentType()
{
return this._contentType != null;
}
///
/// Gets and sets the property ModelVersion.
///
/// The version of the model that you want to use.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public string ModelVersion
{
get { return this._modelVersion; }
set { this._modelVersion = value; }
}
// Check to see if ModelVersion property is set
internal bool IsSetModelVersion()
{
return this._modelVersion != null;
}
///
/// Gets and sets the property ProjectName.
///
/// The name of the project that contains the model version that you want to use.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string ProjectName
{
get { return this._projectName; }
set { this._projectName = value; }
}
// Check to see if ProjectName property is set
internal bool IsSetProjectName()
{
return this._projectName != null;
}
}
}