Class GetContentByIDStateV1OperationSpec

java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.GetContentByIDStateV1OperationSpec

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

Gets the current content state of the draft or current version of content. To specify the draft version, set the parameter status to draft, otherwise archived or current will get the relevant published state. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.

  • Field Details

    • VALIDATION_ENABLED

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

  • Method Details

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Throws:
      NullPointerException
    • id

      public @NonNull String id()
      The id of the content whose content state is of interest.
    • status

      public @Nullable String status()
      Set status to one of [current,draft,archived]. Default value is current.
    • id

      public GetContentByIDStateV1OperationSpec id(@NonNull String id)
      The id of the content whose content state is of interest.
      Returns:
      this.
    • status

      public GetContentByIDStateV1OperationSpec status(@Nullable String status)
      Set status to one of [current,draft,archived]. Default value is current.
      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