public final class MembershipsDuration 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 |
---|
MembershipsDuration() |
Modifier and Type | Method and Description |
---|---|
MembershipsDuration |
clone() |
String |
getMemberSince()
The date and time when the user became a continuous member across all levels.
|
Integer |
getMemberTotalDurationMonths()
The cumulative time the user has been a member across all levels in complete months (the time
is rounded down to the nearest integer).
|
MembershipsDuration |
set(String fieldName,
Object value) |
MembershipsDuration |
setMemberSince(String memberSince)
The date and time when the user became a continuous member across all levels.
|
MembershipsDuration |
setMemberTotalDurationMonths(Integer memberTotalDurationMonths)
The cumulative time the user has been a member across all levels in complete months (the time
is rounded down to the nearest integer).
|
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 getMemberSince()
null
for nonepublic MembershipsDuration setMemberSince(String memberSince)
memberSince
- memberSince or null
for nonepublic Integer getMemberTotalDurationMonths()
null
for nonepublic MembershipsDuration setMemberTotalDurationMonths(Integer memberTotalDurationMonths)
memberTotalDurationMonths
- memberTotalDurationMonths or null
for nonepublic MembershipsDuration set(String fieldName, Object value)
set
in class GenericJson
public MembershipsDuration clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.