@ExperimentalApi public class AttachmentUpload extends Object
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
String |
getComment() |
File |
getFile() |
String |
getMediaType() |
String |
getName() |
boolean |
isHidden() |
boolean |
isMinorEdit() |
String |
toString() |
AttachmentUpload |
withName(String newName)
Create a new AttachmentUpload object from this one, changing the logical filename but keeping other fields.
|
public AttachmentUpload(File file, String name, String mediaType, String comment, boolean minorEdit)
public AttachmentUpload withName(String newName)
newName
- the new logical filename (i.e. the value for getName()
on the new object)public String getComment()
public String getMediaType()
public File getFile()
public String getName()
public boolean isMinorEdit()
public boolean isHidden()
Copyright © 2003–2018 Atlassian. All rights reserved.