Interface UsageAccountResult.Builder

All Superinterfaces:
Buildable, CopyableBuilder<UsageAccountResult.Builder,UsageAccountResult>, SdkBuilder<UsageAccountResult.Builder,UsageAccountResult>, SdkPojo
Enclosing class:
UsageAccountResult

public static interface UsageAccountResult.Builder extends SdkPojo, CopyableBuilder<UsageAccountResult.Builder,UsageAccountResult>
  • Method Details

    • accountId

      UsageAccountResult.Builder accountId(String accountId)

      The Account ID that generated usage.

      Parameters:
      accountId - The Account ID that generated usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • total

      Represents the total of usage for the Account ID.

      Parameters:
      total - Represents the total of usage for the Account ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • total

      Represents the total of usage for the Account ID.

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

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

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