Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Product |
build() |
Product.Builder |
code(String code)
The code for the product.
|
Product.Builder |
copy(Product model) |
Product.Builder |
lifecycleState(Product.LifecycleState lifecycleState)
The current state for the product.
|
Product.Builder |
name(String name)
The name for the product.
|
Product.Builder |
productGroup(String productGroup)
The product group for the product.
|
Product.Builder |
timeCreated(Date timeCreated)
The date and time the product was created, in the format defined by
RFC3339.
|
Product.Builder |
timeUpdated(Date timeUpdated)
The date and time the product was updated, in the format defined by
RFC3339.
|
public Product.Builder name(String name)
The name for the product.
name
- the value to setpublic Product.Builder code(String code)
The code for the product.
code
- the value to setpublic Product.Builder productGroup(String productGroup)
The product group for the product.
productGroup
- the value to setpublic Product.Builder lifecycleState(Product.LifecycleState lifecycleState)
The current state for the product.
lifecycleState
- the value to setpublic 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
timeCreated
- the value to setpublic 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
timeUpdated
- the value to setpublic Product build()
public Product.Builder copy(Product model)
Copyright © 2016–2024. All rights reserved.