Class Product


  • public class Product
    extends Object
    Product
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Product.TypeEnum
      The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase
    • Constructor Summary

      Constructors 
      Constructor Description
      Product()  
    • Constructor Detail

      • Product

        public Product()
    • Method Detail

      • id

        public Product id​(UUID id)
        The unique identifier for the product
        Parameters:
        id - UUID
        Returns:
        Product
      • getId

        public UUID getId()
        The unique identifier for the product
        Returns:
        id
      • setId

        public void setId​(UUID id)
        The unique identifier for the product
        Parameters:
        id - UUID
      • name

        public Product name​(String name)
        The name of the product
        Parameters:
        name - String
        Returns:
        Product
      • getName

        public String getName()
        The name of the product
        Returns:
        name
      • setName

        public void setName​(String name)
        The name of the product
        Parameters:
        name - String
      • type

        public Product type​(Product.TypeEnum type)
        The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase
        Parameters:
        type - TypeEnum
        Returns:
        Product
      • getType

        public Product.TypeEnum getType()
        The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase
        Returns:
        type
      • setType

        public void setType​(Product.TypeEnum type)
        The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase
        Parameters:
        type - TypeEnum
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object