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 protected AttachmentUpdate()
      Protected no-args constructor for use by serialization frameworks.
    • 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.
  • Method Details

    • version

      public Version83F448 version()
      Fluent getter for 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:
      version
    • version

      public AttachmentUpdate version(Version83F448 version)
      Fluent setter for 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.

      Parameters:
      version - version
      Returns:
      this
    • getVersion

      public Version83F448 getVersion()
      Gets the value of 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:
      version
    • setVersion

      public void setVersion(Version83F448 version)
      Sets the value of 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.

      Parameters:
      version - version
    • id

      public String id()
      Fluent getter for id.

      The ID of the attachment to be updated.

      Returns:
      id
    • id

      public AttachmentUpdate id(String id)
      Fluent setter for id.

      The ID of the attachment to be updated.

      Parameters:
      id - id
      Returns:
      this
    • getId

      public String getId()
      Gets the value of id.

      The ID of the attachment to be updated.

      Returns:
      id
    • setId

      public void setId(String id)
      Sets the value of id.

      The ID of the attachment to be updated.

      Parameters:
      id - id
    • type

      public String type()
      Fluent getter for type.

      Set this to `attachment`.

      Returns:
      type
    • type

      public AttachmentUpdate type(String type)
      Fluent setter for type.

      Set this to `attachment`.

      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.

      Set this to `attachment`.

      Returns:
      type
    • setType

      public void setType(String type)
      Sets the value of type.

      Set this to `attachment`.

      Parameters:
      type - type
    • title

      public String title()
      Fluent getter for title.

      The updated name of the attachment.

      Returns:
      title
    • title

      public AttachmentUpdate title(String title)
      Fluent setter for title.

      The updated name of the attachment.

      Parameters:
      title - title
      Returns:
      this
    • getTitle

      public String getTitle()
      Gets the value of title.

      The updated name of the attachment.

      Returns:
      title
    • setTitle

      public void setTitle(String title)
      Sets the value of title.

      The updated name of the attachment.

      Parameters:
      title - title
    • metadata

      public Metadata metadata()
      Fluent getter for metadata.
      Returns:
      metadata
    • metadata

      public AttachmentUpdate metadata(Metadata metadata)
      Fluent setter for metadata.
      Parameters:
      metadata - metadata
      Returns:
      this
    • getMetadata

      public Metadata getMetadata()
      Gets the value of metadata.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Metadata metadata)
      Sets the value of metadata.
      Parameters:
      metadata - metadata
    • container

      public Containerb524B8 container()
      Fluent getter for container.

      The new content to attach the attachment to.

      Returns:
      container
    • container

      public AttachmentUpdate container(Containerb524B8 container)
      Fluent setter for container.

      The new content to attach the attachment to.

      Parameters:
      container - container
      Returns:
      this
    • getContainer

      public Containerb524B8 getContainer()
      Gets the value of container.

      The new content to attach the attachment to.

      Returns:
      container
    • setContainer

      public void setContainer(Containerb524B8 container)
      Sets the value of container.

      The new content to attach the attachment to.

      Parameters:
      container - container
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object