Interface UsageTotal.Builder

  • Method Details

    • accountId

      UsageTotal.Builder accountId(String accountId)

      The account ID of the account that usage data was retrieved for.

      Parameters:
      accountId - The account ID of the account that usage data was retrieved for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usage

      An object representing the total usage for an account.

      Parameters:
      usage - An object representing the total usage for an account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usage

      UsageTotal.Builder usage(Usage... usage)

      An object representing the total usage for an account.

      Parameters:
      usage - An object representing the total usage for an account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usage

      An object representing the total usage for an account.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to usage(List<Usage>).

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