Class ProductTypeDraftImpl
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeDraftImpl
- All Implemented Interfaces:
ProductTypeDraft
,WithKey
,io.vrap.rmf.base.client.Draft<ProductTypeDraft>
,io.vrap.rmf.base.client.ModelBase
public class ProductTypeDraftImpl
extends Object
implements ProductTypeDraft, io.vrap.rmf.base.client.ModelBase
ProductTypeDraft
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Attributes to specify for the ProductType.Description of the ProductType.getKey()
User-defined unique identifier for the ProductType.getName()
Name of the ProductType.int
hashCode()
void
setAttributes
(AttributeDefinitionDraft... attributes) Attributes to specify for the ProductType.void
setAttributes
(List<AttributeDefinitionDraft> attributes) Attributes to specify for the ProductType.void
setDescription
(String description) Description of the ProductType.void
User-defined unique identifier for the ProductType.void
Name of the ProductType.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product_type.ProductTypeDraft
withProductTypeDraft
-
Constructor Details
-
ProductTypeDraftImpl
public ProductTypeDraftImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the ProductType.
- Specified by:
getKey
in interfaceProductTypeDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getName
Name of the ProductType.
- Specified by:
getName
in interfaceProductTypeDraft
- Returns:
- name
-
getDescription
Description of the ProductType.
- Specified by:
getDescription
in interfaceProductTypeDraft
- Returns:
- description
-
getAttributes
Attributes to specify for the ProductType. Products of this ProductType have these Attributes available on their ProductVariants.
- Specified by:
getAttributes
in interfaceProductTypeDraft
- Returns:
- attributes
-
setKey
Description copied from interface:ProductTypeDraft
User-defined unique identifier for the ProductType.
- Specified by:
setKey
in interfaceProductTypeDraft
- Parameters:
key
- value to be set
-
setName
Description copied from interface:ProductTypeDraft
Name of the ProductType.
- Specified by:
setName
in interfaceProductTypeDraft
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:ProductTypeDraft
Description of the ProductType.
- Specified by:
setDescription
in interfaceProductTypeDraft
- Parameters:
description
- value to be set
-
setAttributes
Description copied from interface:ProductTypeDraft
Attributes to specify for the ProductType. Products of this ProductType have these Attributes available on their ProductVariants.
- Specified by:
setAttributes
in interfaceProductTypeDraft
- Parameters:
attributes
- values to be set
-
setAttributes
Description copied from interface:ProductTypeDraft
Attributes to specify for the ProductType. Products of this ProductType have these Attributes available on their ProductVariants.
- Specified by:
setAttributes
in interfaceProductTypeDraft
- Parameters:
attributes
- values to be set
-
equals
-
hashCode
public int hashCode() -
toString
-