public static final class UpdateContentRequest.Builder
extends java.lang.Object
UpdateContentRequest.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
UpdateContentRequest.Builder |
addLabel(java.lang.String label)
This method adds a label to the content updated by the request, with the global prefix.
|
UpdateContentRequest.Builder |
addLabel(java.lang.String label,
LabelPrefix prefix)
This method adds a label to the content updated by the request with the given value and
prefix.
|
UpdateContentRequest |
build()
This method creates an instance of
UpdateContentRequest using the values that were
set on this instance. |
UpdateContentRequest.Builder |
setAncestor(java.lang.String id)
This method sets the ancestor for the content by ID.
|
UpdateContentRequest.Builder |
setBody(ContentBodyType type,
java.lang.String content)
This method sets the body of the content.
|
UpdateContentRequest.Builder |
setId(java.lang.String id)
This method sets the unique identifier of the content to be updated.
|
UpdateContentRequest.Builder |
setStatus(ContentStatus status)
This method sets the status of the content.
|
UpdateContentRequest.Builder |
setTitle(java.lang.String title)
This method sets the title of the content.
|
UpdateContentRequest.Builder |
setType(StandardContentType type)
This method defines the type of the content.
|
UpdateContentRequest.Builder |
setType(java.lang.String type)
This method defines the type of the content.
|
UpdateContentRequest.Builder |
setVersion(int versionNumber)
This method sets the version number of the content.
|
public UpdateContentRequest.Builder setId(java.lang.String id)
id - The unique identifier for the content.public UpdateContentRequest.Builder setAncestor(java.lang.String id)
id - The ID of the ancestor.public UpdateContentRequest.Builder setVersion(int versionNumber)
versionNumber - The version number of the content.public UpdateContentRequest.Builder setStatus(ContentStatus status)
status - The status of the content.public UpdateContentRequest.Builder addLabel(java.lang.String label)
addLabel(String, LabelPrefix) instead.label - The label to add to the content.public UpdateContentRequest.Builder addLabel(java.lang.String label, LabelPrefix prefix)
label - The label to add to the content.prefix - The prefix of the label.public UpdateContentRequest.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 UpdateContentRequest.Builder setType(java.lang.String type)
setType(StandardContentType) instead.type - The type of the content.public UpdateContentRequest.Builder setType(StandardContentType type)
StandardContentType, or may be a custom content type defined by an app.type - The type of the content.public UpdateContentRequest.Builder setTitle(java.lang.String title)
title - The title of the content.public UpdateContentRequest build()
UpdateContentRequest using the values that were
set on this instance.UpdateContentRequest with the values set on this instance.java.lang.IllegalStateException - If the request that would be created would be invalid.