/*
* 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 textract-2018-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.Textract.Model
{
///
/// Breakdown of detected information, seperated into the catagories Type, LabelDetection,
/// and ValueDetection
///
public partial class ExpenseField
{
private ExpenseCurrency _currency;
private List _groupProperties = new List();
private ExpenseDetection _labelDetection;
private int? _pageNumber;
private ExpenseType _type;
private ExpenseDetection _valueDetection;
///
/// Gets and sets the property Currency.
///
/// Shows the kind of currency, both the code and confidence associated with any monatary
/// value detected.
///
///
public ExpenseCurrency Currency
{
get { return this._currency; }
set { this._currency = value; }
}
// Check to see if Currency property is set
internal bool IsSetCurrency()
{
return this._currency != null;
}
///
/// Gets and sets the property GroupProperties.
///
/// Shows which group a response object belongs to, such as whether an address line belongs
/// to the vendor's address or the recipent's address.
///
///
public List GroupProperties
{
get { return this._groupProperties; }
set { this._groupProperties = value; }
}
// Check to see if GroupProperties property is set
internal bool IsSetGroupProperties()
{
return this._groupProperties != null && this._groupProperties.Count > 0;
}
///
/// Gets and sets the property LabelDetection.
///
/// The explicitly stated label of a detected element.
///
///
public ExpenseDetection LabelDetection
{
get { return this._labelDetection; }
set { this._labelDetection = value; }
}
// Check to see if LabelDetection property is set
internal bool IsSetLabelDetection()
{
return this._labelDetection != null;
}
///
/// Gets and sets the property PageNumber.
///
/// The page number the value was detected on.
///
///
[AWSProperty(Min=0)]
public int PageNumber
{
get { return this._pageNumber.GetValueOrDefault(); }
set { this._pageNumber = value; }
}
// Check to see if PageNumber property is set
internal bool IsSetPageNumber()
{
return this._pageNumber.HasValue;
}
///
/// Gets and sets the property Type.
///
/// The implied label of a detected element. Present alongside LabelDetection for explicit
/// elements.
///
///
public ExpenseType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
///
/// Gets and sets the property ValueDetection.
///
/// The value of a detected element. Present in explicit and implicit elements.
///
///
public ExpenseDetection ValueDetection
{
get { return this._valueDetection; }
set { this._valueDetection = value; }
}
// Check to see if ValueDetection property is set
internal bool IsSetValueDetection()
{
return this._valueDetection != null;
}
}
}