Class ProductTypeImportImpl
java.lang.Object
com.commercetools.importapi.models.producttypes.ProductTypeImportImpl
- All Implemented Interfaces:
ImportResource
,ProductTypeImport
,io.vrap.rmf.base.client.ModelBase
public class ProductTypeImportImpl
extends Object
implements ProductTypeImport, io.vrap.rmf.base.client.ModelBase
The data representation for a ProductType to be imported that is persisted as a ProductType in the Project.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theattributes
of ProductType.Maps toProductType.description
.getKey()
User-defined unique identifier.getName()
Maps toProductType.name
.int
hashCode()
void
setAttributes
(AttributeDefinition... attributes) Theattributes
of ProductType.void
setAttributes
(List<AttributeDefinition> attributes) Theattributes
of ProductType.void
setDescription
(String description) Maps toProductType.description
.void
User-defined unique identifier.void
Maps toProductType.name
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.common.ImportResource
withImportResource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.importapi.models.producttypes.ProductTypeImport
withProductTypeImport
-
Constructor Details
-
ProductTypeImportImpl
public ProductTypeImportImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier.
- Specified by:
getKey
in interfaceImportResource
- Returns:
- key
-
getName
Maps to
ProductType.name
.- Specified by:
getName
in interfaceProductTypeImport
- Returns:
- name
-
getDescription
Maps to
ProductType.description
.- Specified by:
getDescription
in interfaceProductTypeImport
- Returns:
- description
-
getAttributes
The
attributes
of ProductType.- Specified by:
getAttributes
in interfaceProductTypeImport
- Returns:
- attributes
-
setKey
Description copied from interface:ImportResource
User-defined unique identifier.
- Specified by:
setKey
in interfaceImportResource
- Parameters:
key
- value to be set
-
setName
Description copied from interface:ProductTypeImport
Maps to
ProductType.name
.- Specified by:
setName
in interfaceProductTypeImport
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:ProductTypeImport
Maps to
ProductType.description
.- Specified by:
setDescription
in interfaceProductTypeImport
- Parameters:
description
- value to be set
-
setAttributes
Description copied from interface:ProductTypeImport
The
attributes
of ProductType.- Specified by:
setAttributes
in interfaceProductTypeImport
- Parameters:
attributes
- values to be set
-
setAttributes
Description copied from interface:ProductTypeImport
The
attributes
of ProductType.- Specified by:
setAttributes
in interfaceProductTypeImport
- Parameters:
attributes
- values to be set
-
equals
-
hashCode
public int hashCode()
-