Class ImportContainerDraftImpl

java.lang.Object
com.commercetools.importapi.models.importcontainers.ImportContainerDraftImpl
All Implemented Interfaces:
ImportContainerDraft, io.vrap.rmf.base.client.Draft<ImportContainerDraft>, io.vrap.rmf.base.client.ModelBase

public class ImportContainerDraftImpl extends Object implements ImportContainerDraft, io.vrap.rmf.base.client.ModelBase

The representation sent to the server when creating an ImportContainer.

  • Constructor Details

    • ImportContainerDraftImpl

      public ImportContainerDraftImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

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

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

      public ImportResourceType getResourceType()

      The resource type to be imported. If not given, the ImportContainer is able to import all of the supported ImportResourceTypes.

      Specified by:
      getResourceType in interface ImportContainerDraft
      Returns:
      resourceType
    • setKey

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

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

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

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

      The resource type to be imported. If not given, the ImportContainer is able to import all of the supported ImportResourceTypes.

      Specified by:
      setResourceType in interface ImportContainerDraft
      Parameters:
      resourceType - 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