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: https://developers.google.com/api-client-library/java/google-http-java-client/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.
|
java.lang.Integer |
getCumulativeDurationMonths()
The cumulative time a user has been a sponsor in months.
|
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 |
setCumulativeDurationMonths(java.lang.Integer cumulativeDurationMonths)
The cumulative time a user has been a sponsor in months.
|
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, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getChannelId()
null for nonepublic SponsorSnippet setChannelId(java.lang.String channelId)
channelId - channelId or null for nonepublic java.lang.Integer getCumulativeDurationMonths()
null for nonepublic SponsorSnippet setCumulativeDurationMonths(java.lang.Integer cumulativeDurationMonths)
cumulativeDurationMonths - cumulativeDurationMonths 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.GenericJsonpublic SponsorSnippet clone()
clone in class com.google.api.client.json.GenericJson