Interface Entitlement.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Entitlement.Builder,
,Entitlement> SdkBuilder<Entitlement.Builder,
,Entitlement> SdkPojo
- Enclosing class:
Entitlement
-
Method Summary
Modifier and TypeMethodDescriptioncustomerIdentifier
(String customerIdentifier) The customer identifier is a handle to each unique customer in an application.The dimension for which the given entitlement applies.expirationDate
(Instant expirationDate) The expiration date represents the minimum date through which this entitlement is expected to remain valid.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.value
(EntitlementValue value) The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.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 Details
-
productCode
The product code for which the given entitlement applies. Product codes are provided by AWS Marketplace when the product listing is created.
- Parameters:
productCode
- The product code for which the given entitlement applies. Product codes are provided by AWS Marketplace when the product listing is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
- Parameters:
value
- The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
This is a convenience method that creates an instance of theEntitlementValue.Builder
avoiding the need to create one manually viaEntitlementValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalue(EntitlementValue)
.- Parameters:
value
- a consumer that will call methods onEntitlementValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-