public static final class GetContentRequest.Builder
extends java.lang.Object
GetContentRequest.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GetContentRequest |
build()
This method creates an instance of
GetContentRequest using the values that were set
on this instance. |
GetContentRequest.Builder |
orderBy(java.lang.String field,
SortDirection direction)
This method sets the order-by clause for the query.
|
GetContentRequest.Builder |
setExpandedProperties(ExpandedContentProperties expandedProperties)
This method sets the properties to be expanded in the results of this request.
|
GetContentRequest.Builder |
setLimit(java.lang.Integer limit)
This method sets the maximum number of results for the request.
|
GetContentRequest.Builder |
setPostingDay(java.time.LocalDate postingDay)
This method sets the required posting day for results.
|
GetContentRequest.Builder |
setSpaceKey(java.lang.String spaceKey)
This method sets the space key for results.
|
GetContentRequest.Builder |
setStartPosition(java.lang.Integer start)
This method sets the pagination start position for the request.
|
GetContentRequest.Builder |
setStatus(ContentStatus status)
This method sets the required status for results.
|
GetContentRequest.Builder |
setTitle(java.lang.String title)
This methods sets the required title for results.
|
GetContentRequest.Builder |
setTrigger(java.lang.String trigger)
This methods sets the event to trigger as a result of this request.
|
GetContentRequest.Builder |
setType(StandardContentType type)
This method sets the type of content to return.
|
GetContentRequest.Builder |
setType(java.lang.String type)
This method sets the type of content to return.
|
public GetContentRequest.Builder setLimit(java.lang.Integer limit)
limit - the maximum number of resultspublic GetContentRequest.Builder orderBy(java.lang.String field, SortDirection direction)
field - the name of the field to order the results bydirection - the direction in which the results should be sortedpublic GetContentRequest.Builder setPostingDay(java.time.LocalDate postingDay)
postingDay - the posting datepublic GetContentRequest.Builder setSpaceKey(java.lang.String spaceKey)
spaceKey - the key of the spacepublic GetContentRequest.Builder setStartPosition(java.lang.Integer start)
start - the pagination start positionpublic GetContentRequest.Builder setStatus(ContentStatus status)
status - the status of resultspublic GetContentRequest.Builder setTitle(java.lang.String title)
title - the title of resultspublic GetContentRequest.Builder setTrigger(java.lang.String trigger)
trigger - the trigger of resultspublic GetContentRequest.Builder setType(java.lang.String type)
type - the type of resultspublic GetContentRequest.Builder setType(StandardContentType type)
type - the type of resultspublic GetContentRequest.Builder setExpandedProperties(ExpandedContentProperties expandedProperties)
expandedProperties - the properties to expand in the results of this request.public GetContentRequest build() throws java.lang.IllegalStateException
GetContentRequest using the values that were set
on this instance.GetContentRequest with the values set on this instance.java.lang.IllegalStateException