Class CreateCoverArtGrid

java.lang.Object
org.hihn.listenbrainz.CreateCoverArtGrid

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class CreateCoverArtGrid extends Object
CreateCoverArtGrid
  • Field Details

  • Constructor Details

    • CreateCoverArtGrid

      public CreateCoverArtGrid()
  • Method Details

    • background

      public CreateCoverArtGrid background(CreateCoverArtGrid.BackgroundEnum background)
    • getBackground

      The background for the cover art.
      Returns:
      background
    • setBackground

      public void setBackground(CreateCoverArtGrid.BackgroundEnum background)
    • imageSize

      public CreateCoverArtGrid imageSize(Integer imageSize)
    • getImageSize

      @Nonnull public Integer getImageSize()
      The size of the cover art image.
      Returns:
      imageSize
    • setImageSize

      public void setImageSize(Integer imageSize)
    • dimension

      public CreateCoverArtGrid dimension(Integer dimension)
    • getDimension

      @Nonnull public Integer getDimension()
      The dimension to use for this grid. A grid of dimension 3 has 3 images across and 3 images down, for a total of 9 images.
      Returns:
      dimension
    • setDimension

      public void setDimension(Integer dimension)
    • skipMissing

      public CreateCoverArtGrid skipMissing(Boolean skipMissing)
    • getSkipMissing

      @Nonnull public Boolean getSkipMissing()
      If cover art is missing for a given release_mbid, skip it and move on to the next one, if true is passed. If false, the show-caa option will decide what happens.
      Returns:
      skipMissing
    • setSkipMissing

      public void setSkipMissing(Boolean skipMissing)
    • showCaa

      public CreateCoverArtGrid showCaa(Boolean showCaa)
    • getShowCaa

      @Nonnull public Boolean getShowCaa()
      If cover art is missing and skip-missing is false, then show-caa will determine if a blank square is shown or if the Cover Art Archive missing image is shown.
      Returns:
      showCaa
    • setShowCaa

      public void setShowCaa(Boolean showCaa)
    • tiles

      public CreateCoverArtGrid tiles(List<String> tiles)
    • addTilesItem

      public CreateCoverArtGrid addTilesItem(String tilesItem)
    • getTiles

      @Nonnull public List<String> getTiles()
      The tiles paramater is a list of strings that determines the location where cover art images should be placed. Each string is a comma separated list of image cells. A grid of dimension 3 has 9 cells, from 0 in the upper left hand corner, 2 in the upper right hand corner, 6 in the lower left corner and 8 in the lower right corner. Specifying only a single cell will have the image cover that cell exactly. If more than one cell is specified, the image will cover the area defined by the bounding box of all the given cells. These tiles only define bounding box areas - no clipping of images that may fall outside of these tiles will be performed.
      Returns:
      tiles
    • setTiles

      public void setTiles(List<String> tiles)
    • releaseMbids

      public CreateCoverArtGrid releaseMbids(List<UUID> releaseMbids)
    • addReleaseMbidsItem

      public CreateCoverArtGrid addReleaseMbidsItem(UUID releaseMbidsItem)
    • getReleaseMbids

      @Nonnull public List<UUID> getReleaseMbids()
      An ordered list of release_mbids. The images will be loaded and processed in the order that this list is in. The cover art for the release_mbids will be placed on the tiles defined by the tiles parameter.
      Returns:
      releaseMbids
    • setReleaseMbids

      public void setReleaseMbids(List<UUID> releaseMbids)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to CreateCoverArtGrid
    • fromJson

      public static CreateCoverArtGrid fromJson(String jsonString) throws IOException
      Create an instance of CreateCoverArtGrid given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CreateCoverArtGrid
      Throws:
      IOException - if the JSON string is invalid with respect to CreateCoverArtGrid
    • toJson

      public String toJson()
      Convert an instance of CreateCoverArtGrid to an JSON string
      Returns:
      JSON string