Interface UsageResourceResult.Builder

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

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

    • resource

      UsageResourceResult.Builder resource(String resource)

      The Amazon Web Services resource that generated usage.

      Parameters:
      resource - The Amazon Web Services resource that generated usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • total

      Represents the sum total of usage for the specified resource type.

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

      Represents the sum total of usage for the specified resource type.

      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: