public final class MembershipsDetails 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 |
---|
MembershipsDetails() |
Modifier and Type | Method and Description |
---|---|
MembershipsDetails |
clone() |
List<String> |
getAccessibleLevels()
Ids of all levels that the user has access to.
|
String |
getHighestAccessibleLevel()
Id of the highest level that the user has access to at the moment.
|
String |
getHighestAccessibleLevelDisplayName()
Display name for the highest level that the user has access to at the moment.
|
MembershipsDuration |
getMembershipsDuration()
Data about memberships duration without taking into consideration pricing levels.
|
List<MembershipsDurationAtLevel> |
getMembershipsDurationAtLevels()
Data about memberships duration on particular pricing levels.
|
MembershipsDetails |
set(String fieldName,
Object value) |
MembershipsDetails |
setAccessibleLevels(List<String> accessibleLevels)
Ids of all levels that the user has access to.
|
MembershipsDetails |
setHighestAccessibleLevel(String highestAccessibleLevel)
Id of the highest level that the user has access to at the moment.
|
MembershipsDetails |
setHighestAccessibleLevelDisplayName(String highestAccessibleLevelDisplayName)
Display name for the highest level that the user has access to at the moment.
|
MembershipsDetails |
setMembershipsDuration(MembershipsDuration membershipsDuration)
Data about memberships duration without taking into consideration pricing levels.
|
MembershipsDetails |
setMembershipsDurationAtLevels(List<MembershipsDurationAtLevel> membershipsDurationAtLevels)
Data about memberships duration on particular pricing levels.
|
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 List<String> getAccessibleLevels()
null
for nonepublic MembershipsDetails setAccessibleLevels(List<String> accessibleLevels)
accessibleLevels
- accessibleLevels or null
for nonepublic String getHighestAccessibleLevel()
null
for nonepublic MembershipsDetails setHighestAccessibleLevel(String highestAccessibleLevel)
highestAccessibleLevel
- highestAccessibleLevel or null
for nonepublic String getHighestAccessibleLevelDisplayName()
null
for nonepublic MembershipsDetails setHighestAccessibleLevelDisplayName(String highestAccessibleLevelDisplayName)
highestAccessibleLevelDisplayName
- highestAccessibleLevelDisplayName or null
for nonepublic MembershipsDuration getMembershipsDuration()
null
for nonepublic MembershipsDetails setMembershipsDuration(MembershipsDuration membershipsDuration)
membershipsDuration
- membershipsDuration or null
for nonepublic List<MembershipsDurationAtLevel> getMembershipsDurationAtLevels()
null
for nonepublic MembershipsDetails setMembershipsDurationAtLevels(List<MembershipsDurationAtLevel> membershipsDurationAtLevels)
membershipsDurationAtLevels
- membershipsDurationAtLevels or null
for nonepublic MembershipsDetails set(String fieldName, Object value)
set
in class GenericJson
public MembershipsDetails clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.