Class Icon

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 protected Icon()
      Protected no-args constructor for use by serialization frameworks.
    • 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
  • Method Details

    • path

      public String path()
      Fluent getter for path.
      Returns:
      path
    • path

      public Icon path(String path)
      Fluent setter for path.
      Parameters:
      path - path
      Returns:
      this
    • getPath

      public String getPath()
      Gets the value of path.
      Returns:
      path
    • setPath

      public void setPath(String path)
      Sets the value of path.
      Parameters:
      path - path
    • width

      public Integer width()
      Fluent getter for width.
      Returns:
      width
    • width

      public Icon width(Integer width)
      Fluent setter for width.
      Parameters:
      width - width
      Returns:
      this
    • getWidth

      public Integer getWidth()
      Gets the value of width.
      Returns:
      width
    • setWidth

      public void setWidth(Integer width)
      Sets the value of width.
      Parameters:
      width - width
    • height

      public Integer height()
      Fluent getter for height.
      Returns:
      height
    • height

      public Icon height(Integer height)
      Fluent setter for height.
      Parameters:
      height - height
      Returns:
      this
    • getHeight

      public Integer getHeight()
      Gets the value of height.
      Returns:
      height
    • setHeight

      public void setHeight(Integer height)
      Sets the value of height.
      Parameters:
      height - height
    • isDefault

      public Boolean isDefault()
      Fluent getter for isDefault.
      Returns:
      isDefault
    • isDefault

      public Icon isDefault(Boolean isDefault)
      Fluent setter for isDefault.
      Parameters:
      isDefault - isDefault
      Returns:
      this
    • getIsDefault

      public Boolean getIsDefault()
      Gets the value of isDefault.
      Returns:
      isDefault
    • setIsDefault

      public void setIsDefault(Boolean isDefault)
      Sets the value of isDefault.
      Parameters:
      isDefault - isDefault
    • 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