/* * Copyright 2010-2023 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. */ package com.amazonaws.services.textract.model; import java.io.Serializable; /** *
* Breakdown of detected information, seperated into the catagories Type, * LabelDetection, and ValueDetection *
*/ public class ExpenseField implements Serializable { /** ** The implied label of a detected element. Present alongside LabelDetection * for explicit elements. *
*/ private ExpenseType type; /** ** The explicitly stated label of a detected element. *
*/ private ExpenseDetection labelDetection; /** ** The value of a detected element. Present in explicit and implicit * elements. *
*/ private ExpenseDetection valueDetection; /** ** The page number the value was detected on. *
*
* Constraints:
* Range: 0 -
*/
private Integer pageNumber;
/**
*
* Shows the kind of currency, both the code and confidence associated with * any monatary value detected. *
*/ private ExpenseCurrency currency; /** ** 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. *
*/ private java.util.List* The implied label of a detected element. Present alongside LabelDetection * for explicit elements. *
* * @return* The implied label of a detected element. Present alongside * LabelDetection for explicit elements. *
*/ public ExpenseType getType() { return type; } /** ** The implied label of a detected element. Present alongside LabelDetection * for explicit elements. *
* * @param type* The implied label of a detected element. Present alongside * LabelDetection for explicit elements. *
*/ public void setType(ExpenseType type) { this.type = type; } /** ** The implied label of a detected element. Present alongside LabelDetection * for explicit elements. *
** Returns a reference to this object so that method calls can be chained * together. * * @param type
* The implied label of a detected element. Present alongside * LabelDetection for explicit elements. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseField withType(ExpenseType type) { this.type = type; return this; } /** ** The explicitly stated label of a detected element. *
* * @return* The explicitly stated label of a detected element. *
*/ public ExpenseDetection getLabelDetection() { return labelDetection; } /** ** The explicitly stated label of a detected element. *
* * @param labelDetection* The explicitly stated label of a detected element. *
*/ public void setLabelDetection(ExpenseDetection labelDetection) { this.labelDetection = labelDetection; } /** ** The explicitly stated label of a detected element. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelDetection
* The explicitly stated label of a detected element. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseField withLabelDetection(ExpenseDetection labelDetection) { this.labelDetection = labelDetection; return this; } /** ** The value of a detected element. Present in explicit and implicit * elements. *
* * @return* The value of a detected element. Present in explicit and implicit * elements. *
*/ public ExpenseDetection getValueDetection() { return valueDetection; } /** ** The value of a detected element. Present in explicit and implicit * elements. *
* * @param valueDetection* The value of a detected element. Present in explicit and * implicit elements. *
*/ public void setValueDetection(ExpenseDetection valueDetection) { this.valueDetection = valueDetection; } /** ** The value of a detected element. Present in explicit and implicit * elements. *
** Returns a reference to this object so that method calls can be chained * together. * * @param valueDetection
* The value of a detected element. Present in explicit and * implicit elements. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseField withValueDetection(ExpenseDetection valueDetection) { this.valueDetection = valueDetection; return this; } /** ** The page number the value was detected on. *
*
* Constraints:
* Range: 0 -
*
* @return
* The page number the value was detected on. *
*/ public Integer getPageNumber() { return pageNumber; } /** ** The page number the value was detected on. *
*
* Constraints:
* Range: 0 -
*
* @param pageNumber
* The page number the value was detected on. *
*/ public void setPageNumber(Integer pageNumber) { this.pageNumber = pageNumber; } /** ** The page number the value was detected on. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 0 -
*
* @param pageNumber
* The page number the value was detected on. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseField withPageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** ** Shows the kind of currency, both the code and confidence associated with * any monatary value detected. *
* * @return* Shows the kind of currency, both the code and confidence * associated with any monatary value detected. *
*/ public ExpenseCurrency getCurrency() { return currency; } /** ** Shows the kind of currency, both the code and confidence associated with * any monatary value detected. *
* * @param currency* Shows the kind of currency, both the code and confidence * associated with any monatary value detected. *
*/ public void setCurrency(ExpenseCurrency currency) { this.currency = currency; } /** ** Shows the kind of currency, both the code and confidence associated with * any monatary value detected. *
** Returns a reference to this object so that method calls can be chained * together. * * @param currency
* Shows the kind of currency, both the code and confidence * associated with any monatary value detected. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseField withCurrency(ExpenseCurrency currency) { this.currency = currency; return this; } /** ** 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. *
* * @return* 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 java.util.List* 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. *
* * @param 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 void setGroupProperties(java.util.Collection* 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseField withGroupProperties(ExpenseGroupProperty... groupProperties) { if (getGroupProperties() == null) { this.groupProperties = new java.util.ArrayList* 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ExpenseField withGroupProperties( java.util.Collection