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
Modifier and TypeMethodDescriptiondataSource
(String dataSource) The data source type that generated usage.dataSource
(DataSource dataSource) The data source type that generated usage.default UsageDataSourceResult.Builder
total
(Consumer<Total.Builder> total) Represents the total of usage for the specified data source.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 Details
-
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
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 theTotal.Builder
avoiding the need to create one manually viaTotal.builder()
.When the
Consumer
completes,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:
-