Interface BillScenarioUsageModificationItem.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<BillScenarioUsageModificationItem.Builder,BillScenarioUsageModificationItem>,SdkBuilder<BillScenarioUsageModificationItem.Builder,BillScenarioUsageModificationItem>,SdkPojo
- Enclosing class:
- BillScenarioUsageModificationItem
public static interface BillScenarioUsageModificationItem.Builder extends SdkPojo, CopyableBuilder<BillScenarioUsageModificationItem.Builder,BillScenarioUsageModificationItem>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BillScenarioUsageModificationItem.BuilderavailabilityZone(String availabilityZone)The availability zone associated with this usage modification, if applicable.BillScenarioUsageModificationItem.Buildergroup(String group)The group identifier for the usage modification.default BillScenarioUsageModificationItem.BuilderhistoricalUsage(Consumer<HistoricalUsageEntity.Builder> historicalUsage)Historical usage data associated with this modification, if available.BillScenarioUsageModificationItem.BuilderhistoricalUsage(HistoricalUsageEntity historicalUsage)Historical usage data associated with this modification, if available.BillScenarioUsageModificationItem.Builderid(String id)The unique identifier of the usage modification.BillScenarioUsageModificationItem.Builderlocation(String location)The location associated with this usage modification.BillScenarioUsageModificationItem.Builderoperation(String operation)The specific operation associated with this usage modification.BillScenarioUsageModificationItem.Builderquantities(Collection<UsageQuantity> quantities)The modified usage quantities.BillScenarioUsageModificationItem.Builderquantities(Consumer<UsageQuantity.Builder>... quantities)The modified usage quantities.BillScenarioUsageModificationItem.Builderquantities(UsageQuantity... quantities)The modified usage quantities.BillScenarioUsageModificationItem.BuilderserviceCode(String serviceCode)The Amazon Web Services service code for this usage modification.BillScenarioUsageModificationItem.BuilderusageAccountId(String usageAccountId)The Amazon Web Services account ID associated with this usage modification.BillScenarioUsageModificationItem.BuilderusageType(String usageType)The type of usage being modified.-
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 Detail
-
serviceCode
BillScenarioUsageModificationItem.Builder serviceCode(String serviceCode)
The Amazon Web Services service code for this usage modification.
- Parameters:
serviceCode- The Amazon Web Services service code for this usage modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageType
BillScenarioUsageModificationItem.Builder usageType(String usageType)
The type of usage being modified.
- Parameters:
usageType- The type of usage being modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
BillScenarioUsageModificationItem.Builder operation(String operation)
The specific operation associated with this usage modification.
- Parameters:
operation- The specific operation associated with this usage modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
BillScenarioUsageModificationItem.Builder location(String location)
The location associated with this usage modification.
- Parameters:
location- The location associated with this usage modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
BillScenarioUsageModificationItem.Builder availabilityZone(String availabilityZone)
The availability zone associated with this usage modification, if applicable.
- Parameters:
availabilityZone- The availability zone associated with this usage modification, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
BillScenarioUsageModificationItem.Builder id(String id)
The unique identifier of the usage modification.
- Parameters:
id- The unique identifier of the usage modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
BillScenarioUsageModificationItem.Builder group(String group)
The group identifier for the usage modification.
- Parameters:
group- The group identifier for the usage modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAccountId
BillScenarioUsageModificationItem.Builder usageAccountId(String usageAccountId)
The Amazon Web Services account ID associated with this usage modification.
- Parameters:
usageAccountId- The Amazon Web Services account ID associated with this usage modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantities
BillScenarioUsageModificationItem.Builder quantities(Collection<UsageQuantity> quantities)
The modified usage quantities.
- Parameters:
quantities- The modified usage quantities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantities
BillScenarioUsageModificationItem.Builder quantities(UsageQuantity... quantities)
The modified usage quantities.
- Parameters:
quantities- The modified usage quantities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantities
BillScenarioUsageModificationItem.Builder quantities(Consumer<UsageQuantity.Builder>... quantities)
The modified usage quantities.
This is a convenience method that creates an instance of theUsageQuantity.Builderavoiding the need to create one manually viaUsageQuantity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#quantities(List.) - Parameters:
quantities- a consumer that will call methods onUsageQuantity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#quantities(java.util.Collection)
-
historicalUsage
BillScenarioUsageModificationItem.Builder historicalUsage(HistoricalUsageEntity historicalUsage)
Historical usage data associated with this modification, if available.
- Parameters:
historicalUsage- Historical usage data associated with this modification, if available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
historicalUsage
default BillScenarioUsageModificationItem.Builder historicalUsage(Consumer<HistoricalUsageEntity.Builder> historicalUsage)
Historical usage data associated with this modification, if available.
This is a convenience method that creates an instance of theHistoricalUsageEntity.Builderavoiding the need to create one manually viaHistoricalUsageEntity.builder().When the
Consumercompletes,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:
historicalUsage(HistoricalUsageEntity)
-
-