Interface UsageDataSourceResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UsageDataSourceResult.Builder,,UsageDataSourceResult> SdkBuilder<UsageDataSourceResult.Builder,,UsageDataSourceResult> SdkPojo
- Enclosing class:
UsageDataSourceResult
@Mutable
@NotThreadSafe
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.Buildertotal(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.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:
-