public final class SponsorSnippet 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 v3. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SponsorSnippet() |
Modifier and Type | Method and Description |
---|---|
SponsorSnippet |
clone() |
String |
getChannelId()
The id of the channel being sponsored.
|
Integer |
getCumulativeDurationMonths()
The cumulative time a user has been a sponsor in months.
|
ChannelProfileDetails |
getSponsorDetails()
Details about the sponsor.
|
String |
getSponsorSince()
The date and time when the user became a sponsor.
|
SponsorSnippet |
set(String fieldName,
Object value) |
SponsorSnippet |
setChannelId(String channelId)
The id of the channel being sponsored.
|
SponsorSnippet |
setCumulativeDurationMonths(Integer cumulativeDurationMonths)
The cumulative time a user has been a sponsor in months.
|
SponsorSnippet |
setSponsorDetails(ChannelProfileDetails sponsorDetails)
Details about the sponsor.
|
SponsorSnippet |
setSponsorSince(String sponsorSince)
The date and time when the user became a sponsor.
|
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 String getChannelId()
null
for nonepublic SponsorSnippet setChannelId(String channelId)
channelId
- channelId or null
for nonepublic Integer getCumulativeDurationMonths()
null
for nonepublic SponsorSnippet setCumulativeDurationMonths(Integer cumulativeDurationMonths)
cumulativeDurationMonths
- cumulativeDurationMonths or null
for nonepublic ChannelProfileDetails getSponsorDetails()
null
for nonepublic SponsorSnippet setSponsorDetails(ChannelProfileDetails sponsorDetails)
sponsorDetails
- sponsorDetails or null
for nonepublic String getSponsorSince()
null
for nonepublic SponsorSnippet setSponsorSince(String sponsorSince)
sponsorSince
- sponsorSince or null
for nonepublic SponsorSnippet set(String fieldName, Object value)
set
in class GenericJson
public SponsorSnippet clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.