Class ProductTypeImpl
- All Implemented Interfaces:
BaseResource
,DomainResource<ProductType>
,Identifiable<ProductType>
,AttributeDefinitionContainer
,ProductType
,ProductTypeMixin
,Referencable<ProductType>
,ResourceIdentifiable<ProductType>
,Versioned<ProductType>
,WithKey
,io.vrap.rmf.base.client.ModelBase
-
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
Attributes specified for the ProductType.Date and time (UTC) the ProductType was initially created.Present on resources created after 1 February 2019 except for events not tracked.Description of the ProductType.getId()
Unique identifier of the ProductType.getKey()
User-defined unique identifier of the ProductType.Date and time (UTC) the ProductType was last updated.Present on resources created after 1 February 2019 except for events not tracked.getName()
Name of the ProductType.Current version of the ProductType.int
hashCode()
void
setAttributes
(AttributeDefinition... attributes) Attributes specified for the ProductType.void
setAttributes
(List<AttributeDefinition> attributes) Attributes specified for the ProductType.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the ProductType was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setDescription
(String description) Description of the ProductType.void
Unique identifier of the ProductType.void
User-defined unique identifier of the ProductType.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the ProductType was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
Name of the ProductType.void
setVersion
(Long version) Current version of the ProductType.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.product_type.AttributeDefinitionContainer
findAttribute, getAttribute
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product_type.ProductType
withProductType
Methods inherited from interface com.commercetools.api.models.product_type.ProductTypeMixin
toReference, toResourceIdentifier
-
Constructor Details
-
ProductTypeImpl
public ProductTypeImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the ProductType.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<ProductType>
- Specified by:
getId
in interfaceIdentifiable<ProductType>
- Specified by:
getId
in interfaceProductType
- Specified by:
getId
in interfaceVersioned<ProductType>
- Returns:
- id
-
getVersion
Current version of the ProductType.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<ProductType>
- Specified by:
getVersion
in interfaceProductType
- Specified by:
getVersion
in interfaceVersioned<ProductType>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the ProductType was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceProductType
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ProductType was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceProductType
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceProductType
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceProductType
- Returns:
- createdBy
-
getKey
User-defined unique identifier of the ProductType.
- Specified by:
getKey
in interfaceProductType
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getName
Name of the ProductType.
- Specified by:
getName
in interfaceProductType
- Returns:
- name
-
getDescription
Description of the ProductType.
- Specified by:
getDescription
in interfaceProductType
- Returns:
- description
-
getAttributes
Attributes specified for the ProductType.
- Specified by:
getAttributes
in interfaceAttributeDefinitionContainer
- Specified by:
getAttributes
in interfaceProductType
- Returns:
- attributes
-
setId
Description copied from interface:ProductType
Unique identifier of the ProductType.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceProductType
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:ProductType
Current version of the ProductType.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceProductType
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:ProductType
Date and time (UTC) the ProductType was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceProductType
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:ProductType
Date and time (UTC) the ProductType was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceProductType
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:ProductType
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceProductType
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:ProductType
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceProductType
- Parameters:
createdBy
- value to be set
-
setKey
Description copied from interface:ProductType
User-defined unique identifier of the ProductType.
- Specified by:
setKey
in interfaceProductType
- Parameters:
key
- value to be set
-
setName
Description copied from interface:ProductType
Name of the ProductType.
- Specified by:
setName
in interfaceProductType
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:ProductType
Description of the ProductType.
- Specified by:
setDescription
in interfaceProductType
- Parameters:
description
- value to be set
-
setAttributes
Description copied from interface:ProductType
Attributes specified for the ProductType.
- Specified by:
setAttributes
in interfaceProductType
- Parameters:
attributes
- values to be set
-
setAttributes
Description copied from interface:ProductType
Attributes specified for the ProductType.
- Specified by:
setAttributes
in interfaceProductType
- Parameters:
attributes
- values to be set
-
equals
-
hashCode
-