Interface UsageDataSourceResult.Builder

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

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

    • dataSource

      UsageDataSourceResult.Builder dataSource(String dataSource)

      The data source type that generated usage.

      Parameters:
      dataSource - The data source type that generated usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataSource

      UsageDataSourceResult.Builder dataSource(DataSource dataSource)

      The data source type that generated usage.

      Parameters:
      dataSource - The data source type that generated usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • total

      Represents the total of usage for the specified data source.

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

      Represents the total of usage for the specified data source.

      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: