public final class Post extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Blogger API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
Post.Author
The author of this Post.
|
static class |
Post.Blog
Data about the blog containing this Post.
|
static class |
Post.Images
Model definition for PostImages.
|
static class |
Post.Location
The location for geotagged posts.
|
static class |
Post.Replies
The container of comments on this Post.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Post() |
Modifier and Type | Method and Description |
---|---|
Post |
clone() |
Post.Author |
getAuthor()
The author of this Post.
|
Post.Blog |
getBlog()
Data about the blog containing this Post.
|
String |
getContent()
The content of the Post.
|
String |
getCustomMetaData()
The JSON meta-data for the Post.
|
String |
getEtag()
Etag of the resource.
|
String |
getId()
The identifier of this Post.
|
List<Post.Images> |
getImages()
Display image for the Post.
|
String |
getKind()
The kind of this entity.
|
List<String> |
getLabels()
The list of labels this Post was tagged with.
|
Post.Location |
getLocation()
The location for geotagged posts.
|
String |
getPublished()
RFC 3339 date-time when this Post was published.
|
String |
getReaderComments()
Comment control and display setting for readers of this post.
|
Post.Replies |
getReplies()
The container of comments on this Post.
|
String |
getSelfLink()
The API REST URL to fetch this resource from.
|
String |
getStatus()
Status of the post.
|
String |
getTitle()
The title of the Post.
|
String |
getTitleLink()
The title link URL, similar to atom's related link.
|
String |
getTrashed()
RFC 3339 date-time when this Post was last trashed.
|
String |
getUpdated()
RFC 3339 date-time when this Post was last updated.
|
String |
getUrl()
The URL where this Post is displayed.
|
Post |
set(String fieldName,
Object value) |
Post |
setAuthor(Post.Author author)
The author of this Post.
|
Post |
setBlog(Post.Blog blog)
Data about the blog containing this Post.
|
Post |
setContent(String content)
The content of the Post.
|
Post |
setCustomMetaData(String customMetaData)
The JSON meta-data for the Post.
|
Post |
setEtag(String etag)
Etag of the resource.
|
Post |
setId(String id)
The identifier of this Post.
|
Post |
setImages(List<Post.Images> images)
Display image for the Post.
|
Post |
setKind(String kind)
The kind of this entity.
|
Post |
setLabels(List<String> labels)
The list of labels this Post was tagged with.
|
Post |
setLocation(Post.Location location)
The location for geotagged posts.
|
Post |
setPublished(String published)
RFC 3339 date-time when this Post was published.
|
Post |
setReaderComments(String readerComments)
Comment control and display setting for readers of this post.
|
Post |
setReplies(Post.Replies replies)
The container of comments on this Post.
|
Post |
setSelfLink(String selfLink)
The API REST URL to fetch this resource from.
|
Post |
setStatus(String status)
Status of the post.
|
Post |
setTitle(String title)
The title of the Post.
|
Post |
setTitleLink(String titleLink)
The title link URL, similar to atom's related link.
|
Post |
setTrashed(String trashed)
RFC 3339 date-time when this Post was last trashed.
|
Post |
setUpdated(String updated)
RFC 3339 date-time when this Post was last updated.
|
Post |
setUrl(String url)
The URL where this Post is displayed.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Post.Author getAuthor()
null
for nonepublic Post setAuthor(Post.Author author)
author
- author or null
for nonepublic Post.Blog getBlog()
null
for nonepublic Post setBlog(Post.Blog blog)
blog
- blog or null
for nonepublic String getContent()
null
for nonepublic Post setContent(String content)
content
- content or null
for nonepublic String getCustomMetaData()
null
for nonepublic Post setCustomMetaData(String customMetaData)
customMetaData
- customMetaData or null
for nonepublic String getEtag()
null
for nonepublic Post setEtag(String etag)
etag
- etag or null
for nonepublic String getId()
null
for nonepublic Post setId(String id)
id
- id or null
for nonepublic List<Post.Images> getImages()
null
for nonepublic Post setImages(List<Post.Images> images)
images
- images or null
for nonepublic String getKind()
null
for nonepublic Post setKind(String kind)
kind
- kind or null
for nonepublic List<String> getLabels()
null
for nonepublic Post setLabels(List<String> labels)
labels
- labels or null
for nonepublic Post.Location getLocation()
null
for nonepublic Post setLocation(Post.Location location)
location
- location or null
for nonepublic String getPublished()
null
for nonepublic Post setPublished(String published)
published
- published or null
for nonepublic String getReaderComments()
null
for nonepublic Post setReaderComments(String readerComments)
readerComments
- readerComments or null
for nonepublic Post.Replies getReplies()
null
for nonepublic Post setReplies(Post.Replies replies)
replies
- replies or null
for nonepublic String getSelfLink()
null
for nonepublic Post setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getStatus()
null
for nonepublic Post setStatus(String status)
status
- status or null
for nonepublic String getTitle()
null
for nonepublic Post setTitle(String title)
title
- title or null
for nonepublic String getTitleLink()
null
for nonepublic Post setTitleLink(String titleLink)
titleLink
- titleLink or null
for nonepublic String getTrashed()
null
for nonepublic Post setTrashed(String trashed)
trashed
- trashed or null
for nonepublic String getUpdated()
null
for nonepublic Post setUpdated(String updated)
updated
- updated or null
for nonepublic String getUrl()
null
for nonepublic Post setUrl(String url)
url
- url or null
for nonepublic Post set(String fieldName, Object value)
set
in class GenericJson
public Post clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.