Class TypeDraftImpl
java.lang.Object
com.commercetools.api.models.type.TypeDraftImpl
- All Implemented Interfaces:
TypeDraft
,WithKey
,io.vrap.rmf.base.client.Draft<TypeDraft>
,io.vrap.rmf.base.client.ModelBase
TypeDraft
-
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
Description of the Type.Defines Custom Fields.getKey()
User-defined unique identifier for the Type.getName()
Name of the Type.Resources and/or data types for which the Type is defined.int
hashCode()
void
setDescription
(LocalizedString description) Description of the Type.void
setFieldDefinitions
(FieldDefinition... fieldDefinitions) Defines Custom Fields.void
setFieldDefinitions
(List<FieldDefinition> fieldDefinitions) Defines Custom Fields.void
User-defined unique identifier for the Type.void
setName
(LocalizedString name) Name of the Type.void
setResourceTypeIds
(ResourceTypeId... resourceTypeIds) Resources and/or data types for which the Type is defined.void
setResourceTypeIds
(List<ResourceTypeId> resourceTypeIds) Resources and/or data types for which the Type is defined.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.type.TypeDraft
withTypeDraft
-
Constructor Details
-
TypeDraftImpl
public TypeDraftImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the Type.
-
getName
Name of the Type.
-
getDescription
Description of the Type.
- Specified by:
getDescription
in interfaceTypeDraft
- Returns:
- description
-
getResourceTypeIds
Resources and/or data types for which the Type is defined.
- Specified by:
getResourceTypeIds
in interfaceTypeDraft
- Returns:
- resourceTypeIds
-
getFieldDefinitions
Defines Custom Fields.
- Specified by:
getFieldDefinitions
in interfaceTypeDraft
- Returns:
- fieldDefinitions
-
setKey
Description copied from interface:TypeDraft
User-defined unique identifier for the Type.
-
setName
Description copied from interface:TypeDraft
Name of the Type.
-
setDescription
Description copied from interface:TypeDraft
Description of the Type.
- Specified by:
setDescription
in interfaceTypeDraft
- Parameters:
description
- value to be set
-
setResourceTypeIds
Description copied from interface:TypeDraft
Resources and/or data types for which the Type is defined.
- Specified by:
setResourceTypeIds
in interfaceTypeDraft
- Parameters:
resourceTypeIds
- values to be set
-
setResourceTypeIds
Description copied from interface:TypeDraft
Resources and/or data types for which the Type is defined.
- Specified by:
setResourceTypeIds
in interfaceTypeDraft
- Parameters:
resourceTypeIds
- values to be set
-
setFieldDefinitions
Description copied from interface:TypeDraft
Defines Custom Fields.
- Specified by:
setFieldDefinitions
in interfaceTypeDraft
- Parameters:
fieldDefinitions
- values to be set
-
setFieldDefinitions
Description copied from interface:TypeDraft
Defines Custom Fields.
- Specified by:
setFieldDefinitions
in interfaceTypeDraft
- Parameters:
fieldDefinitions
- values to be set
-
equals
-
hashCode
public int hashCode()
-