Class ImportContainerImpl

java.lang.Object
com.commercetools.importapi.models.importcontainers.ImportContainerImpl
All Implemented Interfaces:
ImportContainer, io.vrap.rmf.base.client.ModelBase

public class ImportContainerImpl extends Object implements ImportContainer, io.vrap.rmf.base.client.ModelBase

Serves as the entry point of resources. An Import Container is not resource type-specific.

  • Constructor Details

    • ImportContainerImpl

      public ImportContainerImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).

      Specified by:
      getKey in interface ImportContainer
      Returns:
      key
    • getResourceType

      public ImportResourceType getResourceType()

      The resource type the ImportContainer is able to handle. If not present, the ImportContainer is able to import all of the supported ImportResourceTypes.

      Specified by:
      getResourceType in interface ImportContainer
      Returns:
      resourceType
    • getVersion

      public Long getVersion()

      The version of the ImportContainer.

      Specified by:
      getVersion in interface ImportContainer
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      The time when the ImportContainer was created.

      Specified by:
      getCreatedAt in interface ImportContainer
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      The last time when the ImportContainer was modified.

      Specified by:
      getLastModifiedAt in interface ImportContainer
      Returns:
      lastModifiedAt
    • setKey

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

      User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).

      Specified by:
      setKey in interface ImportContainer
      Parameters:
      key - value to be set
    • setResourceType

      public void setResourceType(ImportResourceType resourceType)
      Description copied from interface: ImportContainer

      The resource type the ImportContainer is able to handle. If not present, the ImportContainer is able to import all of the supported ImportResourceTypes.

      Specified by:
      setResourceType in interface ImportContainer
      Parameters:
      resourceType - value to be set
    • setVersion

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

      The version of the ImportContainer.

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

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

      The time when the ImportContainer was created.

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

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

      The last time when the ImportContainer was modified.

      Specified by:
      setLastModifiedAt in interface ImportContainer
      Parameters:
      lastModifiedAt - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object