/*
* 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
{
///
/// This is the response object from the GetFaceLivenessSessionResults operation.
///
public partial class GetFaceLivenessSessionResultsResponse : AmazonWebServiceResponse
{
private List _auditImages = new List();
private float? _confidence;
private AuditImage _referenceImage;
private string _sessionId;
private LivenessSessionStatus _status;
///
/// Gets and sets the property AuditImages.
///
/// A set of images from the Face Liveness video that can be used for audit purposes.
/// It includes a bounding box of the face and the Base64-encoded bytes that return an
/// image. If the CreateFaceLivenessSession request included an OutputConfig argument,
/// the image will be uploaded to an S3Object specified in the output configuration.
///
///
public List AuditImages
{
get { return this._auditImages; }
set { this._auditImages = value; }
}
// Check to see if AuditImages property is set
internal bool IsSetAuditImages()
{
return this._auditImages != null && this._auditImages.Count > 0;
}
///
/// Gets and sets the property Confidence.
///
/// Probabalistic confidence score for if the person in the given video was live, represented
/// as a float value between 0 to 100.
///
///
[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 ReferenceImage.
///
/// A high-quality image from the Face Liveness video that can be used for face comparison
/// or search. It includes a bounding box of the face and the Base64-encoded bytes that
/// return an image. If the CreateFaceLivenessSession request included an OutputConfig
/// argument, the image will be uploaded to an S3Object specified in the output configuration.
/// In case the reference image is not returned, it's recommended to retry the Liveness
/// check.
///
///
public AuditImage ReferenceImage
{
get { return this._referenceImage; }
set { this._referenceImage = value; }
}
// Check to see if ReferenceImage property is set
internal bool IsSetReferenceImage()
{
return this._referenceImage != null;
}
///
/// Gets and sets the property SessionId.
///
/// The sessionId for which this request was called.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string SessionId
{
get { return this._sessionId; }
set { this._sessionId = value; }
}
// Check to see if SessionId property is set
internal bool IsSetSessionId()
{
return this._sessionId != null;
}
///
/// Gets and sets the property Status.
///
/// Represents a status corresponding to the state of the session. Possible statuses are:
/// CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.
///
///
[AWSProperty(Required=true)]
public LivenessSessionStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}