| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Content |
build()
This method creates an instance of
Content using the values that were set on this
instance. |
Content.Builder |
setAncestors(java.util.List<Content> ancestors)
This method sets the ancestors of the content.
|
Content.Builder |
setBody(ContentBody body)
This method sets the body of the content.
|
Content.Builder |
setId(java.lang.String id)
This method sets the unique identifier for the content.
|
Content.Builder |
setMetadata(Metadata metadata)
This method sets the metadata of the content.
|
Content.Builder |
setSpaceKey(java.lang.String spaceKey)
This method sets the space of the content by key.
|
Content.Builder |
setStatus(ContentStatus status)
This method sets the status of the content.
|
Content.Builder |
setTitle(java.lang.String title)
This method sets the title of the content.
|
Content.Builder |
setType(StandardContentType type)
This method sets the type of the content.
|
Content.Builder |
setType(java.lang.String type)
This method sets the type of the content.
|
Content.Builder |
setVersion(Version version)
This method sets the version of the content.
|
public Content.Builder setId(java.lang.String id)
id - The unique identifier for the content.public Content.Builder setType(java.lang.String type)
This method sets the type of the content.
This method should only be used for custom types. Please use setType(StandardContentType) when setting one of the standard content types.
type - The type of the content.public Content.Builder setType(StandardContentType type)
type - The type of the content.public Content.Builder setStatus(ContentStatus status)
status - The status of the content.public Content.Builder setTitle(java.lang.String title)
title - The title of the content.public Content.Builder setSpaceKey(java.lang.String spaceKey)
spaceKey - The key of the space that the content will belong to.public Content.Builder setBody(ContentBody body)
body - The body of the content.public Content.Builder setAncestors(java.util.List<Content> ancestors)
ancestors - The ancestors of the content.public Content.Builder setMetadata(Metadata metadata)
metadata - The metadata of the content.public Content.Builder setVersion(Version version)
version - The version of the content