java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.Image.Builder
All Implemented Interfaces:
IModelObject.Builder
Enclosing class:
Image

public static final class Image.Builder extends AbstractModelObject.Builder
Builder class for building Image instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setHeight

      public Image.Builder setHeight(Integer height)
      The height setter.
      Parameters:
      height - The image height in pixels. If unknown: null.
      Returns:
      A Image.Builder.
    • setUrl

      public Image.Builder setUrl(String url)
      The source URL setter.
      Parameters:
      url - The source URL of the image.
      Returns:
      A Image.Builder.
    • setWidth

      public Image.Builder setWidth(Integer width)
      The width setter.
      Parameters:
      width - The image width in pixels. If unknown: null.
      Returns:
      A Image.Builder.
    • build

      public Image build()
      Description copied from interface: IModelObject.Builder
      Build a model object with the information set in the builder object.
      The type of the model object and its methods depend on its corresponding implementation.
      Returns:
      A model object.