Interface OfferingTransaction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OfferingTransaction.Builder,OfferingTransaction>,SdkBuilder<OfferingTransaction.Builder,OfferingTransaction>,SdkPojo
- Enclosing class:
- OfferingTransaction
public static interface OfferingTransaction.Builder extends SdkPojo, CopyableBuilder<OfferingTransaction.Builder,OfferingTransaction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OfferingTransaction.Buildercost(Consumer<MonetaryAmount.Builder> cost)The cost of an offering transaction.OfferingTransaction.Buildercost(MonetaryAmount cost)The cost of an offering transaction.OfferingTransaction.BuildercreatedOn(Instant createdOn)The date on which an offering transaction was created.OfferingTransaction.BuilderofferingPromotionId(String offeringPromotionId)The ID that corresponds to a device offering promotion.default OfferingTransaction.BuilderofferingStatus(Consumer<OfferingStatus.Builder> offeringStatus)The status of an offering transaction.OfferingTransaction.BuilderofferingStatus(OfferingStatus offeringStatus)The status of an offering transaction.OfferingTransaction.BuildertransactionId(String transactionId)The transaction ID of the offering transaction.-
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, sdkFields
-
-
-
-
Method Detail
-
offeringStatus
OfferingTransaction.Builder offeringStatus(OfferingStatus 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
default OfferingTransaction.Builder offeringStatus(Consumer<OfferingStatus.Builder> 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:
offeringStatus(OfferingStatus)
-
transactionId
OfferingTransaction.Builder transactionId(String 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
OfferingTransaction.Builder offeringPromotionId(String 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
OfferingTransaction.Builder createdOn(Instant 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
OfferingTransaction.Builder cost(MonetaryAmount 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
default OfferingTransaction.Builder cost(Consumer<MonetaryAmount.Builder> 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:
cost(MonetaryAmount)
-
-