com.atlassian.confluence.it
Class Attachment.AttachmentBuilder

java.lang.Object
  extended by com.atlassian.confluence.it.Attachment.AttachmentBuilder
Enclosing class:
Attachment

public static final class Attachment.AttachmentBuilder
extends Object

Builds an Attachment object

Since:
5.7

Constructor Summary
Attachment.AttachmentBuilder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment.AttachmentBuilder

public Attachment.AttachmentBuilder()
Method Detail

from

public static Attachment.AttachmentBuilder from(Attachment attachment)

build

public Attachment build()

contentEntity

public Attachment.AttachmentBuilder contentEntity(ContentEntity contentEntity)

filename

public Attachment.AttachmentBuilder filename(String filename)

contentType

public Attachment.AttachmentBuilder contentType(String contentType)

comment

public Attachment.AttachmentBuilder comment(String comment)

data

public Attachment.AttachmentBuilder data(byte[] data)

minorEdit

public Attachment.AttachmentBuilder minorEdit(boolean minorEdit)

id

public Attachment.AttachmentBuilder id(long id)

version

public Attachment.AttachmentBuilder version(int version)

url

public Attachment.AttachmentBuilder url(String url)

fileId

public Attachment.AttachmentBuilder fileId(Long fileId)

dataFile

public Attachment.AttachmentBuilder dataFile(File dataFile)

classpathResource

public Attachment.AttachmentBuilder classpathResource(String classpathResource)


Copyright © 2003–2015 Atlassian. All rights reserved.