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

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

    • by

      protected Map<String,Object> by
    • when

      protected Instant when
    • friendlyWhen

      protected String friendlyWhen
    • message

      protected String message
    • number

      protected Integer number
      Set this to the current version number incremented by one
    • minorEdit

      protected Boolean minorEdit
      If `minorEdit` is set to 'true', no notification email or activity stream will be generated for the change.
    • content

      protected Content content
      Base object for all content types. Representation of a blogpost (content)
    • collaborators

      protected Map<String,Object> collaborators
    • Expandable

      protected Expandablefdb576 Expandable
    • contentTypeModified

      protected Boolean contentTypeModified
      True if content type is modifed in this version (e.g. page to blog)
    • confRev

      protected String confRev
      The revision id provided by confluence to be used as a revision in Synchrony
    • syncRev

      protected String syncRev
      The revision id provided by Synchrony
    • syncRevSource

      protected String syncRevSource
      Source of the synchrony revision
  • Constructor Details

    • Version

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

      @Internal public Version(Map<String,Object> by, Instant when, String friendlyWhen, String message, Integer number, Boolean minorEdit, Content content, Map<String,Object> collaborators, Expandablefdb576 Expandable, Map<String,Object> Links, Boolean contentTypeModified, String confRev, String syncRev, String syncRevSource)
      Constructs a validated instance of Version.

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

      Parameters:
      by - by
      when - when
      friendlyWhen - friendlyWhen
      message - message
      number - Set this to the current version number incremented by one
      minorEdit - If `minorEdit` is set to 'true', no notification email or activity stream will be generated for the change.
      content - Base object for all content types. Representation of a blogpost (content)
      collaborators - collaborators
      Expandable - Expandable
      Links - Links
      contentTypeModified - True if content type is modifed in this version (e.g. page to blog)
      confRev - The revision id provided by confluence to be used as a revision in Synchrony
      syncRev - The revision id provided by Synchrony
      syncRevSource - Source of the synchrony revision
    • Version

      protected Version()
  • Method Details

    • by

      public Map<String,Object> by()
    • when

      public Instant when()
    • friendlyWhen

      public String friendlyWhen()
    • message

      public String message()
    • number

      public Integer number()
      Set this to the current version number incremented by one
    • minorEdit

      public Boolean minorEdit()
      If `minorEdit` is set to 'true', no notification email or activity stream will be generated for the change.
    • content

      public Content content()
      Base object for all content types. Representation of a blogpost (content)
    • collaborators

      public Map<String,Object> collaborators()
    • Expandable

      public Expandablefdb576 Expandable()
    • Links

      public Map<String,Object> Links()
    • contentTypeModified

      public Boolean contentTypeModified()
      True if content type is modifed in this version (e.g. page to blog)
    • confRev

      public String confRev()
      The revision id provided by confluence to be used as a revision in Synchrony
    • syncRev

      public String syncRev()
      The revision id provided by Synchrony
    • syncRevSource

      public String syncRevSource()
      Source of the synchrony revision
    • by

      public Version by(Map<String,Object> by)
      Returns:
      this.
    • when

      public Version when(Instant when)
      Returns:
      this.
    • friendlyWhen

      public Version friendlyWhen(String friendlyWhen)
      Returns:
      this.
    • message

      public Version message(String message)
      Returns:
      this.
    • number

      public Version number(Integer number)
      Set this to the current version number incremented by one
      Returns:
      this.
    • minorEdit

      public Version minorEdit(Boolean minorEdit)
      If `minorEdit` is set to 'true', no notification email or activity stream will be generated for the change.
      Returns:
      this.
    • content

      public Version content(Content content)
      Base object for all content types. Representation of a blogpost (content)
      Returns:
      this.
    • collaborators

      public Version collaborators(Map<String,Object> collaborators)
      Returns:
      this.
    • Expandable

      public Version Expandable(Expandablefdb576 Expandable)
      Returns:
      this.
    • Links

      public Version Links(Map<String,Object> Links)
      Returns:
      this.
    • contentTypeModified

      public Version contentTypeModified(Boolean contentTypeModified)
      True if content type is modifed in this version (e.g. page to blog)
      Returns:
      this.
    • confRev

      public Version confRev(String confRev)
      The revision id provided by confluence to be used as a revision in Synchrony
      Returns:
      this.
    • syncRev

      public Version syncRev(String syncRev)
      The revision id provided by Synchrony
      Returns:
      this.
    • syncRevSource

      public Version syncRevSource(String syncRevSource)
      Source of the synchrony revision
      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