Class Category.Builder

  • Enclosing class:
    Category

    public static class Category.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

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

        public Category.Builder code​(String code)
        The code of the category.
        Parameters:
        code - the value to set
        Returns:
        this builder
      • productCode

        public Category.Builder productCode​(String productCode)
        The product that the category belongs to.
        Parameters:
        productCode - the value to set
        Returns:
        this builder
      • lifecycleState

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

        public Category.Builder timeCreated​(Date timeCreated)
        The date and time the category 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 Category.Builder timeUpdated​(Date timeUpdated)
        The date and time the category was updated, in the format defined by RFC3339.

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

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