public static final class Attachment.AttachmentBuilder extends Object
Attachment
objectConstructor and Description |
---|
AttachmentBuilder() |
Modifier and Type | Method and Description |
---|---|
Attachment |
build() |
Attachment.AttachmentBuilder |
classpathResource(String classpathResource) |
Attachment.AttachmentBuilder |
comment(String comment) |
Attachment.AttachmentBuilder |
contentEntity(ContentEntity contentEntity) |
Attachment.AttachmentBuilder |
contentType(String contentType) |
Attachment.AttachmentBuilder |
data(byte[] data) |
Attachment.AttachmentBuilder |
dataFile(File dataFile) |
Attachment.AttachmentBuilder |
fileId(Long fileId) |
Attachment.AttachmentBuilder |
filename(String filename) |
static Attachment.AttachmentBuilder |
from(Attachment attachment) |
Attachment.AttachmentBuilder |
id(long id) |
Attachment.AttachmentBuilder |
minorEdit(boolean minorEdit) |
Attachment.AttachmentBuilder |
url(String url) |
Attachment.AttachmentBuilder |
version(int version) |
public static Attachment.AttachmentBuilder from(Attachment attachment)
public Attachment build()
public Attachment.AttachmentBuilder contentEntity(ContentEntity contentEntity)
public Attachment.AttachmentBuilder filename(String filename)
public Attachment.AttachmentBuilder contentType(String contentType)
public Attachment.AttachmentBuilder comment(String comment)
public Attachment.AttachmentBuilder data(byte[] data)
public Attachment.AttachmentBuilder minorEdit(boolean minorEdit)
public Attachment.AttachmentBuilder id(long id)
public Attachment.AttachmentBuilder version(int version)
public Attachment.AttachmentBuilder url(String url)
public Attachment.AttachmentBuilder fileId(Long fileId)
public Attachment.AttachmentBuilder dataFile(File dataFile)
public Attachment.AttachmentBuilder classpathResource(String classpathResource)
Copyright © 2003–2016 Atlassian. All rights reserved.