/*
* 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
{
///
/// Information about a recognized celebrity.
///
public partial class CelebrityDetail
{
private BoundingBox _boundingBox;
private float? _confidence;
private FaceDetail _face;
private string _id;
private KnownGender _knownGender;
private string _name;
private List _urls = new List();
///
/// Gets and sets the property BoundingBox.
///
/// Bounding box around the body of a celebrity.
///
///
public BoundingBox BoundingBox
{
get { return this._boundingBox; }
set { this._boundingBox = value; }
}
// Check to see if BoundingBox property is set
internal bool IsSetBoundingBox()
{
return this._boundingBox != null;
}
///
/// Gets and sets the property Confidence.
///
/// The confidence, in percentage, that Amazon Rekognition has that the recognized face
/// is the celebrity.
///
///
[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 Face.
///
/// Face details for the recognized celebrity.
///
///
public FaceDetail Face
{
get { return this._face; }
set { this._face = value; }
}
// Check to see if Face property is set
internal bool IsSetFace()
{
return this._face != null;
}
///
/// Gets and sets the property Id.
///
/// The unique identifier for the celebrity.
///
///
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property KnownGender.
///
/// Retrieves the known gender for the celebrity.
///
///
public KnownGender KnownGender
{
get { return this._knownGender; }
set { this._knownGender = value; }
}
// Check to see if KnownGender property is set
internal bool IsSetKnownGender()
{
return this._knownGender != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the celebrity.
///
///
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 Urls.
///
/// An array of URLs pointing to additional celebrity information.
///
///
[AWSProperty(Min=0, Max=255)]
public List Urls
{
get { return this._urls; }
set { this._urls = value; }
}
// Check to see if Urls property is set
internal bool IsSetUrls()
{
return this._urls != null && this._urls.Count > 0;
}
}
}