Klasse MovePageOperationSpec

java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.MovePageOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class MovePageOperationSpec extends Object
MovePageSpec

Specification for the MovePage operation.

Move a page to a new location relative to a target page

  • Felddetails

    • VALIDATION_ENABLED

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

    • MovePageOperationSpec

      @Internal public MovePageOperationSpec(Consumer<MovePageOperationSpec> spec)
      Constructs a validated instance of MovePageOperationSpec.
      Parameter:
      spec - the specification to process
    • MovePageOperationSpec

      @Internal public MovePageOperationSpec(String pageId, String position, String targetId)
      Constructs a validated instance of MovePageOperationSpec.

      NOTE: This constructor is not considered stable and may change if the operation is updated.

      Parameter:
      pageId - The ID of the page to be moved
      position - The position to move the page to relative to the target page: * before - move the page under the same parent as the target, before the target in the list of children * after - move the page under the same parent as the target, after the target in the list of children * append - move the page to be a child of the target
      targetId - The ID of the target page for this operation
    • MovePageOperationSpec

      protected MovePageOperationSpec()
  • Methodendetails

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      NullPointerException
    • builder

    • pageId

      @NotNull public @NotNull String pageId()
      The ID of the page to be moved
    • position

      @NotNull public @NotNull String position()
      The position to move the page to relative to the target page: * before - move the page under the same parent as the target, before the target in the list of children * after - move the page under the same parent as the target, after the target in the list of children * append - move the page to be a child of the target
    • targetId

      @NotNull public @NotNull String targetId()
      The ID of the target page for this operation
    • pageId

      public MovePageOperationSpec pageId(@NotNull @NotNull String pageId)
      The ID of the page to be moved
      Gibt zurück:
      this.
    • position

      public MovePageOperationSpec position(@NotNull @NotNull String position)
      The position to move the page to relative to the target page: * before - move the page under the same parent as the target, before the target in the list of children * after - move the page under the same parent as the target, after the target in the list of children * append - move the page to be a child of the target
      Gibt zurück:
      this.
    • targetId

      public MovePageOperationSpec targetId(@NotNull @NotNull String targetId)
      The ID of the target page for this operation
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object