public static class CreateContentRequest.Builder
extends java.lang.Object
CreateContentRequest.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CreateContentRequest.Builder |
addLabel(java.lang.String label)
This method adds a label to the content created by the request, with the global prefix.
|
CreateContentRequest.Builder |
addLabel(java.lang.String label,
LabelPrefix prefix)
This method adds a label to the content created by the request with the given value and
prefix.
|
CreateContentRequest |
build()
This method creates an instance of
CreateContentRequest using the values that were
set on this instance. |
CreateContentRequest.Builder |
setAncestor(java.lang.String id)
This method sets the ancestor for the content by ID.
|
CreateContentRequest.Builder |
setBody(ContentBodyType type,
java.lang.String content)
This method sets the body of the content.
|
CreateContentRequest.Builder |
setExpandedResponseProperties(ExpandedContentProperties expandedResponseProperties)
This method sets the properties to be expanded in the
Content instance that is
returned as a response to this request. |
CreateContentRequest.Builder |
setId(java.lang.String id)
This method sets the unique identifier for the content.
|
CreateContentRequest.Builder |
setResponseStatusFilter(ContentStatus status)
This method sets the status filter for the
Content that is returned as a response to
the request. |
CreateContentRequest.Builder |
setSpaceKey(java.lang.String spaceKey)
This method sets the space that this content shall belong to by key.
|
CreateContentRequest.Builder |
setStatus(ContentStatus status)
This method sets the status of the content.
|
CreateContentRequest.Builder |
setTitle(java.lang.String title)
This method sets the title of the content.
|
CreateContentRequest.Builder |
setType(StandardContentType type)
This method defines the type of the content.
|
CreateContentRequest.Builder |
setType(java.lang.String type)
This method defines the type of the content.
|
public CreateContentRequest.Builder setAncestor(java.lang.String id)
id - The ID of the ancestor.public CreateContentRequest.Builder setId(java.lang.String id)
id - The unique identifier for the content.public CreateContentRequest.Builder setTitle(java.lang.String title)
title - The title of the content.public CreateContentRequest.Builder setSpaceKey(java.lang.String spaceKey)
spaceKey - The key of the space that this content shall belong to.public CreateContentRequest.Builder setStatus(ContentStatus status)
status - The status of the content.public CreateContentRequest.Builder setBody(ContentBodyType type, java.lang.String content)
type - The body type that is being defined.content - The value to set for the body type.public CreateContentRequest.Builder setType(java.lang.String type)
setType(StandardContentType) instead.type - The type of the content.public CreateContentRequest.Builder setType(StandardContentType type)
StandardContentType, or may be a custom content type defined by an app.type - The type of the content.public CreateContentRequest.Builder setResponseStatusFilter(ContentStatus status)
Content that is returned as a response to
the request.status - The status filter for the returned content.public CreateContentRequest.Builder addLabel(java.lang.String label)
addLabel(String, LabelPrefix) instead.label - The label to add to the content.public CreateContentRequest.Builder addLabel(java.lang.String label, LabelPrefix prefix)
label - The label to add to the content.prefix - The prefix of the label.public CreateContentRequest.Builder setExpandedResponseProperties(ExpandedContentProperties expandedResponseProperties)
Content instance that is
returned as a response to this request.expandedResponseProperties - the properties to expand in the Content instance
that is returned as a response to this request.public CreateContentRequest build() throws java.lang.IllegalStateException
CreateContentRequest using the values that were
set on this instance.CreateContentRequest with the values set on this instance.java.lang.IllegalStateException - If the request that would be created would be invalid.