public final class SponsorSnippet
extends com.google.api.client.json.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-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
SponsorSnippet() |
Modifier and Type | Method and Description |
---|---|
SponsorSnippet |
clone() |
java.lang.String |
getChannelId()
The id of the channel being sponsored.
|
ChannelProfileDetails |
getSponsorDetails()
Details about the sponsor.
|
com.google.api.client.util.DateTime |
getSponsorSince()
The date and time when the user became a sponsor.
|
SponsorSnippet |
set(java.lang.String fieldName,
java.lang.Object value) |
SponsorSnippet |
setChannelId(java.lang.String channelId)
The id of the channel being sponsored.
|
SponsorSnippet |
setSponsorDetails(ChannelProfileDetails sponsorDetails)
Details about the sponsor.
|
SponsorSnippet |
setSponsorSince(com.google.api.client.util.DateTime sponsorSince)
The date and time when the user became a sponsor.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getChannelId()
null
for nonepublic SponsorSnippet setChannelId(java.lang.String channelId)
channelId
- channelId or null
for nonepublic ChannelProfileDetails getSponsorDetails()
null
for nonepublic SponsorSnippet setSponsorDetails(ChannelProfileDetails sponsorDetails)
sponsorDetails
- sponsorDetails or null
for nonepublic com.google.api.client.util.DateTime getSponsorSince()
null
for nonepublic SponsorSnippet setSponsorSince(com.google.api.client.util.DateTime sponsorSince)
sponsorSince
- sponsorSince or null
for nonepublic SponsorSnippet set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SponsorSnippet clone()
clone
in class com.google.api.client.json.GenericJson