public final class ProductTypeDraftDsl extends Base implements ProductTypeDraft
ProductTypeDraft
.Modifier and Type | Method and Description |
---|---|
List<AttributeDefinitionDraft> |
getAttributes() |
String |
getDescription() |
String |
getKey() |
String |
getName() |
ProductTypeDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ProductTypeDraftDsl |
of(ProductTypeDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ProductTypeDraftDsl |
of(String key,
String name,
String description,
List<AttributeDefinitionDraft> attributes)
Creates a new object initialized with the given values.
|
ProductTypeDraftDsl |
withAttributes(List<AttributeDefinitionDraft> attributes) |
ProductTypeDraftDsl |
withDescription(String description) |
ProductTypeDraftDsl |
withKey(String key) |
ProductTypeDraftDsl |
withName(String name) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copyAttributes, of, ofAttributeDefinitionDrafts
public List<AttributeDefinitionDraft> getAttributes()
getAttributes
in interface ProductTypeDraft
public String getDescription()
getDescription
in interface ProductTypeDraft
@Nullable public String getKey()
getKey
in interface WithKey
getKey
in interface ProductTypeDraft
public String getName()
getName
in interface ProductTypeDraft
public ProductTypeDraftBuilder newBuilder()
public ProductTypeDraftDsl withAttributes(List<AttributeDefinitionDraft> attributes)
public ProductTypeDraftDsl withDescription(String description)
public ProductTypeDraftDsl withKey(@Nullable String key)
public ProductTypeDraftDsl withName(String name)
public static ProductTypeDraftDsl 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 ProductTypeDraftDsl of(ProductTypeDraft template)
template
- the template