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 protected CopyPageRequest()
      Protected no-args constructor for use by serialization frameworks.
    • 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.
  • Method Details

    • copyAttachments

      public Boolean copyAttachments()
      Fluent getter for copyAttachments.

      If set to `true`, attachments are copied to the destination page.

      Returns:
      copyAttachments
    • copyAttachments

      public CopyPageRequest copyAttachments(Boolean copyAttachments)
      Fluent setter for copyAttachments.

      If set to `true`, attachments are copied to the destination page.

      Parameters:
      copyAttachments - copyAttachments
      Returns:
      this
    • getCopyAttachments

      public Boolean getCopyAttachments()
      Gets the value of copyAttachments.

      If set to `true`, attachments are copied to the destination page.

      Returns:
      copyAttachments
    • setCopyAttachments

      public void setCopyAttachments(Boolean copyAttachments)
      Sets the value of copyAttachments.

      If set to `true`, attachments are copied to the destination page.

      Parameters:
      copyAttachments - copyAttachments
    • copyPermissions

      public Boolean copyPermissions()
      Fluent getter for copyPermissions.

      If set to `true`, page permissions are copied to the destination page.

      Returns:
      copyPermissions
    • copyPermissions

      public CopyPageRequest copyPermissions(Boolean copyPermissions)
      Fluent setter for copyPermissions.

      If set to `true`, page permissions are copied to the destination page.

      Parameters:
      copyPermissions - copyPermissions
      Returns:
      this
    • getCopyPermissions

      public Boolean getCopyPermissions()
      Gets the value of copyPermissions.

      If set to `true`, page permissions are copied to the destination page.

      Returns:
      copyPermissions
    • setCopyPermissions

      public void setCopyPermissions(Boolean copyPermissions)
      Sets the value of copyPermissions.

      If set to `true`, page permissions are copied to the destination page.

      Parameters:
      copyPermissions - copyPermissions
    • copyProperties

      public Boolean copyProperties()
      Fluent getter for copyProperties.

      If set to `true`, content properties are copied to the destination page.

      Returns:
      copyProperties
    • copyProperties

      public CopyPageRequest copyProperties(Boolean copyProperties)
      Fluent setter for copyProperties.

      If set to `true`, content properties are copied to the destination page.

      Parameters:
      copyProperties - copyProperties
      Returns:
      this
    • getCopyProperties

      public Boolean getCopyProperties()
      Gets the value of copyProperties.

      If set to `true`, content properties are copied to the destination page.

      Returns:
      copyProperties
    • setCopyProperties

      public void setCopyProperties(Boolean copyProperties)
      Sets the value of copyProperties.

      If set to `true`, content properties are copied to the destination page.

      Parameters:
      copyProperties - copyProperties
    • copyLabels

      public Boolean copyLabels()
      Fluent getter for copyLabels.

      If set to `true`, labels are copied to the destination page.

      Returns:
      copyLabels
    • copyLabels

      public CopyPageRequest copyLabels(Boolean copyLabels)
      Fluent setter for copyLabels.

      If set to `true`, labels are copied to the destination page.

      Parameters:
      copyLabels - copyLabels
      Returns:
      this
    • getCopyLabels

      public Boolean getCopyLabels()
      Gets the value of copyLabels.

      If set to `true`, labels are copied to the destination page.

      Returns:
      copyLabels
    • setCopyLabels

      public void setCopyLabels(Boolean copyLabels)
      Sets the value of copyLabels.

      If set to `true`, labels are copied to the destination page.

      Parameters:
      copyLabels - copyLabels
    • copyCustomContents

      public Boolean copyCustomContents()
      Fluent getter for copyCustomContents.

      If set to `true`, custom contents are copied to the destination page.

      Returns:
      copyCustomContents
    • copyCustomContents

      public CopyPageRequest copyCustomContents(Boolean copyCustomContents)
      Fluent setter for copyCustomContents.

      If set to `true`, custom contents are copied to the destination page.

      Parameters:
      copyCustomContents - copyCustomContents
      Returns:
      this
    • getCopyCustomContents

      public Boolean getCopyCustomContents()
      Gets the value of copyCustomContents.

      If set to `true`, custom contents are copied to the destination page.

      Returns:
      copyCustomContents
    • setCopyCustomContents

      public void setCopyCustomContents(Boolean copyCustomContents)
      Sets the value of copyCustomContents.

      If set to `true`, custom contents are copied to the destination page.

      Parameters:
      copyCustomContents - copyCustomContents
    • destination

      public CopyPageRequestDestination destination()
      Fluent getter for 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:
      destination
    • destination

      public CopyPageRequest destination(CopyPageRequestDestination destination)
      Fluent setter for 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

      Parameters:
      destination - destination
      Returns:
      this
    • getDestination

      public CopyPageRequestDestination getDestination()
      Gets the value of 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:
      destination
    • setDestination

      public void setDestination(CopyPageRequestDestination destination)
      Sets the value of 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

      Parameters:
      destination - destination
    • pageTitle

      public String pageTitle()
      Fluent getter for pageTitle.

      If defined, this will replace the title of the destination page.

      Returns:
      pageTitle
    • pageTitle

      public CopyPageRequest pageTitle(String pageTitle)
      Fluent setter for pageTitle.

      If defined, this will replace the title of the destination page.

      Parameters:
      pageTitle - pageTitle
      Returns:
      this
    • getPageTitle

      public String getPageTitle()
      Gets the value of pageTitle.

      If defined, this will replace the title of the destination page.

      Returns:
      pageTitle
    • setPageTitle

      public void setPageTitle(String pageTitle)
      Sets the value of pageTitle.

      If defined, this will replace the title of the destination page.

      Parameters:
      pageTitle - pageTitle
    • body

      public Bodyded886 body()
      Fluent getter for body.

      If defined, this will replace the body of the destination page.

      Returns:
      body
    • body

      public CopyPageRequest body(Bodyded886 body)
      Fluent setter for body.

      If defined, this will replace the body of the destination page.

      Parameters:
      body - body
      Returns:
      this
    • getBody

      public Bodyded886 getBody()
      Gets the value of body.

      If defined, this will replace the body of the destination page.

      Returns:
      body
    • setBody

      public void setBody(Bodyded886 body)
      Sets the value of body.

      If defined, this will replace the body of the destination page.

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