public final class ProductTypeDraftBuilder extends Base implements Builder<ProductTypeDraftDsl>
ProductTypeDraft
.Modifier and Type | Method and Description |
---|---|
ProductTypeDraftBuilder |
attributes(List<AttributeDefinitionDraft> attributes)
Sets the
attributes property of this builder. |
ProductTypeDraftDsl |
build()
Creates a new instance of
ProductTypeDraftDsl with the values of this builder. |
ProductTypeDraftBuilder |
description(String description)
Sets the
description property of this builder. |
List<AttributeDefinitionDraft> |
getAttributes() |
String |
getDescription() |
String |
getKey() |
String |
getName() |
ProductTypeDraftBuilder |
key(String key)
Sets the
key property of this builder. |
ProductTypeDraftBuilder |
name(String name)
Sets the
name property of this builder. |
static ProductTypeDraftBuilder |
of(ProductType template)
Creates a new object initialized with the fields of the template parameter.
|
static ProductTypeDraftBuilder |
of(ProductTypeDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ProductTypeDraftBuilder |
of(String key,
String name,
String description,
List<AttributeDefinitionDraft> attributes)
Creates a new object initialized with the given values.
|
ProductTypeDraftBuilder |
plusAttributes(AttributeDefinition attribute)
Deprecated.
user
plusAttributes(AttributeDefinitionDraft) instead |
ProductTypeDraftBuilder |
plusAttributes(AttributeDefinitionDraft attributes)
Adds
attributes parameter to the attributes list property of this builder. |
ProductTypeDraftBuilder |
plusAttributes(List<AttributeDefinition> attributes)
Concatenate
attributes parameter to the attributes list property of this builder. |
public ProductTypeDraftBuilder attributes(List<AttributeDefinitionDraft> attributes)
attributes
property of this builder.attributes
- the value for ProductTypeDraft.getAttributes()
public ProductTypeDraftBuilder description(String description)
description
property of this builder.description
- the value for ProductTypeDraft.getDescription()
public ProductTypeDraftBuilder key(@Nullable String key)
key
property of this builder.key
- the value for ProductTypeDraft.getKey()
public ProductTypeDraftBuilder name(String name)
name
property of this builder.name
- the value for ProductTypeDraft.getName()
public List<AttributeDefinitionDraft> getAttributes()
public String getDescription()
public String getName()
public ProductTypeDraftBuilder plusAttributes(List<AttributeDefinition> attributes)
attributes
parameter to the attributes
list property of this builder.attributes
- the value for ProductTypeDraft.getAttributes()
public ProductTypeDraftBuilder plusAttributes(AttributeDefinitionDraft attributes)
attributes
parameter to the attributes
list property of this builder.attributes
- the value of the element to add to ProductTypeDraft.getAttributes()
public ProductTypeDraftBuilder plusAttributes(AttributeDefinition attribute)
plusAttributes(AttributeDefinitionDraft)
insteadattributes
parameter to the attributes
list property of this builder.attribute
- the value of the element to add to ProductTypeDraft.getAttributes()
public ProductTypeDraftDsl build()
ProductTypeDraftDsl
with the values of this builder.build
in interface Builder<ProductTypeDraftDsl>
public static ProductTypeDraftBuilder of(@Nullable String key, String name, String description, List<AttributeDefinitionDraft> attributes)
key
- initial value for the ProductTypeDraft.getKey()
propertyname
- initial value for the ProductTypeDraft.getName()
propertydescription
- initial value for the ProductTypeDraft.getDescription()
propertyattributes
- initial value for the ProductTypeDraft.getAttributes()
propertypublic static ProductTypeDraftBuilder of(ProductTypeDraft template)
template
- the templatepublic static ProductTypeDraftBuilder of(ProductType template)
template
- the template