Interface WorkloadEstimateUsageItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WorkloadEstimateUsageItem.Builder,
,WorkloadEstimateUsageItem> SdkBuilder<WorkloadEstimateUsageItem.Builder,
,WorkloadEstimateUsageItem> SdkPojo
- Enclosing class:
WorkloadEstimateUsageItem
-
Method Summary
Modifier and TypeMethodDescriptionThe estimated cost for this usage item.The currency of the estimated cost.currency
(CurrencyCode currency) The currency of the estimated cost.The group identifier for this usage item.historicalUsage
(Consumer<HistoricalUsageEntity.Builder> historicalUsage) Historical usage data associated with this item, if available.historicalUsage
(HistoricalUsageEntity historicalUsage) Historical usage data associated with this item, if available.The unique identifier of this usage item.The location associated with this usage item.The specific operation associated with this usage item.The estimated usage quantity for this item.quantity
(WorkloadEstimateUsageQuantity quantity) The estimated usage quantity for this item.serviceCode
(String serviceCode) The Amazon Web Services service code associated with this usage item.The current status of this usage item.status
(WorkloadEstimateCostStatus status) The current status of this usage item.usageAccountId
(String usageAccountId) The Amazon Web Services account ID associated with this usage item.The type of usage for this item.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 associated with this usage item.
- Parameters:
serviceCode
- The Amazon Web Services service code associated with this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageType
The type of usage for this item.
- Parameters:
usageType
- The type of usage for this item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
The specific operation associated with this usage item.
- Parameters:
operation
- The specific operation associated with this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The location associated with this usage item.
- Parameters:
location
- The location associated with this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The unique identifier of this usage item.
- Parameters:
id
- The unique identifier of this usage item.- 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 item.
- Parameters:
usageAccountId
- The Amazon Web Services account ID associated with this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
The group identifier for this usage item.
- Parameters:
group
- The group identifier for this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantity
The estimated usage quantity for this item.
- Parameters:
quantity
- The estimated usage quantity for this item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantity
default WorkloadEstimateUsageItem.Builder quantity(Consumer<WorkloadEstimateUsageQuantity.Builder> quantity) The estimated usage quantity for this item.
This is a convenience method that creates an instance of theWorkloadEstimateUsageQuantity.Builder
avoiding the need to create one manually viaWorkloadEstimateUsageQuantity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toquantity(WorkloadEstimateUsageQuantity)
.- Parameters:
quantity
- a consumer that will call methods onWorkloadEstimateUsageQuantity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cost
The estimated cost for this usage item.
- Parameters:
cost
- The estimated cost for this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currency
The currency of the estimated cost.
- Parameters:
currency
- The currency of the estimated cost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currency
The currency of the estimated cost.
- Parameters:
currency
- The currency of the estimated cost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of this usage item.
- Parameters:
status
- The current status of this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of this usage item.
- Parameters:
status
- The current status of this usage item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
historicalUsage
Historical usage data associated with this item, if available.
- Parameters:
historicalUsage
- Historical usage data associated with this item, if available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
historicalUsage
default WorkloadEstimateUsageItem.Builder historicalUsage(Consumer<HistoricalUsageEntity.Builder> historicalUsage) Historical usage data associated with this item, 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:
-