Klasse CreateAttachmentOperationSpec

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

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

Specification for the CreateAttachment operation.

Create attachment

  • Felddetails

    • VALIDATION_ENABLED

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

    • CreateAttachmentOperationSpec

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

      @Internal public CreateAttachmentOperationSpec(String id, File _file, File minorEdit, String status, File comment)
      Constructs a validated instance of CreateAttachmentOperationSpec.

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

      Parameter:
      id - The ID of the content to add the attachment to.
      _file - The relative location and name of the attachment to be added to the content.
      minorEdit - If minorEdits is set to 'true', no notification email or activity stream will be generated when the attachment is added to the content.
      status - The status of the content that the attachment is being added to.
      comment - The comment for the attachment that is being added. If you specify a comment, then every file must have a comment and the comments must be in the same order as the files. Alternatively, don't specify any comments.
    • CreateAttachmentOperationSpec

      protected CreateAttachmentOperationSpec()
  • 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 add the attachment to.
    • _file

      @NotNull public @NotNull File _file()
      The relative location and name of the attachment to be added to the content.
    • minorEdit

      @NotNull public @NotNull File minorEdit()
      If minorEdits is set to 'true', no notification email or activity stream will be generated when the attachment is added to the content.
    • status

      @Nullable public @Nullable String status()
      The status of the content that the attachment is being added to.
    • comment

      @Nullable public @Nullable File comment()
      The comment for the attachment that is being added. If you specify a comment, then every file must have a comment and the comments must be in the same order as the files. Alternatively, don't specify any comments.
    • id

      public CreateAttachmentOperationSpec id(@NotNull @NotNull String id)
      The ID of the content to add the attachment to.
      Gibt zurück:
      this.
    • _file

      public CreateAttachmentOperationSpec _file(@NotNull @NotNull File _file)
      The relative location and name of the attachment to be added to the content.
      Gibt zurück:
      this.
    • minorEdit

      public CreateAttachmentOperationSpec minorEdit(@NotNull @NotNull File minorEdit)
      If minorEdits is set to 'true', no notification email or activity stream will be generated when the attachment is added to the content.
      Gibt zurück:
      this.
    • status

      public CreateAttachmentOperationSpec status(@Nullable @Nullable String status)
      The status of the content that the attachment is being added to.
      Gibt zurück:
      this.
    • comment

      public CreateAttachmentOperationSpec comment(@Nullable @Nullable File comment)
      The comment for the attachment that is being added. If you specify a comment, then every file must have a comment and the comments must be in the same order as the files. Alternatively, don't specify any comments.
      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