Class AttachmentUpdate
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.AttachmentUpdate
AttachmentUpdate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Containerb524B8The new content to attach the attachment to.protected StringThe ID of the attachment to be updated.protected Metadataprotected StringThe updated name of the attachment.protected StringSet this to `attachment`.protected Version83F448The attachment version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAttachmentUpdate(Version83F448 version, String id, String type, String title, Metadata metadata, Containerb524B8 container) Constructs a validated instance ofAttachmentUpdate.Constructs a validated instance ofAttachmentUpdate. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanThe new content to attach the attachment to.container(Containerb524B8 container) The new content to attach the attachment to.booleaninthashCode()id()The ID of the attachment to be updated.The ID of the attachment to be updated.metadata()title()The updated name of the attachment.The updated name of the attachment.toString()type()Set this to `attachment`.Set this to `attachment`.version()The attachment version.version(Version83F448 version) The attachment version.
-
Field Details
-
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
-
container
The new content to attach the attachment to.
-
-
Constructor Details
-
AttachmentUpdate
Constructs a validated instance ofAttachmentUpdate.- 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 ofAttachmentUpdate.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- metadatacontainer- The new content to attach the attachment to.
-
AttachmentUpdate
protected AttachmentUpdate()
-
-
Method Details
-
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
-
container
The new content to attach the attachment to. -
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
The ID of the attachment to be updated.- Returns:
this.
-
type
Set this to `attachment`.- Returns:
this.
-
title
The updated name of the attachment.- Returns:
this.
-
metadata
- Returns:
this.
-
container
The new content to attach the attachment to.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-