target.apidocs.com.google.api.services.youtube.model.MembershipsDetails.html Maven / Gradle / Ivy
MembershipsDetails (YouTube Data API v3 v3-rev20210410-1.31.0)
com.google.api.services.youtube.model
Class MembershipsDetails
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.youtube.model.MembershipsDetails
-
public final class MembershipsDetails
extends GenericJson
Model definition for MembershipsDetails.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
MembershipsDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAccessibleLevels
public List<String> getAccessibleLevels()
Ids of all levels that the user has access to. This includes the currently active level and all
other levels that are included because of a higher purchase.
- Returns:
- value or
null
for none
-
setAccessibleLevels
public MembershipsDetails setAccessibleLevels(List<String> accessibleLevels)
Ids of all levels that the user has access to. This includes the currently active level and all
other levels that are included because of a higher purchase.
- Parameters:
accessibleLevels
- accessibleLevels or null
for none
-
getHighestAccessibleLevel
public String getHighestAccessibleLevel()
Id of the highest level that the user has access to at the moment.
- Returns:
- value or
null
for none
-
setHighestAccessibleLevel
public MembershipsDetails setHighestAccessibleLevel(String highestAccessibleLevel)
Id of the highest level that the user has access to at the moment.
- Parameters:
highestAccessibleLevel
- highestAccessibleLevel or null
for none
-
getHighestAccessibleLevelDisplayName
public String getHighestAccessibleLevelDisplayName()
Display name for the highest level that the user has access to at the moment.
- Returns:
- value or
null
for none
-
setHighestAccessibleLevelDisplayName
public MembershipsDetails setHighestAccessibleLevelDisplayName(String highestAccessibleLevelDisplayName)
Display name for the highest level that the user has access to at the moment.
- Parameters:
highestAccessibleLevelDisplayName
- highestAccessibleLevelDisplayName or null
for none
-
getMembershipsDuration
public MembershipsDuration getMembershipsDuration()
Data about memberships duration without taking into consideration pricing levels.
- Returns:
- value or
null
for none
-
setMembershipsDuration
public MembershipsDetails setMembershipsDuration(MembershipsDuration membershipsDuration)
Data about memberships duration without taking into consideration pricing levels.
- Parameters:
membershipsDuration
- membershipsDuration or null
for none
-
getMembershipsDurationAtLevels
public List<MembershipsDurationAtLevel> getMembershipsDurationAtLevels()
Data about memberships duration on particular pricing levels.
- Returns:
- value or
null
for none
-
setMembershipsDurationAtLevels
public MembershipsDetails setMembershipsDurationAtLevels(List<MembershipsDurationAtLevel> membershipsDurationAtLevels)
Data about memberships duration on particular pricing levels.
- Parameters:
membershipsDurationAtLevels
- membershipsDurationAtLevels or null
for none
-
set
public MembershipsDetails set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public MembershipsDetails clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.