Class TypeImpl

java.lang.Object
com.commercetools.api.models.type.TypeImpl
All Implemented Interfaces:
BaseResource, DomainResource<Type>, Identifiable<Type>, Referencable<Type>, ResourceIdentifiable<Type>, Type, TypeMixin, Versioned<Type>, WithKey, io.vrap.rmf.base.client.ModelBase

public class TypeImpl extends Object implements Type, io.vrap.rmf.base.client.ModelBase
Type
  • Constructor Details

    • TypeImpl

      public TypeImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Type.

      Specified by:
      getId in interface BaseResource
      Specified by:
      getId in interface DomainResource<Type>
      Specified by:
      getId in interface Identifiable<Type>
      Specified by:
      getId in interface Type
      Specified by:
      getId in interface Versioned<Type>
      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the Type.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface DomainResource<Type>
      Specified by:
      getVersion in interface Type
      Specified by:
      getVersion in interface Versioned<Type>
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Type was initially created.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface Type
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Date and time (UTC) the Type was last updated.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface Type
      Returns:
      lastModifiedAt
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getLastModifiedBy in interface Type
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface Type
      Returns:
      createdBy
    • getKey

      public String getKey()

      User-defined unique identifier of the Type.

      Specified by:
      getKey in interface Type
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getName

      public LocalizedString getName()

      Name of the Type.

      Specified by:
      getName in interface Type
      Returns:
      name
    • getDescription

      public LocalizedString getDescription()

      Description of the Type.

      Specified by:
      getDescription in interface Type
      Returns:
      description
    • getResourceTypeIds

      public List<ResourceTypeId> getResourceTypeIds()

      Resources and/or data types for which the Type is defined.

      Specified by:
      getResourceTypeIds in interface Type
      Returns:
      resourceTypeIds
    • getFieldDefinitions

      public List<FieldDefinition> getFieldDefinitions()

      Defines Custom Fields.

      Specified by:
      getFieldDefinitions in interface Type
      Specified by:
      getFieldDefinitions in interface TypeMixin
      Returns:
      fieldDefinitions
    • setId

      public void setId(String id)
      Description copied from interface: Type

      Unique identifier of the Type.

      Specified by:
      setId in interface BaseResource
      Specified by:
      setId in interface Type
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: Type

      Current version of the Type.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface Type
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: Type

      Date and time (UTC) the Type was initially created.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface Type
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: Type

      Date and time (UTC) the Type was last updated.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface Type
      Parameters:
      lastModifiedAt - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: Type

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setLastModifiedBy in interface Type
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: Type

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface Type
      Parameters:
      createdBy - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: Type

      User-defined unique identifier of the Type.

      Specified by:
      setKey in interface Type
      Parameters:
      key - value to be set
    • setName

      public void setName(LocalizedString name)
      Description copied from interface: Type

      Name of the Type.

      Specified by:
      setName in interface Type
      Parameters:
      name - value to be set
    • setDescription

      public void setDescription(LocalizedString description)
      Description copied from interface: Type

      Description of the Type.

      Specified by:
      setDescription in interface Type
      Parameters:
      description - value to be set
    • setResourceTypeIds

      public void setResourceTypeIds(ResourceTypeId... resourceTypeIds)
      Description copied from interface: Type

      Resources and/or data types for which the Type is defined.

      Specified by:
      setResourceTypeIds in interface Type
      Parameters:
      resourceTypeIds - values to be set
    • setResourceTypeIds

      public void setResourceTypeIds(List<ResourceTypeId> resourceTypeIds)
      Description copied from interface: Type

      Resources and/or data types for which the Type is defined.

      Specified by:
      setResourceTypeIds in interface Type
      Parameters:
      resourceTypeIds - values to be set
    • setFieldDefinitions

      public void setFieldDefinitions(FieldDefinition... fieldDefinitions)
      Description copied from interface: Type

      Defines Custom Fields.

      Specified by:
      setFieldDefinitions in interface Type
      Parameters:
      fieldDefinitions - values to be set
    • setFieldDefinitions

      public void setFieldDefinitions(List<FieldDefinition> fieldDefinitions)
      Description copied from interface: Type

      Defines Custom Fields.

      Specified by:
      setFieldDefinitions in interface Type
      Parameters:
      fieldDefinitions - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object