Class Watch

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

    • type

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

      public Watch type(String type)
      Fluent setter for type.
      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.
      Returns:
      type
    • setType

      public void setType(String type)
      Sets the value of type.
      Parameters:
      type - type
    • watcher

      public WatchUser watcher()
      Fluent getter for watcher.

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

      Returns:
      watcher
    • watcher

      public Watch watcher(WatchUser watcher)
      Fluent setter for watcher.

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

      Parameters:
      watcher - watcher
      Returns:
      this
    • getWatcher

      public WatchUser getWatcher()
      Gets the value of watcher.

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

      Returns:
      watcher
    • setWatcher

      public void setWatcher(WatchUser watcher)
      Sets the value of watcher.

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

      Parameters:
      watcher - watcher
    • contentId

      public Long contentId()
      Fluent getter for contentId.
      Returns:
      contentId
    • contentId

      public Watch contentId(Long contentId)
      Fluent setter for contentId.
      Parameters:
      contentId - contentId
      Returns:
      this
    • getContentId

      public Long getContentId()
      Gets the value of contentId.
      Returns:
      contentId
    • setContentId

      public void setContentId(Long contentId)
      Sets the value of contentId.
      Parameters:
      contentId - contentId
    • 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