Class AttachmentRefOrValue

java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.dto.AttachmentRefOrValue

public class AttachmentRefOrValue extends Object
An attachment by value or by reference. For AttachmentRefOrValue, the attribute type,schemaLocation and referredType are related to the contained entity and not to AttchmentRefOrValue itself
  • Constructor Details

    • AttachmentRefOrValue

      public AttachmentRefOrValue()
  • Method Details

    • id

      public AttachmentRefOrValue id(String id)
    • getId

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

      public void setId(String id)
    • href

      public AttachmentRefOrValue href(String href)
    • getHref

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

      public void setHref(String href)
    • attachmentType

      public AttachmentRefOrValue attachmentType(String attachmentType)
    • getAttachmentType

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

      public void setAttachmentType(String attachmentType)
    • content

      public AttachmentRefOrValue 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 AttachmentRefOrValue 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 AttachmentRefOrValue 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 AttachmentRefOrValue name(String name)
    • getName

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

      public void setName(String name)
    • url

      public AttachmentRefOrValue 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 AttachmentRefOrValue size(Quantity size)
    • getSize

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

      public void setSize(Quantity size)
    • validFor

      public AttachmentRefOrValue validFor(TimePeriod validFor)
    • getValidFor

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

      public void setValidFor(TimePeriod validFor)
    • atBaseType

      public AttachmentRefOrValue 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 AttachmentRefOrValue 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 AttachmentRefOrValue 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)
    • atReferredType

      public AttachmentRefOrValue atReferredType(String atReferredType)
    • getAtReferredType

      public String getAtReferredType()
      The actual type of the target instance when needed for disambiguation.
      Returns:
      atReferredType
    • setAtReferredType

      public void setAtReferredType(String atReferredType)
    • 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