Package com.ibm.cloud.cloudant.v1.model
Class Attachment.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.Attachment.Builder
- Enclosing class:
 Attachment
Builder.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a Attachment.contentType(String contentType) Set the contentType.data(byte[] data) Set the data.Set the digest.encodedLength(long encodedLength) Set the encodedLength.Set the encoding.Set the follows.length(long length) Set the length.revpos(long revpos) Set the revpos.Set the stub. 
- 
Constructor Details
- 
Builder
public Builder()Instantiates a new builder. 
 - 
 - 
Method Details
- 
build
Builds a Attachment.- Returns:
 - the new Attachment instance
 
 - 
contentType
Set the contentType.- Parameters:
 contentType- the contentType- Returns:
 - the Attachment builder
 
 - 
data
Set the data.- Parameters:
 data- the data- Returns:
 - the Attachment builder
 
 - 
digest
Set the digest.- Parameters:
 digest- the digest- Returns:
 - the Attachment builder
 
 - 
encodedLength
Set the encodedLength.- Parameters:
 encodedLength- the encodedLength- Returns:
 - the Attachment builder
 
 - 
encoding
Set the encoding.- Parameters:
 encoding- the encoding- Returns:
 - the Attachment builder
 
 - 
follows
Set the follows.- Parameters:
 follows- the follows- Returns:
 - the Attachment builder
 
 - 
length
Set the length.- Parameters:
 length- the length- Returns:
 - the Attachment builder
 
 - 
revpos
Set the revpos.- Parameters:
 revpos- the revpos- Returns:
 - the Attachment builder
 
 - 
stub
Set the stub.- Parameters:
 stub- the stub- Returns:
 - the Attachment builder
 
 
 -