Class Params

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

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

    • versionNumber

      protected Integer versionNumber
      The version number to be restored.
    • message

      protected String message
      Description for the version.
    • restoreTitle

      protected Boolean restoreTitle
      If true, the content title will be the same as the title from the version restored. Defaults to `false`.
  • Constructor Details

    • Params

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

      @Internal protected Params()
      Protected no-args constructor for use by serialization frameworks.
    • Params

      @Internal public Params(Integer versionNumber, String message, Boolean restoreTitle)
      Constructs a validated instance of Params.

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

      Parameters:
      versionNumber - The version number to be restored.
      message - Description for the version.
      restoreTitle - If true, the content title will be the same as the title from the version restored. Defaults to `false`.
  • Method Details

    • versionNumber

      public Integer versionNumber()
      Fluent getter for versionNumber.

      The version number to be restored.

      Returns:
      versionNumber
    • versionNumber

      public Params versionNumber(Integer versionNumber)
      Fluent setter for versionNumber.

      The version number to be restored.

      Parameters:
      versionNumber - versionNumber
      Returns:
      this
    • getVersionNumber

      public Integer getVersionNumber()
      Gets the value of versionNumber.

      The version number to be restored.

      Returns:
      versionNumber
    • setVersionNumber

      public void setVersionNumber(Integer versionNumber)
      Sets the value of versionNumber.

      The version number to be restored.

      Parameters:
      versionNumber - versionNumber
    • message

      public String message()
      Fluent getter for message.

      Description for the version.

      Returns:
      message
    • message

      public Params message(String message)
      Fluent setter for message.

      Description for the version.

      Parameters:
      message - message
      Returns:
      this
    • getMessage

      public String getMessage()
      Gets the value of message.

      Description for the version.

      Returns:
      message
    • setMessage

      public void setMessage(String message)
      Sets the value of message.

      Description for the version.

      Parameters:
      message - message
    • restoreTitle

      public Boolean restoreTitle()
      Fluent getter for restoreTitle.

      If true, the content title will be the same as the title from the version restored. Defaults to `false`.

      Returns:
      restoreTitle
    • restoreTitle

      public Params restoreTitle(Boolean restoreTitle)
      Fluent setter for restoreTitle.

      If true, the content title will be the same as the title from the version restored. Defaults to `false`.

      Parameters:
      restoreTitle - restoreTitle
      Returns:
      this
    • getRestoreTitle

      public Boolean getRestoreTitle()
      Gets the value of restoreTitle.

      If true, the content title will be the same as the title from the version restored. Defaults to `false`.

      Returns:
      restoreTitle
    • setRestoreTitle

      public void setRestoreTitle(Boolean restoreTitle)
      Sets the value of restoreTitle.

      If true, the content title will be the same as the title from the version restored. Defaults to `false`.

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