Record Class BackgroundImageBlock

java.lang.Object
java.lang.Record
io.meeds.layout.model.BackgroundImageBlock

public record BackgroundImageBlock(String imageUploadId, String url, String size, String position, String attachment, String repeat, SidesBlock margins, CornersBlock corners) extends Record
imageUploadId is an input only (the id upload_layout_image returned); a read carries the stored url instead.
  • Constructor Details

    • BackgroundImageBlock

      public BackgroundImageBlock(String imageUploadId, String url, String size, String position, String attachment, String repeat, SidesBlock margins, CornersBlock corners)
      Creates an instance of a BackgroundImageBlock record class.
      Parameters:
      imageUploadId - the value for the imageUploadId record component
      url - the value for the url record component
      size - the value for the size record component
      position - the value for the position record component
      attachment - the value for the attachment record component
      repeat - the value for the repeat record component
      margins - the value for the margins record component
      corners - the value for the corners record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • imageUploadId

      public String imageUploadId()
      Returns the value of the imageUploadId record component.
      Returns:
      the value of the imageUploadId record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • size

      public String size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • position

      public String position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • attachment

      public String attachment()
      Returns the value of the attachment record component.
      Returns:
      the value of the attachment record component
    • repeat

      public String repeat()
      Returns the value of the repeat record component.
      Returns:
      the value of the repeat record component
    • margins

      public SidesBlock margins()
      Returns the value of the margins record component.
      Returns:
      the value of the margins record component
    • corners

      public CornersBlock corners()
      Returns the value of the corners record component.
      Returns:
      the value of the corners record component