public final class PromotedItemId 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 YouTube Data API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
PromotedItemId() |
Modifier and Type | Method and Description |
---|---|
String |
getType()
Describes the type of the promoted item.
|
String |
getVideoId()
If the promoted item represents a video, this field represents the unique YouTube ID
identifying it.
|
String |
getWebsiteUrl()
If the promoted item represents a website, this field represents the url pointing to the
website.
|
PromotedItemId |
setType(String type)
Describes the type of the promoted item.
|
PromotedItemId |
setVideoId(String videoId)
If the promoted item represents a video, this field represents the unique YouTube ID
identifying it.
|
PromotedItemId |
setWebsiteUrl(String websiteUrl)
If the promoted item represents a website, this field represents the url pointing to the
website.
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getType()
null
.public PromotedItemId setType(String type)
null
.public String getVideoId()
null
.public PromotedItemId setVideoId(String videoId)
null
.public String getWebsiteUrl()
null
.public PromotedItemId setWebsiteUrl(String websiteUrl)
null
.