java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.Icon

@Generated("io.github.primelib.primecodegen") public class Icon extends Object
Icon

This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.

  • Field Details

    • path

      protected String path
    • width

      protected Integer width
    • height

      protected Integer height
    • isDefault

      protected Boolean isDefault
  • Constructor Details

    • Icon

      public Icon(Consumer<Icon> spec)
      Constructs a validated instance of Icon.
      Parameters:
      spec - the specification to process
    • Icon

      @Internal public Icon(String path, Integer width, Integer height, Boolean isDefault)
      Constructs a validated instance of Icon.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using Icon(Consumer) instead.

      Parameters:
      path - path
      width - width
      height - height
      isDefault - isDefault
    • Icon

      protected Icon()
  • Method Details

    • path

      public String path()
    • width

      public Integer width()
    • height

      public Integer height()
    • isDefault

      public Boolean isDefault()
    • path

      public Icon path(String path)
      Returns:
      this.
    • width

      public Icon width(Integer width)
      Returns:
      this.
    • height

      public Icon height(Integer height)
      Returns:
      this.
    • isDefault

      public Icon isDefault(Boolean isDefault)
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object