Class ContentCreate
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe parent content of the new content.protected Body5304AdThe body of the new content.The container of the content.protected StringThe ID of the draft content.protected Spacecc1E40The space that the content is being created in.protected StringThe status of the new content.protected Stringprotected StringThe type of the new content. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.ContentCreate(String id, String title, String type, Spacecc1E40 space, String status, Map<String, Object> container, List<Map<String, Object>> ancestors, Body5304Ad body) Constructs a validated instance ofContentCreate.ContentCreate(Consumer<ContentCreate> spec) Constructs a validated instance ofContentCreate. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for ancestors.Fluent setter for ancestors.body()Fluent getter for body.body(Body5304Ad body) Fluent setter for body.Fluent getter for container.Fluent setter for container.booleanGets the value of ancestors.getBody()Gets the value of body.Gets the value of container.getId()Gets the value of id.getSpace()Gets the value of space.Gets the value of status.getTitle()Gets the value of title.getType()Gets the value of type.inthashCode()id()Fluent getter for id.Fluent setter for id.voidsetAncestors(List<Map<String, Object>> ancestors) Sets the value of ancestors.voidsetBody(Body5304Ad body) Sets the value of body.voidsetContainer(Map<String, Object> container) Sets the value of container.voidSets the value of id.voidsetSpace(Spacecc1E40 space) Sets the value of space.voidSets the value of status.voidSets the value of title.voidSets the value of type.space()Fluent getter for space.space(Spacecc1E40 space) Fluent setter for space.status()Fluent getter for status.Fluent setter for status.title()Fluent getter for title.Fluent setter for title.toString()type()Fluent getter for type.Fluent setter for type.
-
Field Details
-
id
The ID of the draft content. Required when publishing a draft. -
title
-
type
The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc. -
space
The space that the content is being created in. -
status
The status of the new content. -
container
-
ancestors
The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified. -
body
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
-
-
Constructor Details
-
ContentCreate
Constructs a validated instance ofContentCreate.- Parameters:
spec- the specification to process
-
ContentCreate
@Internal protected ContentCreate()Protected no-args constructor for use by serialization frameworks. -
ContentCreate
@Internal public ContentCreate(String id, String title, String type, Spacecc1E40 space, String status, Map<String, Object> container, List<Map<String, Object>> ancestors, Body5304Ad body) Constructs a validated instance ofContentCreate.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
ContentCreate(Consumer)instead.- Parameters:
id- The ID of the draft content. Required when publishing a draft.title- titletype- The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.space- The space that the content is being created in.status- The status of the new content.container- The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.ancestors- The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.body- The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
-
-
Method Details
-
id
Fluent getter for id.The ID of the draft content. Required when publishing a draft.
- Returns:
- id
-
id
Fluent setter for id.The ID of the draft content. Required when publishing a draft.
- Parameters:
id- id- Returns:
- this
-
getId
Gets the value of id.The ID of the draft content. Required when publishing a draft.
- Returns:
- id
-
setId
Sets the value of id.The ID of the draft content. Required when publishing a draft.
- Parameters:
id- id
-
title
-
title
Fluent setter for title.- Parameters:
title- title- Returns:
- this
-
getTitle
-
setTitle
-
type
Fluent getter for type.The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
- Returns:
- type
-
type
Fluent setter for type.The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
- Parameters:
type- type- Returns:
- this
-
getType
Gets the value of type.The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
- Returns:
- type
-
setType
Sets the value of type.The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
- Parameters:
type- type
-
space
Fluent getter for space.The space that the content is being created in.
- Returns:
- space
-
space
Fluent setter for space.The space that the content is being created in.
- Parameters:
space- space- Returns:
- this
-
getSpace
Gets the value of space.The space that the content is being created in.
- Returns:
- space
-
setSpace
Sets the value of space.The space that the content is being created in.
- Parameters:
space- space
-
status
-
status
Fluent setter for status.The status of the new content.
- Parameters:
status- status- Returns:
- this
-
getStatus
-
setStatus
Sets the value of status.The status of the new content.
- Parameters:
status- status
-
container
Fluent getter for container.The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
- Returns:
- container
-
container
Fluent setter for container.The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
- Parameters:
container- container- Returns:
- this
-
getContainer
Gets the value of container.The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
- Returns:
- container
-
setContainer
Sets the value of container.The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
- Parameters:
container- container
-
ancestors
Fluent getter for ancestors.The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
- Returns:
- ancestors
-
ancestors
Fluent setter for ancestors.The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
- Parameters:
ancestors- ancestors- Returns:
- this
-
getAncestors
Gets the value of ancestors.The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
- Returns:
- ancestors
-
setAncestors
Sets the value of ancestors.The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
- Parameters:
ancestors- ancestors
-
body
Fluent getter for body.The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
- Returns:
- body
-
body
Fluent setter for body.The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
- Parameters:
body- body- Returns:
- this
-
getBody
Gets the value of body.The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
- Returns:
- body
-
setBody
Sets the value of body.The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
- Parameters:
body- body
-
equals
-
hashCode
-
toString
-