Class AttachmentUpload
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.AttachmentUpload
-
public class AttachmentUpload extends Object
Represents a single attachment being uploaded.
-
-
Constructor Summary
Constructors Constructor Description AttachmentUpload(File file, String name, String mediaType, String comment, boolean minorEdit)AttachmentUpload(File file, String name, String mediaType, String comment, boolean minorEdit, boolean hidden)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComment()FilegetFile()StringgetMediaType()StringgetName()booleanisHidden()booleanisMinorEdit()StringtoString()AttachmentUploadwithName(String newName)Create a new AttachmentUpload object from this one, changing the logical filename but keeping other fields.
-
-
-
Method Detail
-
withName
public AttachmentUpload withName(String newName)
Create a new AttachmentUpload object from this one, changing the logical filename but keeping other fields.- Parameters:
newName- the new logical filename (i.e. the value forgetName()on the new object)- Returns:
- new AttachmentUpload with new filename but other fields copied from this object.
-
getComment
public String getComment()
-
getMediaType
public String getMediaType()
-
getFile
public File getFile()
-
getName
public String getName()
-
isMinorEdit
public boolean isMinorEdit()
-
isHidden
public boolean isHidden()
-
-