Interface CreditAllocationHistoryEntry.Builder

  • Method Details

    • creditId

      The identifier of the credit that was applied.

      Parameters:
      creditId - The identifier of the credit that was applied.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creditAmount

      CreditAllocationHistoryEntry.Builder creditAmount(Amount creditAmount)

      The amount of credit applied. Negative values represent credits that reduced the bill.

      Parameters:
      creditAmount - The amount of credit applied. Negative values represent credits that reduced the bill.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creditAmount

      default CreditAllocationHistoryEntry.Builder creditAmount(Consumer<Amount.Builder> creditAmount)

      The amount of credit applied. Negative values represent credits that reduced the bill.

      This is a convenience method that creates an instance of the Amount.Builder avoiding the need to create one manually via Amount.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to creditAmount(Amount).

      Parameters:
      creditAmount - a consumer that will call methods on Amount.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • description

      CreditAllocationHistoryEntry.Builder description(String description)

      A human-readable description of the credit allocation.

      Parameters:
      description - A human-readable description of the credit allocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      The Amazon Web Services account the credit was applied to.

      Parameters:
      accountId - The Amazon Web Services account the credit was applied to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • appliedServiceName

      CreditAllocationHistoryEntry.Builder appliedServiceName(String appliedServiceName)

      The Amazon Web Services service the credit was applied to.

      Parameters:
      appliedServiceName - The Amazon Web Services service the credit was applied to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billingMonth

      CreditAllocationHistoryEntry.Builder billingMonth(String billingMonth)

      The billing month of the application in YYYY-MM format.

      Parameters:
      billingMonth - The billing month of the application in YYYY-MM format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isEstimatedBill

      CreditAllocationHistoryEntry.Builder isEstimatedBill(Boolean isEstimatedBill)

      true when the entry was applied to an in-flight bill that has not yet been finalized.

      Parameters:
      isEstimatedBill - true when the entry was applied to an in-flight bill that has not yet been finalized.
      Returns:
      Returns a reference to this object so that method calls can be chained together.