public static interface OfferingTransaction.Builder extends CopyableBuilder<OfferingTransaction.Builder,OfferingTransaction>
Modifier and Type | Method and Description |
---|---|
default OfferingTransaction.Builder |
cost(Consumer<MonetaryAmount.Builder> cost)
The cost of an offering transaction.
|
OfferingTransaction.Builder |
cost(MonetaryAmount cost)
The cost of an offering transaction.
|
OfferingTransaction.Builder |
createdOn(Instant createdOn)
The date on which an offering transaction was created.
|
OfferingTransaction.Builder |
offeringPromotionId(String offeringPromotionId)
The ID that corresponds to a device offering promotion.
|
default OfferingTransaction.Builder |
offeringStatus(Consumer<OfferingStatus.Builder> offeringStatus)
The status of an offering transaction.
|
OfferingTransaction.Builder |
offeringStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
|
OfferingTransaction.Builder |
transactionId(String transactionId)
The transaction ID of the offering transaction.
|
copy
apply, build
OfferingTransaction.Builder offeringStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
offeringStatus
- The status of an offering transaction.default OfferingTransaction.Builder offeringStatus(Consumer<OfferingStatus.Builder> offeringStatus)
The status of an offering transaction.
This is a convenience that creates an instance of theOfferingStatus.Builder
avoiding the need to
create one manually via OfferingStatus.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to offeringStatus(OfferingStatus)
.offeringStatus
- a consumer that will call methods on OfferingStatus.Builder
offeringStatus(OfferingStatus)
OfferingTransaction.Builder transactionId(String transactionId)
The transaction ID of the offering transaction.
transactionId
- The transaction ID of the offering transaction.OfferingTransaction.Builder offeringPromotionId(String offeringPromotionId)
The ID that corresponds to a device offering promotion.
offeringPromotionId
- The ID that corresponds to a device offering promotion.OfferingTransaction.Builder createdOn(Instant createdOn)
The date on which an offering transaction was created.
createdOn
- The date on which an offering transaction was created.OfferingTransaction.Builder cost(MonetaryAmount cost)
The cost of an offering transaction.
cost
- The cost of an offering transaction.default OfferingTransaction.Builder cost(Consumer<MonetaryAmount.Builder> cost)
The cost of an offering transaction.
This is a convenience that creates an instance of theMonetaryAmount.Builder
avoiding the need to
create one manually via MonetaryAmount.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to cost(MonetaryAmount)
.cost
- a consumer that will call methods on MonetaryAmount.Builder
cost(MonetaryAmount)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.