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

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

    • TypeDraftImpl

      public TypeDraftImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      User-defined unique identifier for the Type.

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

      public LocalizedString getName()

      Name of the Type.

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

      public LocalizedString getDescription()

      Description of the Type.

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

      public List<ResourceTypeId> getResourceTypeIds()

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

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

      public List<FieldDefinition> getFieldDefinitions()

      Defines Custom Fields.

      Specified by:
      getFieldDefinitions in interface TypeDraft
      Returns:
      fieldDefinitions
    • setKey

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

      User-defined unique identifier for the Type.

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

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

      Name of the Type.

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

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

      Description of the Type.

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

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

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

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

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

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

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

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

      Defines Custom Fields.

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

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

      Defines Custom Fields.

      Specified by:
      setFieldDefinitions in interface TypeDraft
      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