Class CopyPageRequest

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

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

    • copyAttachments

      protected Boolean copyAttachments
      If set to `true`, attachments are copied to the destination page.
    • copyPermissions

      protected Boolean copyPermissions
      If set to `true`, page permissions are copied to the destination page.
    • copyProperties

      protected Boolean copyProperties
      If set to `true`, content properties are copied to the destination page.
    • copyLabels

      protected Boolean copyLabels
      If set to `true`, labels are copied to the destination page.
    • copyCustomContents

      protected Boolean copyCustomContents
      If set to `true`, custom contents are copied to the destination page.
    • destination

      protected CopyPageRequestDestination destination
      Defines where the page will be copied to, and can be one of the following types. - `parent_page`: page will be copied as a child of the specified parent page - `parent_content`: page will be copied as a child of the specified parent content - `space`: page will be copied to the specified space as a root page on the space - `existing_page`: page will be copied and replace the specified page
    • pageTitle

      protected String pageTitle
      If defined, this will replace the title of the destination page.
    • body

      protected Bodyded886 body
      If defined, this will replace the body of the destination page.
  • Constructor Details

    • CopyPageRequest

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

      @Internal public CopyPageRequest(Boolean copyAttachments, Boolean copyPermissions, Boolean copyProperties, Boolean copyLabels, Boolean copyCustomContents, CopyPageRequestDestination destination, String pageTitle, Bodyded886 body)
      Constructs a validated instance of CopyPageRequest.

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

      Parameters:
      copyAttachments - If set to `true`, attachments are copied to the destination page.
      copyPermissions - If set to `true`, page permissions are copied to the destination page.
      copyProperties - If set to `true`, content properties are copied to the destination page.
      copyLabels - If set to `true`, labels are copied to the destination page.
      copyCustomContents - If set to `true`, custom contents are copied to the destination page.
      destination - Defines where the page will be copied to, and can be one of the following types. - `parent_page`: page will be copied as a child of the specified parent page - `parent_content`: page will be copied as a child of the specified parent content - `space`: page will be copied to the specified space as a root page on the space - `existing_page`: page will be copied and replace the specified page
      pageTitle - If defined, this will replace the title of the destination page.
      body - If defined, this will replace the body of the destination page.
    • CopyPageRequest

      protected CopyPageRequest()
  • Method Details

    • copyAttachments

      public Boolean copyAttachments()
      If set to `true`, attachments are copied to the destination page.
    • copyPermissions

      public Boolean copyPermissions()
      If set to `true`, page permissions are copied to the destination page.
    • copyProperties

      public Boolean copyProperties()
      If set to `true`, content properties are copied to the destination page.
    • copyLabels

      public Boolean copyLabels()
      If set to `true`, labels are copied to the destination page.
    • copyCustomContents

      public Boolean copyCustomContents()
      If set to `true`, custom contents are copied to the destination page.
    • destination

      public CopyPageRequestDestination destination()
      Defines where the page will be copied to, and can be one of the following types. - `parent_page`: page will be copied as a child of the specified parent page - `parent_content`: page will be copied as a child of the specified parent content - `space`: page will be copied to the specified space as a root page on the space - `existing_page`: page will be copied and replace the specified page
    • pageTitle

      public String pageTitle()
      If defined, this will replace the title of the destination page.
    • body

      public Bodyded886 body()
      If defined, this will replace the body of the destination page.
    • copyAttachments

      public CopyPageRequest copyAttachments(Boolean copyAttachments)
      If set to `true`, attachments are copied to the destination page.
      Returns:
      this.
    • copyPermissions

      public CopyPageRequest copyPermissions(Boolean copyPermissions)
      If set to `true`, page permissions are copied to the destination page.
      Returns:
      this.
    • copyProperties

      public CopyPageRequest copyProperties(Boolean copyProperties)
      If set to `true`, content properties are copied to the destination page.
      Returns:
      this.
    • copyLabels

      public CopyPageRequest copyLabels(Boolean copyLabels)
      If set to `true`, labels are copied to the destination page.
      Returns:
      this.
    • copyCustomContents

      public CopyPageRequest copyCustomContents(Boolean copyCustomContents)
      If set to `true`, custom contents are copied to the destination page.
      Returns:
      this.
    • destination

      public CopyPageRequest destination(CopyPageRequestDestination destination)
      Defines where the page will be copied to, and can be one of the following types. - `parent_page`: page will be copied as a child of the specified parent page - `parent_content`: page will be copied as a child of the specified parent content - `space`: page will be copied to the specified space as a root page on the space - `existing_page`: page will be copied and replace the specified page
      Returns:
      this.
    • pageTitle

      public CopyPageRequest pageTitle(String pageTitle)
      If defined, this will replace the title of the destination page.
      Returns:
      this.
    • body

      public CopyPageRequest body(Bodyded886 body)
      If defined, this will replace the body of the destination page.
      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