Class Image.Builder

java.lang.Object
com.attribyte.parser.model.Image.Builder
Enclosing class:
Image

public static class Image.Builder extends Object
Builds an immutable image.
  • Method Details

    • getId

      public String getId()
      Gets the id.
      Returns:
      The id.
    • setId

      public Image.Builder setId(String id)
      Sets the id.
      Parameters:
      id - The id.
      Returns:
      A self-reference.
    • getLink

      public String getLink()
      Gets the link.
      Returns:
      The link.
    • getAltText

      public String getAltText()
      Gets the alternate text.
      Returns:
      The alternate text.
    • setAltText

      public Image.Builder setAltText(String altText)
      Sets the alternate text.
      Parameters:
      altText - The alternate text.
      Returns:
      A self-reference.
    • getTitle

      public String getTitle()
      Gets the title.
      Returns:
      The title.
    • setTitle

      public Image.Builder setTitle(String title)
      Sets the title.
      Parameters:
      title - The title.
      Returns:
      A self-reference.
    • getCredit

      public String getCredit()
      Gets the credit.
      Returns:
      The credit.
    • setCredit

      public Image.Builder setCredit(String credit)
      Sets the credit.
      Parameters:
      credit - The cridt.
      Returns:
      A self-reference.
    • getWidth

      public int getWidth()
      Gets the width.
      Returns:
      The width.
    • setWidth

      public Image.Builder setWidth(int width)
      Sets the width.
      Parameters:
      width - The width.
      Returns:
      A self-reference.
    • getHeight

      public int getHeight()
      Gets the height.
      Returns:
      The height.
    • setHeight

      public Image.Builder setHeight(int height)
      Sets the height.
      Parameters:
      height - The height.
      Returns:
      A self-reference.
    • getMediaType

      public String getMediaType()
      Gets the media type.
      Returns:
      The media type.
    • setMediaType

      public Image.Builder setMediaType(String mediaType)
      Sets the media type.
      Parameters:
      mediaType - The media type.
      Returns:
      A self-reference.
    • build

      public Image build()
      Builds an immutable image.
      Returns:
      The image.