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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UsageDataSourceResult.BuilderdataSource(String dataSource)The data source type that generated usage.UsageDataSourceResult.BuilderdataSource(DataSource dataSource)The data source type that generated usage.default UsageDataSourceResult.Buildertotal(Consumer<Total.Builder> total)Represents the total of usage for the specified data source.UsageDataSourceResult.Buildertotal(Total total)Represents the total of usage for the specified data source.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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,DataSource
-
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:
DataSource,DataSource
-
total
UsageDataSourceResult.Builder total(Total 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
default UsageDataSourceResult.Builder total(Consumer<Total.Builder> total)
Represents the total of usage for the specified data source.
This is a convenience method that creates an instance of theTotal.Builderavoiding the need to create one manually viaTotal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototal(Total).- Parameters:
total- a consumer that will call methods onTotal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
total(Total)
-
-