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

@Generated("io.github.primelib.primecodegen") public class Watch extends Object
Watch
  • Field Details

    • type

      protected String type
    • watcher

      protected WatchUser watcher
      This essentially the same as the `User` object, but no `_links` property and no `_expandable` property (therefore, different required fields).
    • contentId

      protected Long contentId
  • Constructor Details

    • Watch

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

      @Internal public Watch(String type, WatchUser watcher, Long contentId)
      Constructs a validated instance of Watch.

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

      Parameters:
      type - type
      watcher - This essentially the same as the `User` object, but no `_links` property and no `_expandable` property (therefore, different required fields).
      contentId - contentId
    • Watch

      protected Watch()
  • Method Details

    • type

      public String type()
    • watcher

      public WatchUser watcher()
      This essentially the same as the `User` object, but no `_links` property and no `_expandable` property (therefore, different required fields).
    • contentId

      public Long contentId()
    • type

      public Watch type(String type)
      Returns:
      this.
    • watcher

      public Watch watcher(WatchUser watcher)
      This essentially the same as the `User` object, but no `_links` property and no `_expandable` property (therefore, different required fields).
      Returns:
      this.
    • contentId

      public Watch contentId(Long contentId)
      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