Interface GetInvoiceUnitResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetInvoiceUnitResponse.Builder,
,GetInvoiceUnitResponse> InvoicingResponse.Builder
,SdkBuilder<GetInvoiceUnitResponse.Builder,
,GetInvoiceUnitResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetInvoiceUnitResponse
@Mutable
@NotThreadSafe
public static interface GetInvoiceUnitResponse.Builder
extends InvoicingResponse.Builder, SdkPojo, CopyableBuilder<GetInvoiceUnitResponse.Builder,GetInvoiceUnitResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The assigned description for an invoice unit.invoiceReceiver
(String invoiceReceiver) The Amazon Web Services account ID chosen to be the receiver of an invoice unit.invoiceUnitArn
(String invoiceUnitArn) The ARN to identify an invoice unit.lastModified
(Instant lastModified) The most recent date the invoice unit response was updated.The unique name of the invoice unit that is shown on the generated invoice.default GetInvoiceUnitResponse.Builder
rule
(Consumer<InvoiceUnitRule.Builder> rule) Sets the value of the Rule property for this object.rule
(InvoiceUnitRule rule) Sets the value of the Rule property for this object.taxInheritanceDisabled
(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.services.invoicing.model.InvoicingResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
invoiceUnitArn
The ARN to identify an invoice unit. This information can't be modified or deleted.
- Parameters:
invoiceUnitArn
- The 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
The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.
- Parameters:
invoiceReceiver
- The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The unique name of the invoice unit that is shown on the generated invoice.
- Parameters:
name
- The unique name of the invoice unit that is shown on the generated invoice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The assigned description for an invoice unit.
- Parameters:
description
- The assigned description for an invoice unit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
Sets the value of the Rule property for this object.- Parameters:
rule
- The new value for the Rule property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
Sets the value of the Rule property for this object. This is a convenience method that creates an instance of theInvoiceUnitRule.Builder
avoiding the need to create one manually viaInvoiceUnitRule.builder()
.When the
Consumer
completes,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:
-
lastModified
The most recent date the invoice unit response was updated.
- Parameters:
lastModified
- The most recent date the invoice unit response was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-