Class Version

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
    • additionalExpandable

      protected Expandablefdb576 additionalExpandable
    • 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 protected Version()
      Protected no-args constructor for use by serialization frameworks.
    • 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 additionalExpandable, Map<String,Object> additionalLinks, 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
      additionalExpandable - additionalExpandable
      additionalLinks - additionalLinks
      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
  • Method Details

    • by

      public Map<String,Object> by()
      Fluent getter for by.
      Returns:
      by
    • by

      public Version by(Map<String,Object> by)
      Fluent setter for by.
      Parameters:
      by - by
      Returns:
      this
    • getBy

      public Map<String,Object> getBy()
      Gets the value of by.
      Returns:
      by
    • setBy

      public void setBy(Map<String,Object> by)
      Sets the value of by.
      Parameters:
      by - by
    • when

      public Instant when()
      Fluent getter for when.
      Returns:
      when
    • when

      public Version when(Instant when)
      Fluent setter for when.
      Parameters:
      when - when
      Returns:
      this
    • getWhen

      public Instant getWhen()
      Gets the value of when.
      Returns:
      when
    • setWhen

      public void setWhen(Instant when)
      Sets the value of when.
      Parameters:
      when - when
    • friendlyWhen

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

      public Version friendlyWhen(String friendlyWhen)
      Fluent setter for friendlyWhen.
      Parameters:
      friendlyWhen - friendlyWhen
      Returns:
      this
    • getFriendlyWhen

      public String getFriendlyWhen()
      Gets the value of friendlyWhen.
      Returns:
      friendlyWhen
    • setFriendlyWhen

      public void setFriendlyWhen(String friendlyWhen)
      Sets the value of friendlyWhen.
      Parameters:
      friendlyWhen - friendlyWhen
    • message

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

      public Version message(String message)
      Fluent setter for message.
      Parameters:
      message - message
      Returns:
      this
    • getMessage

      public String getMessage()
      Gets the value of message.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
      Sets the value of message.
      Parameters:
      message - message
    • number

      public Integer number()
      Fluent getter for number.

      Set this to the current version number incremented by one

      Returns:
      number
    • number

      public Version number(Integer number)
      Fluent setter for number.

      Set this to the current version number incremented by one

      Parameters:
      number - number
      Returns:
      this
    • getNumber

      public Integer getNumber()
      Gets the value of number.

      Set this to the current version number incremented by one

      Returns:
      number
    • setNumber

      public void setNumber(Integer number)
      Sets the value of number.

      Set this to the current version number incremented by one

      Parameters:
      number - number
    • minorEdit

      public Boolean minorEdit()
      Fluent getter for minorEdit.

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

      Returns:
      minorEdit
    • minorEdit

      public Version minorEdit(Boolean minorEdit)
      Fluent setter for minorEdit.

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

      Parameters:
      minorEdit - minorEdit
      Returns:
      this
    • getMinorEdit

      public Boolean getMinorEdit()
      Gets the value of minorEdit.

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

      Returns:
      minorEdit
    • setMinorEdit

      public void setMinorEdit(Boolean minorEdit)
      Sets the value of minorEdit.

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

      Parameters:
      minorEdit - minorEdit
    • content

      public Content content()
      Fluent getter for content.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      content
    • content

      public Version content(Content content)
      Fluent setter for content.

      Base object for all content types. Representation of a blogpost (content)

      Parameters:
      content - content
      Returns:
      this
    • getContent

      public Content getContent()
      Gets the value of content.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      content
    • setContent

      public void setContent(Content content)
      Sets the value of content.

      Base object for all content types. Representation of a blogpost (content)

      Parameters:
      content - content
    • collaborators

      public Map<String,Object> collaborators()
      Fluent getter for collaborators.
      Returns:
      collaborators
    • collaborators

      public Version collaborators(Map<String,Object> collaborators)
      Fluent setter for collaborators.
      Parameters:
      collaborators - collaborators
      Returns:
      this
    • getCollaborators

      public Map<String,Object> getCollaborators()
      Gets the value of collaborators.
      Returns:
      collaborators
    • setCollaborators

      public void setCollaborators(Map<String,Object> collaborators)
      Sets the value of collaborators.
      Parameters:
      collaborators - collaborators
    • additionalExpandable

      public Expandablefdb576 additionalExpandable()
      Fluent getter for additionalExpandable.
      Returns:
      additionalExpandable
    • additionalExpandable

      public Version additionalExpandable(Expandablefdb576 additionalExpandable)
      Fluent setter for additionalExpandable.
      Parameters:
      additionalExpandable - additionalExpandable
      Returns:
      this
    • getAdditionalExpandable

      public Expandablefdb576 getAdditionalExpandable()
      Gets the value of additionalExpandable.
      Returns:
      additionalExpandable
    • setAdditionalExpandable

      public void setAdditionalExpandable(Expandablefdb576 additionalExpandable)
      Sets the value of additionalExpandable.
      Parameters:
      additionalExpandable - additionalExpandable
    • additionalLinks

      public Map<String,Object> additionalLinks()
      Fluent getter for additionalLinks.
      Returns:
      additionalLinks
    • additionalLinks

      public Version additionalLinks(Map<String,Object> additionalLinks)
      Fluent setter for additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
      Returns:
      this
    • getAdditionalLinks

      public Map<String,Object> getAdditionalLinks()
      Gets the value of additionalLinks.
      Returns:
      additionalLinks
    • setAdditionalLinks

      public void setAdditionalLinks(Map<String,Object> additionalLinks)
      Sets the value of additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
    • contentTypeModified

      public Boolean contentTypeModified()
      Fluent getter for contentTypeModified.

      True if content type is modifed in this version (e.g. page to blog)

      Returns:
      contentTypeModified
    • contentTypeModified

      public Version contentTypeModified(Boolean contentTypeModified)
      Fluent setter for contentTypeModified.

      True if content type is modifed in this version (e.g. page to blog)

      Parameters:
      contentTypeModified - contentTypeModified
      Returns:
      this
    • getContentTypeModified

      public Boolean getContentTypeModified()
      Gets the value of contentTypeModified.

      True if content type is modifed in this version (e.g. page to blog)

      Returns:
      contentTypeModified
    • setContentTypeModified

      public void setContentTypeModified(Boolean contentTypeModified)
      Sets the value of contentTypeModified.

      True if content type is modifed in this version (e.g. page to blog)

      Parameters:
      contentTypeModified - contentTypeModified
    • confRev

      public String confRev()
      Fluent getter for confRev.

      The revision id provided by confluence to be used as a revision in Synchrony

      Returns:
      confRev
    • confRev

      public Version confRev(String confRev)
      Fluent setter for confRev.

      The revision id provided by confluence to be used as a revision in Synchrony

      Parameters:
      confRev - confRev
      Returns:
      this
    • getConfRev

      public String getConfRev()
      Gets the value of confRev.

      The revision id provided by confluence to be used as a revision in Synchrony

      Returns:
      confRev
    • setConfRev

      public void setConfRev(String confRev)
      Sets the value of confRev.

      The revision id provided by confluence to be used as a revision in Synchrony

      Parameters:
      confRev - confRev
    • syncRev

      public String syncRev()
      Fluent getter for syncRev.

      The revision id provided by Synchrony

      Returns:
      syncRev
    • syncRev

      public Version syncRev(String syncRev)
      Fluent setter for syncRev.

      The revision id provided by Synchrony

      Parameters:
      syncRev - syncRev
      Returns:
      this
    • getSyncRev

      public String getSyncRev()
      Gets the value of syncRev.

      The revision id provided by Synchrony

      Returns:
      syncRev
    • setSyncRev

      public void setSyncRev(String syncRev)
      Sets the value of syncRev.

      The revision id provided by Synchrony

      Parameters:
      syncRev - syncRev
    • syncRevSource

      public String syncRevSource()
      Fluent getter for syncRevSource.

      Source of the synchrony revision

      Returns:
      syncRevSource
    • syncRevSource

      public Version syncRevSource(String syncRevSource)
      Fluent setter for syncRevSource.

      Source of the synchrony revision

      Parameters:
      syncRevSource - syncRevSource
      Returns:
      this
    • getSyncRevSource

      public String getSyncRevSource()
      Gets the value of syncRevSource.

      Source of the synchrony revision

      Returns:
      syncRevSource
    • setSyncRevSource

      public void setSyncRevSource(String syncRevSource)
      Sets the value of syncRevSource.

      Source of the synchrony revision

      Parameters:
      syncRevSource - syncRevSource
    • 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