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