Interface OneTimePrice.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OneTimePrice.Builder,,OneTimePrice> SdkBuilder<OneTimePrice.Builder,,OneTimePrice> SdkPojo
- Enclosing class:
OneTimePrice
@Mutable
@NotThreadSafe
public static interface OneTimePrice.Builder
extends SdkPojo, CopyableBuilder<OneTimePrice.Builder,OneTimePrice>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app the one-time price belongs to.The Amazon Resource Name (ARN) of the one-time price.default OneTimePrice.Builderdefinition(Consumer<OneTimePriceDefinition.Builder> definition) The definition of the one-time price, including its display name, price, metric, and credited capacity.definition(OneTimePriceDefinition definition) The definition of the one-time price, including its display name, price, metric, and credited capacity.oneTimePriceId(String oneTimePriceId) The service-assigned ID of the one-time price.The offering stage the one-time price was read from.The offering stage the one-time price was read from.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
-
arn
The Amazon Resource Name (ARN) of the one-time price.
- Parameters:
arn- The Amazon Resource Name (ARN) of the one-time price.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appId
The ID of the app the one-time price belongs to.
- Parameters:
appId- The ID of the app the one-time price belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oneTimePriceId
The service-assigned ID of the one-time price.
- Parameters:
oneTimePriceId- The service-assigned ID of the one-time price.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The definition of the one-time price, including its display name, price, metric, and credited capacity.
- Parameters:
definition- The definition of the one-time price, including its display name, price, metric, and credited capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The definition of the one-time price, including its display name, price, metric, and credited capacity.
This is a convenience method that creates an instance of theOneTimePriceDefinition.Builderavoiding the need to create one manually viaOneTimePriceDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(OneTimePriceDefinition).- Parameters:
definition- a consumer that will call methods onOneTimePriceDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stage
The offering stage the one-time price was read from.
- Parameters:
stage- The offering stage the one-time price was read from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stage
The offering stage the one-time price was read from.
- Parameters:
stage- The offering stage the one-time price was read from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-