Class PostContentByIDLabelV1OperationSpec

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

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

Adds labels to a piece of content. Does not modify the existing labels. Notes: - Labels can also be added when creating content ([Create content](#api-content-post)). - Labels can be updated when updating content ([Update content](#api-content-id-put)). This will delete the existing labels and replace them with the labels in the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update 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 that will have labels added to it.
    • payload

      public @NonNull Object payload()
      The labels to add to the content.
    • id

      The ID of the content that will have labels added to it.
      Returns:
      this.
    • payload

      public PostContentByIDLabelV1OperationSpec payload(@NonNull Object payload)
      The labels to add to the content.
      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