Klasse SetContentStateOperationSpec

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

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

Specification for the SetContentState operation.

Set the content state of a content and publishes a new version of the content.

  • Felddetails

    • VALIDATION_ENABLED

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

    • SetContentStateOperationSpec

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

      @Internal public SetContentStateOperationSpec(String id, ContentStateRestInput contentStateRestInput, String status)
      Constructs a validated instance of SetContentStateOperationSpec.

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

      Parameter:
      id - The Id of the content whose content state is to be set.
      contentStateRestInput - Content state fields for state. Pass in id for an existing state, or new name and color for best matching existing state, or new state if allowed in space.
      status - Status of content onto which state will be placed. If draft, then draft state will change. If current, state will be placed onto a new version of the content with same body as previous version.
    • SetContentStateOperationSpec

      protected SetContentStateOperationSpec()
  • 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 whose content state is to be set.
    • contentStateRestInput

      @NotNull public @NotNull ContentStateRestInput contentStateRestInput()
      Content state fields for state. Pass in id for an existing state, or new name and color for best matching existing state, or new state if allowed in space.
    • status

      @Nullable public @Nullable String status()
      Status of content onto which state will be placed. If draft, then draft state will change. If current, state will be placed onto a new version of the content with same body as previous version.
    • id

      public SetContentStateOperationSpec id(@NotNull @NotNull String id)
      The Id of the content whose content state is to be set.
      Gibt zurück:
      this.
    • contentStateRestInput

      public SetContentStateOperationSpec contentStateRestInput(@NotNull @NotNull ContentStateRestInput contentStateRestInput)
      Content state fields for state. Pass in id for an existing state, or new name and color for best matching existing state, or new state if allowed in space.
      Gibt zurück:
      this.
    • status

      public SetContentStateOperationSpec status(@Nullable @Nullable String status)
      Status of content onto which state will be placed. If draft, then draft state will change. If current, state will be placed onto a new version of the content with same body as previous version.
      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