Class Product.Builder
- java.lang.Object
-
- com.oracle.bmc.marketplacepublisher.model.Product.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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
-
build
public Product build()
-
copy
public Product.Builder copy(Product model)
-
-