public final class EnrollmentToken
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 Google Play EMM 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
EnrollmentToken() |
| Modifier and Type | Method and Description |
|---|---|
EnrollmentToken |
clone() |
String |
getDuration()
[Optional] The length of time the enrollment token is valid, ranging from 1 minute to
[`Durations.MAX_VALUE`](https://developers.google.com/protocol-
buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately
10,000 years.
|
String |
getEnrollmentTokenType()
[Required] The type of the enrollment token.
|
EnrollmentTokenGoogleAuthenticationOptions |
getGoogleAuthenticationOptions()
[Optional] Provides options related to Google authentication during the enrollment.
|
String |
getToken()
The token value that's passed to the device and authorizes the device to enroll.
|
EnrollmentToken |
set(String fieldName,
Object value) |
EnrollmentToken |
setDuration(String duration)
[Optional] The length of time the enrollment token is valid, ranging from 1 minute to
[`Durations.MAX_VALUE`](https://developers.google.com/protocol-
buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately
10,000 years.
|
EnrollmentToken |
setEnrollmentTokenType(String enrollmentTokenType)
[Required] The type of the enrollment token.
|
EnrollmentToken |
setGoogleAuthenticationOptions(EnrollmentTokenGoogleAuthenticationOptions googleAuthenticationOptions)
[Optional] Provides options related to Google authentication during the enrollment.
|
EnrollmentToken |
setToken(String token)
The token value that's passed to the device and authorizes the device to enroll.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getDuration()
null for nonepublic EnrollmentToken setDuration(String duration)
duration - duration or null for nonepublic String getEnrollmentTokenType()
null for nonepublic EnrollmentToken setEnrollmentTokenType(String enrollmentTokenType)
enrollmentTokenType - enrollmentTokenType or null for nonepublic EnrollmentTokenGoogleAuthenticationOptions getGoogleAuthenticationOptions()
null for nonepublic EnrollmentToken setGoogleAuthenticationOptions(EnrollmentTokenGoogleAuthenticationOptions googleAuthenticationOptions)
googleAuthenticationOptions - googleAuthenticationOptions or null for nonepublic String getToken()
null for nonepublic EnrollmentToken setToken(String token)
token - token or null for nonepublic EnrollmentToken set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic EnrollmentToken clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.