Class Product.Builder

  • Enclosing class:
    Product

    public static class Product.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public Product.Builder name​(String name)
        The name for the product.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • code

        public Product.Builder code​(String code)
        The code for the product.
        Parameters:
        code - the value to set
        Returns:
        this builder
      • productGroup

        public Product.Builder productGroup​(String productGroup)
        The product group for the product.
        Parameters:
        productGroup - the value to set
        Returns:
        this builder
      • lifecycleState

        public Product.Builder lifecycleState​(Product.LifecycleState lifecycleState)
        The current state for the product.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • timeCreated

        public Product.Builder timeCreated​(Date timeCreated)
        The date and time the product was created, in the format defined by RFC3339.

        Example: 2022-09-15T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Product.Builder timeUpdated​(Date timeUpdated)
        The date and time the product was updated, in the format defined by RFC3339.

        Example: 2022-09-15T21:10:29.600Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder