Class PostContentByIDVersionV1OperationSpec

java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostContentByIDVersionV1OperationSpec

@Generated("io.github.primelib.primecodegen") public class PostContentByIDVersionV1OperationSpec extends Object
PostContentByIDVersionV1

Restores a historical version to be the latest version. That is, a new version is created with the content of the historical version. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.

  • Field Details

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Constructor Details

  • Method Details

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Throws:
      NullPointerException
    • id

      public @NonNull String id()
      The ID of the content for which the history will be restored.
    • expand

      public @Nullable List<String> expand()
      A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded. - `collaborators` returns the users that collaborated on the version. - `content` returns the content for the version.
    • payload

      public @NonNull VersionRestore payload()
      The content version to be restored.
    • id

      The ID of the content for which the history will be restored.
      Returns:
      this.
    • expand

      public PostContentByIDVersionV1OperationSpec expand(@Nullable List<String> expand)
      A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded. - `collaborators` returns the users that collaborated on the version. - `content` returns the content for the version.
      Returns:
      this.
    • payload

      public PostContentByIDVersionV1OperationSpec payload(@NonNull VersionRestore payload)
      The content version to be restored.
      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