Package | Description |
---|---|
io.sphere.sdk.producttypes |
Provides model classes and builders for product types.
|
Modifier and Type | Method and Description |
---|---|
ProductTypeDraftBuilder |
ProductTypeDraftBuilder.attributes(List<AttributeDefinitionDraft> attributes)
Sets the
attributes property of this builder. |
ProductTypeDraftBuilder |
ProductTypeDraftBuilder.description(String description)
Sets the
description property of this builder. |
ProductTypeDraftBuilder |
ProductTypeDraftBuilder.key(String key)
Sets the
key property of this builder. |
ProductTypeDraftBuilder |
ProductTypeDraftBuilder.name(String name)
Sets the
name property of this builder. |
ProductTypeDraftBuilder |
ProductTypeDraftDsl.newBuilder()
Creates a new builder with the values of this object.
|
static ProductTypeDraftBuilder |
ProductTypeDraftBuilder.of(ProductType template)
Creates a new object initialized with the fields of the template parameter.
|
static ProductTypeDraftBuilder |
ProductTypeDraftBuilder.of(ProductTypeDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ProductTypeDraftBuilder |
ProductTypeDraftBuilder.of(String key,
String name,
String description,
List<AttributeDefinitionDraft> attributes)
Creates a new object initialized with the given values.
|
ProductTypeDraftBuilder |
ProductTypeDraftBuilder.plusAttributes(AttributeDefinition attribute)
Deprecated.
user
plusAttributes(AttributeDefinitionDraft) instead |
ProductTypeDraftBuilder |
ProductTypeDraftBuilder.plusAttributes(AttributeDefinitionDraft attributes)
Adds
attributes parameter to the attributes list property of this builder. |
ProductTypeDraftBuilder |
ProductTypeDraftBuilder.plusAttributes(List<AttributeDefinition> attributes)
Concatenate
attributes parameter to the attributes list property of this builder. |