Interface OneTimePriceDefinition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OneTimePriceDefinition.Builder,,OneTimePriceDefinition> SdkBuilder<OneTimePriceDefinition.Builder,,OneTimePriceDefinition> SdkPojo
- Enclosing class:
OneTimePriceDefinition
@Mutable
@NotThreadSafe
public static interface OneTimePriceDefinition.Builder
extends SdkPojo, CopyableBuilder<OneTimePriceDefinition.Builder,OneTimePriceDefinition>
-
Method Summary
Modifier and TypeMethodDescriptionThe units of metricId one purchase credits.The metric one purchase credits.A human-readable display name for the one-time price.default OneTimePriceDefinition.Builderprice(Consumer<Price.Builder> price) The amount and currency charged for one purchase of the one-time price.The amount and currency charged for one purchase of the one-time price.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
-
name
A human-readable display name for the one-time price.
- Parameters:
name- A human-readable display name for the one-time price.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
The amount and currency charged for one purchase of the one-time price.
- Parameters:
price- The amount and currency charged for one purchase of the one-time price.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
The amount and currency charged for one purchase of the one-time price.
This is a convenience method that creates an instance of thePrice.Builderavoiding the need to create one manually viaPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprice(Price).- Parameters:
price- a consumer that will call methods onPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricId
The metric one purchase credits.
- Parameters:
metricId- The metric one purchase credits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacity
The units of metricId one purchase credits.
- Parameters:
capacity- The units of metricId one purchase credits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-