Class TypeImpl
- All Implemented Interfaces:
BaseResource
,DomainResource<Type>
,Identifiable<Type>
,Referencable<Type>
,ResourceIdentifiable<Type>
,Type
,TypeMixin
,Versioned<Type>
,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
Date and time (UTC) the Type was initially created.Present on resources created after 1 February 2019 except for events not tracked.Description of the Type.Defines Custom Fields.getId()
Unique identifier of the Type.getKey()
User-defined unique identifier of the Type.Date and time (UTC) the Type was last updated.Present on resources created after 1 February 2019 except for events not tracked.getName()
Name of the Type.Resources and/or data types for which the Type is defined.Current version of the Type.int
hashCode()
void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Type was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setDescription
(LocalizedString description) Description of the Type.void
setFieldDefinitions
(FieldDefinition... fieldDefinitions) Defines Custom Fields.void
setFieldDefinitions
(List<FieldDefinition> fieldDefinitions) Defines Custom Fields.void
Unique identifier of the Type.void
User-defined unique identifier of the Type.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Type was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.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.void
setVersion
(Long version) Current version of the Type.toString()
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.type.TypeMixin
getFieldDefinitionByName, toReference, toResourceIdentifier
-
Constructor Details
-
TypeImpl
public TypeImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Type.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<Type>
- Specified by:
getId
in interfaceIdentifiable<Type>
- Specified by:
getId
in interfaceType
- Specified by:
getId
in interfaceVersioned<Type>
- Returns:
- id
-
getVersion
Current version of the Type.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<Type>
- Specified by:
getVersion
in interfaceType
- Specified by:
getVersion
in interfaceVersioned<Type>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Type was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceType
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Type was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceType
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceType
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceType
- Returns:
- createdBy
-
getKey
User-defined unique identifier of the Type.
-
getName
Name of the Type.
-
getDescription
Description of the Type.
- Specified by:
getDescription
in interfaceType
- Returns:
- description
-
getResourceTypeIds
Resources and/or data types for which the Type is defined.
- Specified by:
getResourceTypeIds
in interfaceType
- Returns:
- resourceTypeIds
-
getFieldDefinitions
Defines Custom Fields.
- Specified by:
getFieldDefinitions
in interfaceType
- Specified by:
getFieldDefinitions
in interfaceTypeMixin
- Returns:
- fieldDefinitions
-
setId
Description copied from interface:Type
Unique identifier of the Type.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceType
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:Type
Current version of the Type.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceType
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:Type
Date and time (UTC) the Type was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceType
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:Type
Date and time (UTC) the Type was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceType
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:Type
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceType
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:Type
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceType
- Parameters:
createdBy
- value to be set
-
setKey
Description copied from interface:Type
User-defined unique identifier of the Type.
-
setName
Description copied from interface:Type
Name of the Type.
-
setDescription
Description copied from interface:Type
Description of the Type.
- Specified by:
setDescription
in interfaceType
- Parameters:
description
- value to be set
-
setResourceTypeIds
Description copied from interface:Type
Resources and/or data types for which the Type is defined.
- Specified by:
setResourceTypeIds
in interfaceType
- Parameters:
resourceTypeIds
- values to be set
-
setResourceTypeIds
Description copied from interface:Type
Resources and/or data types for which the Type is defined.
- Specified by:
setResourceTypeIds
in interfaceType
- Parameters:
resourceTypeIds
- values to be set
-
setFieldDefinitions
Description copied from interface:Type
Defines Custom Fields.
- Specified by:
setFieldDefinitions
in interfaceType
- Parameters:
fieldDefinitions
- values to be set
-
setFieldDefinitions
Description copied from interface:Type
Defines Custom Fields.
- Specified by:
setFieldDefinitions
in interfaceType
- Parameters:
fieldDefinitions
- values to be set
-
equals
-
hashCode
public int hashCode() -
toString
-