public static interface Entitlement.Builder extends CopyableBuilder<Entitlement.Builder,Entitlement>
Modifier and Type | Method and Description |
---|---|
Entitlement.Builder |
customerIdentifier(String customerIdentifier)
The customer identifier is a handle to each unique customer in an application.
|
Entitlement.Builder |
dimension(String dimension)
The dimension for which the given entitlement applies.
|
Entitlement.Builder |
expirationDate(Instant expirationDate)
The expiration date represents the minimum date through which this entitlement is expected to remain valid.
|
Entitlement.Builder |
productCode(String productCode)
The product code for which the given entitlement applies.
|
default Entitlement.Builder |
value(Consumer<EntitlementValue.Builder> value)
The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
|
Entitlement.Builder |
value(EntitlementValue value)
The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
|
copy
apply, build
Entitlement.Builder productCode(String productCode)
The product code for which the given entitlement applies. Product codes are provided by AWS Marketplace when the product listing is created.
productCode
- The product code for which the given entitlement applies. Product codes are provided by AWS
Marketplace when the product listing is created.Entitlement.Builder dimension(String dimension)
The dimension for which the given entitlement applies. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace.
dimension
- The dimension for which the given entitlement applies. Dimensions represent categories of capacity in
a product and are specified when the product is listed in AWS Marketplace.Entitlement.Builder customerIdentifier(String customerIdentifier)
The customer identifier is a handle to each unique customer in an application. Customer identifiers are obtained through the ResolveCustomer operation in AWS Marketplace Metering Service.
customerIdentifier
- The customer identifier is a handle to each unique customer in an application. Customer identifiers
are obtained through the ResolveCustomer operation in AWS Marketplace Metering Service.Entitlement.Builder value(EntitlementValue value)
The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
value
- The EntitlementValue represents the amount of capacity that the customer is entitled to for the
product.default Entitlement.Builder value(Consumer<EntitlementValue.Builder> value)
The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
This is a convenience that creates an instance of theEntitlementValue.Builder
avoiding the need to
create one manually via EntitlementValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to value(EntitlementValue)
.value
- a consumer that will call methods on EntitlementValue.Builder
value(EntitlementValue)
Entitlement.Builder expirationDate(Instant expirationDate)
The expiration date represents the minimum date through which this entitlement is expected to remain valid. For contractual products listed on AWS Marketplace, the expiration date is the date at which the customer will renew or cancel their contract. Customers who are opting to renew their contract will still have entitlements with an expiration date.
expirationDate
- The expiration date represents the minimum date through which this entitlement is expected to remain
valid. For contractual products listed on AWS Marketplace, the expiration date is the date at which
the customer will renew or cancel their contract. Customers who are opting to renew their contract
will still have entitlements with an expiration date.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.