Class AttachmentUpdate

java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.AttachmentUpdate

@Generated("io.github.primelib.primecodegen") public class AttachmentUpdate extends Object
AttachmentUpdate
  • Field Details

    • version

      protected Version83F448 version
      The attachment version. Set this to the current version number of the attachment. Note, the version number only needs to be incremented when updating the actual attachment, not its properties.
    • id

      protected String id
      The ID of the attachment to be updated.
    • type

      protected String type
      Set this to `attachment`.
    • title

      protected String title
      The updated name of the attachment.
    • metadata

      protected Metadata metadata
    • container

      protected Containerb524B8 container
      The new content to attach the attachment to.
  • Constructor Details

    • AttachmentUpdate

      public AttachmentUpdate(Consumer<AttachmentUpdate> spec)
      Constructs a validated instance of AttachmentUpdate.
      Parameters:
      spec - the specification to process
    • AttachmentUpdate

      @Internal public AttachmentUpdate(Version83F448 version, String id, String type, String title, Metadata metadata, Containerb524B8 container)
      Constructs a validated instance of AttachmentUpdate.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using AttachmentUpdate(Consumer) instead.

      Parameters:
      version - The attachment version. Set this to the current version number of the attachment. Note, the version number only needs to be incremented when updating the actual attachment, not its properties.
      id - The ID of the attachment to be updated.
      type - Set this to `attachment`.
      title - The updated name of the attachment.
      metadata - metadata
      container - The new content to attach the attachment to.
    • AttachmentUpdate

      protected AttachmentUpdate()
  • Method Details

    • version

      public Version83F448 version()
      The attachment version. Set this to the current version number of the attachment. Note, the version number only needs to be incremented when updating the actual attachment, not its properties.
    • id

      public String id()
      The ID of the attachment to be updated.
    • type

      public String type()
      Set this to `attachment`.
    • title

      public String title()
      The updated name of the attachment.
    • metadata

      public Metadata metadata()
    • container

      public Containerb524B8 container()
      The new content to attach the attachment to.
    • version

      public AttachmentUpdate version(Version83F448 version)
      The attachment version. Set this to the current version number of the attachment. Note, the version number only needs to be incremented when updating the actual attachment, not its properties.
      Returns:
      this.
    • id

      public AttachmentUpdate id(String id)
      The ID of the attachment to be updated.
      Returns:
      this.
    • type

      public AttachmentUpdate type(String type)
      Set this to `attachment`.
      Returns:
      this.
    • title

      public AttachmentUpdate title(String title)
      The updated name of the attachment.
      Returns:
      this.
    • metadata

      public AttachmentUpdate metadata(Metadata metadata)
      Returns:
      this.
    • container

      public AttachmentUpdate container(Containerb524B8 container)
      The new content to attach the attachment to.
      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