Klasse UpdateContentOperationSpec

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

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

Specification for the UpdateContent operation.

Update content

  • Felddetails

    • VALIDATION_ENABLED

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

    • UpdateContentOperationSpec

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

      @Internal public UpdateContentOperationSpec(String id, ContentUpdate content, String status, String conflictPolicy)
      Constructs a validated instance of UpdateContentOperationSpec.

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

      Parameter:
      id - The ID of the content to be updated.
      content - The updated content.
      status - The updated status of the content. Use this parameter to change the status of a piece of content without passing the entire request body.
      conflictPolicy - The action that should be taken when conflicts are discovered. Only used when publishing a draft page.
    • UpdateContentOperationSpec

      protected UpdateContentOperationSpec()
  • Methodendetails

    • validate

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

    • id

      @NotNull public @NotNull String id()
      The ID of the content to be updated.
    • content

      @NotNull public @NotNull ContentUpdate content()
      The updated content.
    • status

      @Nullable public @Nullable String status()
      The updated status of the content. Use this parameter to change the status of a piece of content without passing the entire request body.
    • conflictPolicy

      @Nullable public @Nullable String conflictPolicy()
      The action that should be taken when conflicts are discovered. Only used when publishing a draft page.
    • id

      public UpdateContentOperationSpec id(@NotNull @NotNull String id)
      The ID of the content to be updated.
      Gibt zurück:
      this.
    • content

      public UpdateContentOperationSpec content(@NotNull @NotNull ContentUpdate content)
      The updated content.
      Gibt zurück:
      this.
    • status

      public UpdateContentOperationSpec status(@Nullable @Nullable String status)
      The updated status of the content. Use this parameter to change the status of a piece of content without passing the entire request body.
      Gibt zurück:
      this.
    • conflictPolicy

      public UpdateContentOperationSpec conflictPolicy(@Nullable @Nullable String conflictPolicy)
      The action that should be taken when conflicts are discovered. Only used when publishing a draft page.
      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