Interface CreditMemoDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreditMemoDetails.Builder,,CreditMemoDetails> SdkBuilder<CreditMemoDetails.Builder,,CreditMemoDetails> SdkPojo
- Enclosing class:
CreditMemoDetails
@Mutable
@NotThreadSafe
public static interface CreditMemoDetails.Builder
extends SdkPojo, CopyableBuilder<CreditMemoDetails.Builder,CreditMemoDetails>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreditMemoDetails.BuilderbillingPeriod(Consumer<BillingPeriod.Builder> billingPeriod) The billing period the credit memo applies to: the period of the usage it credits.billingPeriod(BillingPeriod billingPeriod) The billing period the credit memo applies to: the period of the usage it credits.The invoice ID that Amazon Web Services Invoicing issued for the credit memo: the document number printed on it, shown in the Amazon Web Services Billing and Cost Management console and returned by the Amazon Web Services Invoicing API asInvoiceId.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
invoiceId
The invoice ID that Amazon Web Services Invoicing issued for the credit memo: the document number printed on it, shown in the Amazon Web Services Billing and Cost Management console and returned by the Amazon Web Services Invoicing API as
InvoiceId.GetFinancialRecordandBatchGetFinancialRecordalso accept it, asinvoiceIdentifier.- Parameters:
invoiceId- The invoice ID that Amazon Web Services Invoicing issued for the credit memo: the document number printed on it, shown in the Amazon Web Services Billing and Cost Management console and returned by the Amazon Web Services Invoicing API asInvoiceId.GetFinancialRecordandBatchGetFinancialRecordalso accept it, asinvoiceIdentifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPeriod
The billing period the credit memo applies to: the period of the usage it credits.
- Parameters:
billingPeriod- The billing period the credit memo applies to: the period of the usage it credits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingPeriod
The billing period the credit memo applies to: the period of the usage it credits.
This is a convenience method that creates an instance of theBillingPeriod.Builderavoiding the need to create one manually viaBillingPeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobillingPeriod(BillingPeriod).- Parameters:
billingPeriod- a consumer that will call methods onBillingPeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-