Class CopyPageRequestDestination

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

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

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

  • Field Details

    • type

      protected String type
    • value

      protected String value
      The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`
  • Constructor Details

    • CopyPageRequestDestination

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

      @Internal public CopyPageRequestDestination(String type, String value)
      Constructs a validated instance of CopyPageRequestDestination.

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

      Parameters:
      type - type
      value - The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`
    • CopyPageRequestDestination

      protected CopyPageRequestDestination()
  • Method Details

    • type

      public String type()
    • value

      public String value()
      The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`
    • type

      public CopyPageRequestDestination type(String type)
      Returns:
      this.
    • value

      public CopyPageRequestDestination value(String value)
      The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_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