Interface BatchCreateWorkloadEstimateUsageEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchCreateWorkloadEstimateUsageEntry.Builder,
,BatchCreateWorkloadEstimateUsageEntry> SdkBuilder<BatchCreateWorkloadEstimateUsageEntry.Builder,
,BatchCreateWorkloadEstimateUsageEntry> SdkPojo
- Enclosing class:
BatchCreateWorkloadEstimateUsageEntry
@Mutable
@NotThreadSafe
public static interface BatchCreateWorkloadEstimateUsageEntry.Builder
extends SdkPojo, CopyableBuilder<BatchCreateWorkloadEstimateUsageEntry.Builder,BatchCreateWorkloadEstimateUsageEntry>
-
Method Summary
Modifier and TypeMethodDescriptionThe estimated usage amount.An optional group identifier for the usage estimate.historicalUsage
(Consumer<HistoricalUsageEntity.Builder> historicalUsage) Historical usage data associated with this estimate, if available.historicalUsage
(HistoricalUsageEntity historicalUsage) Historical usage data associated with this estimate, if available.A unique identifier for this entry in the batch operation.The specific operation associated with this usage estimate.serviceCode
(String serviceCode) The Amazon Web Services service code for this usage estimate.usageAccountId
(String usageAccountId) The Amazon Web Services account ID associated with this usage estimate.The type of usage being estimated.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, sdkFieldNameToField, sdkFields
-
Method Details
-
serviceCode
The Amazon Web Services service code for this usage estimate.
- Parameters:
serviceCode
- The Amazon Web Services service code for this usage estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageType
The type of usage being estimated.
- Parameters:
usageType
- The type of usage being estimated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
The specific operation associated with this usage estimate.
- Parameters:
operation
- The specific operation associated with this usage estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
A unique identifier for this entry in the batch operation.
- Parameters:
key
- A unique identifier for this entry in the batch operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
An optional group identifier for the usage estimate.
- Parameters:
group
- An optional group identifier for the usage estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAccountId
The Amazon Web Services account ID associated with this usage estimate.
- Parameters:
usageAccountId
- The Amazon Web Services account ID associated with this usage estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amount
The estimated usage amount.
- Parameters:
amount
- The estimated usage amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
historicalUsage
BatchCreateWorkloadEstimateUsageEntry.Builder historicalUsage(HistoricalUsageEntity historicalUsage) Historical usage data associated with this estimate, if available.
- Parameters:
historicalUsage
- Historical usage data associated with this estimate, if available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
historicalUsage
default BatchCreateWorkloadEstimateUsageEntry.Builder historicalUsage(Consumer<HistoricalUsageEntity.Builder> historicalUsage) Historical usage data associated with this estimate, if available.
This is a convenience method that creates an instance of theHistoricalUsageEntity.Builder
avoiding the need to create one manually viaHistoricalUsageEntity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohistoricalUsage(HistoricalUsageEntity)
.- Parameters:
historicalUsage
- a consumer that will call methods onHistoricalUsageEntity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-