Interface InvoiceUnit.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InvoiceUnit.Builder,InvoiceUnit>,SdkBuilder<InvoiceUnit.Builder,InvoiceUnit>,SdkPojo
- Enclosing class:
- InvoiceUnit
public static interface InvoiceUnit.Builder extends SdkPojo, CopyableBuilder<InvoiceUnit.Builder,InvoiceUnit>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InvoiceUnit.Builderdescription(String description)The assigned description for an invoice unit.InvoiceUnit.BuilderinvoiceReceiver(String invoiceReceiver)The account that receives invoices related to the invoice unit.InvoiceUnit.BuilderinvoiceUnitArn(String invoiceUnitArn)ARN to identify an invoice unit.InvoiceUnit.BuilderlastModified(Instant lastModified)The last time the invoice unit was updated.InvoiceUnit.Buildername(String name)A unique name that is distinctive within your Amazon Web Services.default InvoiceUnit.Builderrule(Consumer<InvoiceUnitRule.Builder> rule)AnInvoiceUnitRuleobject used the categorize invoice units.InvoiceUnit.Builderrule(InvoiceUnitRule rule)AnInvoiceUnitRuleobject used the categorize invoice units.InvoiceUnit.BuildertaxInheritanceDisabled(Boolean taxInheritanceDisabled)Whether the invoice unit based tax inheritance is/ should be enabled or disabled.-
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
-
invoiceUnitArn
InvoiceUnit.Builder invoiceUnitArn(String invoiceUnitArn)
ARN to identify an invoice unit. This information can't be modified or deleted.
- Parameters:
invoiceUnitArn- ARN to identify an invoice unit. This information can't be modified or deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invoiceReceiver
InvoiceUnit.Builder invoiceReceiver(String invoiceReceiver)
The account that receives invoices related to the invoice unit.
- Parameters:
invoiceReceiver- The account that receives invoices related to the invoice unit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
InvoiceUnit.Builder name(String name)
A unique name that is distinctive within your Amazon Web Services.
- Parameters:
name- A unique name that is distinctive within your Amazon Web Services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
InvoiceUnit.Builder description(String description)
The assigned description for an invoice unit. This information can't be modified or deleted.
- Parameters:
description- The assigned description for an invoice unit. This information can't be modified or deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taxInheritanceDisabled
InvoiceUnit.Builder taxInheritanceDisabled(Boolean taxInheritanceDisabled)
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
- Parameters:
taxInheritanceDisabled- Whether the invoice unit based tax inheritance is/ should be enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
InvoiceUnit.Builder rule(InvoiceUnitRule rule)
An
InvoiceUnitRuleobject used the categorize invoice units.- Parameters:
rule- AnInvoiceUnitRuleobject used the categorize invoice units.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
default InvoiceUnit.Builder rule(Consumer<InvoiceUnitRule.Builder> rule)
An
This is a convenience method that creates an instance of theInvoiceUnitRuleobject used the categorize invoice units.InvoiceUnitRule.Builderavoiding the need to create one manually viaInvoiceUnitRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(InvoiceUnitRule).- Parameters:
rule- a consumer that will call methods onInvoiceUnitRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rule(InvoiceUnitRule)
-
lastModified
InvoiceUnit.Builder lastModified(Instant lastModified)
The last time the invoice unit was updated. This is important to determine the version of invoice unit configuration used to create the invoices. Any invoice created after this modified time will use this invoice unit configuration.
- Parameters:
lastModified- The last time the invoice unit was updated. This is important to determine the version of invoice unit configuration used to create the invoices. Any invoice created after this modified time will use this invoice unit configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-