Interface ExpenseField.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ExpenseField.Builder,ExpenseField>,SdkBuilder<ExpenseField.Builder,ExpenseField>,SdkPojo
- Enclosing class:
- ExpenseField
@Mutable @NotThreadSafe public static interface ExpenseField.Builder extends SdkPojo, CopyableBuilder<ExpenseField.Builder,ExpenseField>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ExpenseField.Buildercurrency(Consumer<ExpenseCurrency.Builder> currency)Shows the kind of currency, both the code and confidence associated with any monatary value detected.ExpenseField.Buildercurrency(ExpenseCurrency currency)Shows the kind of currency, both the code and confidence associated with any monatary value detected.ExpenseField.BuildergroupProperties(Collection<ExpenseGroupProperty> 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.ExpenseField.BuildergroupProperties(Consumer<ExpenseGroupProperty.Builder>... 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.ExpenseField.BuildergroupProperties(ExpenseGroupProperty... 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.default ExpenseField.BuilderlabelDetection(Consumer<ExpenseDetection.Builder> labelDetection)The explicitly stated label of a detected element.ExpenseField.BuilderlabelDetection(ExpenseDetection labelDetection)The explicitly stated label of a detected element.ExpenseField.BuilderpageNumber(Integer pageNumber)The page number the value was detected on.default ExpenseField.Buildertype(Consumer<ExpenseType.Builder> type)The implied label of a detected element.ExpenseField.Buildertype(ExpenseType type)The implied label of a detected element.default ExpenseField.BuildervalueDetection(Consumer<ExpenseDetection.Builder> valueDetection)The value of a detected element.ExpenseField.BuildervalueDetection(ExpenseDetection valueDetection)The value of a detected element.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
type
ExpenseField.Builder type(ExpenseType type)
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
- Parameters:
type- The implied label of a detected element. Present alongside LabelDetection for explicit elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
default ExpenseField.Builder type(Consumer<ExpenseType.Builder> type)
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
This is a convenience method that creates an instance of theExpenseType.Builderavoiding the need to create one manually viaExpenseType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totype(ExpenseType).- Parameters:
type- a consumer that will call methods onExpenseType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
type(ExpenseType)
-
labelDetection
ExpenseField.Builder labelDetection(ExpenseDetection labelDetection)
The explicitly stated label of a detected element.
- Parameters:
labelDetection- The explicitly stated label of a detected element.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labelDetection
default ExpenseField.Builder labelDetection(Consumer<ExpenseDetection.Builder> labelDetection)
The explicitly stated label of a detected element.
This is a convenience method that creates an instance of theExpenseDetection.Builderavoiding the need to create one manually viaExpenseDetection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolabelDetection(ExpenseDetection).- Parameters:
labelDetection- a consumer that will call methods onExpenseDetection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
labelDetection(ExpenseDetection)
-
valueDetection
ExpenseField.Builder valueDetection(ExpenseDetection valueDetection)
The value of a detected element. Present in explicit and implicit elements.
- Parameters:
valueDetection- The value of a detected element. Present in explicit and implicit elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueDetection
default ExpenseField.Builder valueDetection(Consumer<ExpenseDetection.Builder> valueDetection)
The value of a detected element. Present in explicit and implicit elements.
This is a convenience method that creates an instance of theExpenseDetection.Builderavoiding the need to create one manually viaExpenseDetection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalueDetection(ExpenseDetection).- Parameters:
valueDetection- a consumer that will call methods onExpenseDetection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
valueDetection(ExpenseDetection)
-
pageNumber
ExpenseField.Builder pageNumber(Integer pageNumber)
The page number the value was detected on.
- Parameters:
pageNumber- The page number the value was detected on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currency
ExpenseField.Builder currency(ExpenseCurrency currency)
Shows the kind of currency, both the code and confidence associated with any monatary value detected.
- Parameters:
currency- Shows the kind of currency, both the code and confidence associated with any monatary value detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currency
default ExpenseField.Builder currency(Consumer<ExpenseCurrency.Builder> currency)
Shows the kind of currency, both the code and confidence associated with any monatary value detected.
This is a convenience method that creates an instance of theExpenseCurrency.Builderavoiding the need to create one manually viaExpenseCurrency.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocurrency(ExpenseCurrency).- Parameters:
currency- a consumer that will call methods onExpenseCurrency.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
currency(ExpenseCurrency)
-
groupProperties
ExpenseField.Builder groupProperties(Collection<ExpenseGroupProperty> 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupProperties
ExpenseField.Builder groupProperties(ExpenseGroupProperty... 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupProperties
ExpenseField.Builder groupProperties(Consumer<ExpenseGroupProperty.Builder>... 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.
This is a convenience method that creates an instance of theExpenseGroupProperty.Builderavoiding the need to create one manually viaExpenseGroupProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#groupProperties(List.) - Parameters:
groupProperties- a consumer that will call methods onExpenseGroupProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#groupProperties(java.util.Collection)
-
-