java.lang.Object
de.hybris.platform.tuawebservicesresources.v2.dto.Attachment

public class Attachment extends Object
Complements the description of an element (for instance a product) through video, pictures...
  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • id

      public Attachment id(String id)
    • getId

      public String getId()
      Unique identifier for this particular attachment
      Returns:
      id
    • setId

      public void setId(String id)
    • href

      public Attachment href(String href)
    • getHref

      public String getHref()
      URI for this Attachment
      Returns:
      href
    • setHref

      public void setHref(String href)
    • attachmentType

      public Attachment attachmentType(String attachmentType)
    • getAttachmentType

      public String getAttachmentType()
      Attachment type such as video, picture
      Returns:
      attachmentType
    • setAttachmentType

      public void setAttachmentType(String attachmentType)
    • content

      public Attachment content(String content)
    • getContent

      public String getContent()
      The actual contents of the attachment object, if embedded, encoded as base64
      Returns:
      content
    • setContent

      public void setContent(String content)
    • description

      public Attachment description(String description)
    • getDescription

      public String getDescription()
      A narrative text describing the content of the attachment
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • mimeType

      public Attachment mimeType(String mimeType)
    • getMimeType

      public String getMimeType()
      Attachment mime type such as extension file for video, picture and document
      Returns:
      mimeType
    • setMimeType

      public void setMimeType(String mimeType)
    • name

      public Attachment name(String name)
    • getName

      public String getName()
      The name of the attachment
      Returns:
      name
    • setName

      public void setName(String name)
    • url

      public Attachment url(String url)
    • getUrl

      public String getUrl()
      Uniform Resource Locator, is a web page address (a subset of URI)
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • size

      public Attachment size(Quantity size)
    • getSize

      @Valid public @Valid Quantity getSize()
      Get size
      Returns:
      size
    • setSize

      public void setSize(Quantity size)
    • validFor

      public Attachment validFor(TimePeriod validFor)
    • getValidFor

      @Valid public @Valid TimePeriod getValidFor()
      Get validFor
      Returns:
      validFor
    • setValidFor

      public void setValidFor(TimePeriod validFor)
    • atBaseType

      public Attachment atBaseType(String atBaseType)
    • getAtBaseType

      public String getAtBaseType()
      When sub-classing, this defines the super-class
      Returns:
      atBaseType
    • setAtBaseType

      public void setAtBaseType(String atBaseType)
    • atSchemaLocation

      public Attachment atSchemaLocation(String atSchemaLocation)
    • getAtSchemaLocation

      public String getAtSchemaLocation()
      A URI to a JSON-Schema file that defines additional attributes and relationships
      Returns:
      atSchemaLocation
    • setAtSchemaLocation

      public void setAtSchemaLocation(String atSchemaLocation)
    • atType

      public Attachment atType(String atType)
    • getAtType

      public String getAtType()
      When sub-classing, this defines the sub-class entity name
      Returns:
      atType
    • setAtType

      public void setAtType(String atType)
    • 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