Class Entitlement

    • Method Detail

      • productCode

        public final String productCode()

        The product code for which the given entitlement applies. Product codes are provided by AWS Marketplace when the product listing is created.

        Returns:
        The product code for which the given entitlement applies. Product codes are provided by AWS Marketplace when the product listing is created.
      • dimension

        public final 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.

        Returns:
        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.
      • customerIdentifier

        public final 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.

        Returns:
        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.
      • value

        public final EntitlementValue value()

        The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.

        Returns:
        The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
      • expirationDate

        public final 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.

        Returns:
        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)