Interface OfferingTransaction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OfferingTransaction.Builder,,OfferingTransaction> SdkBuilder<OfferingTransaction.Builder,,OfferingTransaction> SdkPojo
- Enclosing class:
OfferingTransaction
@Mutable
@NotThreadSafe
public static interface OfferingTransaction.Builder
extends SdkPojo, CopyableBuilder<OfferingTransaction.Builder,OfferingTransaction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault OfferingTransaction.Buildercost(Consumer<MonetaryAmount.Builder> cost) The cost of an offering transaction.cost(MonetaryAmount cost) The cost of an offering transaction.The date on which an offering transaction was created.offeringPromotionId(String offeringPromotionId) The ID that corresponds to a device offering promotion.default OfferingTransaction.BuilderofferingStatus(Consumer<OfferingStatus.Builder> offeringStatus) The status of an offering transaction.offeringStatus(OfferingStatus offeringStatus) The status of an offering transaction.transactionId(String transactionId) The transaction ID of the offering transaction.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
-
offeringStatus
The status of an offering transaction.
- Parameters:
offeringStatus- The status of an offering transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringStatus
The status of an offering transaction.
This is a convenience method that creates an instance of theOfferingStatus.Builderavoiding the need to create one manually viaOfferingStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toofferingStatus(OfferingStatus).- Parameters:
offeringStatus- a consumer that will call methods onOfferingStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
transactionId
The transaction ID of the offering transaction.
- Parameters:
transactionId- The transaction ID of the offering transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringPromotionId
The ID that corresponds to a device offering promotion.
- Parameters:
offeringPromotionId- The ID that corresponds to a device offering promotion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdOn
The date on which an offering transaction was created.
- Parameters:
createdOn- The date on which an offering transaction was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cost
The cost of an offering transaction.
- Parameters:
cost- The cost of an offering transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cost
The cost of an offering transaction.
This is a convenience method that creates an instance of theMonetaryAmount.Builderavoiding the need to create one manually viaMonetaryAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocost(MonetaryAmount).- Parameters:
cost- a consumer that will call methods onMonetaryAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-