target.apidocs.com.google.api.services.directory.model.VerificationCode.html Maven / Gradle / Ivy
VerificationCode (Admin SDK API directory_v1-rev20220125-1.32.1)
com.google.api.services.directory.model
Class VerificationCode
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.VerificationCode
-
public final class VerificationCode
extends GenericJson
The Directory API allows you to view, generate, and invalidate backup verification codes for a
user.
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 Admin SDK API. 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
VerificationCode()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
VerificationCode
clone()
String
getEtag()
ETag of the resource.
String
getKind()
The type of the resource.
String
getUserId()
The obfuscated unique ID of the user.
String
getVerificationCode()
A current verification code for the user.
VerificationCode
set(String fieldName,
Object value)
VerificationCode
setEtag(String etag)
ETag of the resource.
VerificationCode
setKind(String kind)
The type of the resource.
VerificationCode
setUserId(String userId)
The obfuscated unique ID of the user.
VerificationCode
setVerificationCode(String verificationCode)
A current verification code for the user.
-
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
-
getEtag
public String getEtag()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtag
public VerificationCode setEtag(String etag)
ETag of the resource.
- Parameters:
etag
- etag or null
for none
-
getKind
public String getKind()
The type of the resource. This is always `admin#directory#verificationCode`.
- Returns:
- value or
null
for none
-
setKind
public VerificationCode setKind(String kind)
The type of the resource. This is always `admin#directory#verificationCode`.
- Parameters:
kind
- kind or null
for none
-
getUserId
public String getUserId()
The obfuscated unique ID of the user.
- Returns:
- value or
null
for none
-
setUserId
public VerificationCode setUserId(String userId)
The obfuscated unique ID of the user.
- Parameters:
userId
- userId or null
for none
-
getVerificationCode
public String getVerificationCode()
A current verification code for the user. Invalidated or used verification codes are not
returned as part of the result.
- Returns:
- value or
null
for none
-
setVerificationCode
public VerificationCode setVerificationCode(String verificationCode)
A current verification code for the user. Invalidated or used verification codes are not
returned as part of the result.
- Parameters:
verificationCode
- verificationCode or null
for none
-
set
public VerificationCode set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public VerificationCode clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.