Class TypeImportImpl
java.lang.Object
com.commercetools.importapi.models.types.TypeImportImpl
- All Implemented Interfaces:
ImportResource
,TypeImport
,io.vrap.rmf.base.client.ModelBase
The data representation for a Type to be imported that is persisted as a Type 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
Maps toType.description
.Maps toType.fieldDefinitions
.getKey()
User-defined unique identifier for the Type.getName()
Maps toType.name
.Maps toType.resourceTypeIds
.int
hashCode()
void
setDescription
(LocalizedString description) Maps toType.description
.void
setFieldDefinitions
(FieldDefinition... fieldDefinitions) Maps toType.fieldDefinitions
.void
setFieldDefinitions
(List<FieldDefinition> fieldDefinitions) Maps toType.fieldDefinitions
.void
User-defined unique identifier for the Type.void
setName
(LocalizedString name) Maps toType.name
.void
setResourceTypeIds
(ResourceTypeId... resourceTypeIds) Maps toType.resourceTypeIds
.void
setResourceTypeIds
(List<ResourceTypeId> resourceTypeIds) Maps toType.resourceTypeIds
.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.types.TypeImport
withTypeImport
-
Constructor Details
-
TypeImportImpl
public TypeImportImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the Type.
- Specified by:
getKey
in interfaceImportResource
- Specified by:
getKey
in interfaceTypeImport
- Returns:
- key
-
getName
Maps to
Type.name
.- Specified by:
getName
in interfaceTypeImport
- Returns:
- name
-
getDescription
Maps to
Type.description
.- Specified by:
getDescription
in interfaceTypeImport
- Returns:
- description
-
getResourceTypeIds
Maps to
Type.resourceTypeIds
. This value cannot be changed after the Type is imported.- Specified by:
getResourceTypeIds
in interfaceTypeImport
- Returns:
- resourceTypeIds
-
getFieldDefinitions
Maps to
Type.fieldDefinitions
.- Specified by:
getFieldDefinitions
in interfaceTypeImport
- Returns:
- fieldDefinitions
-
setKey
Description copied from interface:TypeImport
User-defined unique identifier for the Type.
- Specified by:
setKey
in interfaceImportResource
- Specified by:
setKey
in interfaceTypeImport
- Parameters:
key
- value to be set
-
setName
Description copied from interface:TypeImport
Maps to
Type.name
.- Specified by:
setName
in interfaceTypeImport
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:TypeImport
Maps to
Type.description
.- Specified by:
setDescription
in interfaceTypeImport
- Parameters:
description
- value to be set
-
setResourceTypeIds
Description copied from interface:TypeImport
Maps to
Type.resourceTypeIds
. This value cannot be changed after the Type is imported.- Specified by:
setResourceTypeIds
in interfaceTypeImport
- Parameters:
resourceTypeIds
- values to be set
-
setResourceTypeIds
Description copied from interface:TypeImport
Maps to
Type.resourceTypeIds
. This value cannot be changed after the Type is imported.- Specified by:
setResourceTypeIds
in interfaceTypeImport
- Parameters:
resourceTypeIds
- values to be set
-
setFieldDefinitions
Description copied from interface:TypeImport
Maps to
Type.fieldDefinitions
.- Specified by:
setFieldDefinitions
in interfaceTypeImport
- Parameters:
fieldDefinitions
- values to be set
-
setFieldDefinitions
Description copied from interface:TypeImport
Maps to
Type.fieldDefinitions
.- Specified by:
setFieldDefinitions
in interfaceTypeImport
- Parameters:
fieldDefinitions
- values to be set
-
equals
-
hashCode
public int hashCode()
-