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

    • type

      public String type()
      Fluent getter for type.
      Returns:
      type
    • type

      public CopyPageRequestDestination type(String type)
      Fluent setter for type.
      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.
      Returns:
      type
    • setType

      public void setType(String type)
      Sets the value of type.
      Parameters:
      type - type
    • value

      public String value()
      Fluent getter for value.

      The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`

      Returns:
      value
    • value

      public CopyPageRequestDestination value(String value)
      Fluent setter for value.

      The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`

      Parameters:
      value - value
      Returns:
      this
    • getValue

      public String getValue()
      Gets the value of value.

      The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`

      Returns:
      value
    • setValue

      public void setValue(String value)
      Sets the value of value.

      The space key for `space` type, and content id for `parent_page`, `parent_content`, and `existing_page`

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