Interface BatchCreateBillScenarioUsageModificationEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchCreateBillScenarioUsageModificationEntry.Builder,
,BatchCreateBillScenarioUsageModificationEntry> SdkBuilder<BatchCreateBillScenarioUsageModificationEntry.Builder,
,BatchCreateBillScenarioUsageModificationEntry> SdkPojo
- Enclosing class:
BatchCreateBillScenarioUsageModificationEntry
-
Method Summary
Modifier and TypeMethodDescriptionamounts
(Collection<UsageAmount> amounts) The amount of usage you want to create for the service use you are modeling.amounts
(Consumer<UsageAmount.Builder>... amounts) The amount of usage you want to create for the service use you are modeling.amounts
(UsageAmount... amounts) The amount of usage you want to create for the service use you are modeling.availabilityZone
(String availabilityZone) The Availability Zone that this usage line uses.An optional group identifier for the usage modification.historicalUsage
(Consumer<HistoricalUsageEntity.Builder> historicalUsage) Historical usage data associated with this modification, if available.historicalUsage
(HistoricalUsageEntity historicalUsage) Historical usage data associated with this modification, if available.A unique identifier for this entry in the batch operation.The specific operation associated with this usage modification.serviceCode
(String serviceCode) The Amazon Web Services service code for this usage modification.usageAccountId
(String usageAccountId) The Amazon Web Services account ID to which this usage will be applied to.Describes the usage details of the usage line 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 for this usage modification. This identifies the specific Amazon Web Services service to the customer as a unique short abbreviation. For example,
AmazonEC2
andAWSKMS
.- Parameters:
serviceCode
- The Amazon Web Services service code for this usage modification. This identifies the specific Amazon Web Services service to the customer as a unique short abbreviation. For example,AmazonEC2
andAWSKMS
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageType
Describes the usage details of the usage line item.
- Parameters:
usageType
- Describes the usage details of the usage line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
The specific operation associated with this usage modification. Describes the specific Amazon Web Services operation that this usage line models. For example,
RunInstances
indicates the operation of an Amazon EC2 instance.- Parameters:
operation
- The specific operation associated with this usage modification. Describes the specific Amazon Web Services operation that this usage line models. For example,RunInstances
indicates the operation of an Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
The Availability Zone that this usage line uses.
- Parameters:
availabilityZone
- The Availability Zone that this usage line uses.- 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. This can be any valid string. This key is useful to identify errors associated with any usage entry as any error is returned with this key.
- Parameters:
key
- A unique identifier for this entry in the batch operation. This can be any valid string. This key is useful to identify errors associated with any usage entry as any error is returned with this key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
An optional group identifier for the usage modification.
- Parameters:
group
- An optional group identifier for the usage modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAccountId
The Amazon Web Services account ID to which this usage will be applied to.
- Parameters:
usageAccountId
- The Amazon Web Services account ID to which this usage will be applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amounts
The amount of usage you want to create for the service use you are modeling.
- Parameters:
amounts
- The amount of usage you want to create for the service use you are modeling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amounts
The amount of usage you want to create for the service use you are modeling.
- Parameters:
amounts
- The amount of usage you want to create for the service use you are modeling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amounts
BatchCreateBillScenarioUsageModificationEntry.Builder amounts(Consumer<UsageAmount.Builder>... amounts) The amount of usage you want to create for the service use you are modeling.
This is a convenience method that creates an instance of theUsageAmount.Builder
avoiding the need to create one manually viaUsageAmount.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toamounts(List<UsageAmount>)
.- Parameters:
amounts
- a consumer that will call methods onUsageAmount.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
historicalUsage
BatchCreateBillScenarioUsageModificationEntry.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 BatchCreateBillScenarioUsageModificationEntry.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.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:
-