target.apidocs.com.google.api.services.directory.model.Asp.html Maven / Gradle / Ivy
Asp (Admin SDK API directory_v1-rev20220802-2.0.0)
com.google.api.services.directory.model
Class Asp
- 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.Asp
-
public final class Asp
extends GenericJson
An application-specific password (ASP) is used with applications that do not accept a
verification code when logging into the application on certain devices. The ASP access code is
used instead of the login and password you commonly use when accessing an application through a
browser. For more information about ASPs and how to create one, see the [help
center](https://support.google.com/a/answer/2537800#asp).
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
Asp()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Asp
clone()
Integer
getCodeId()
The unique ID of the ASP.
Long
getCreationTime()
The time when the ASP was created.
String
getEtag()
ETag of the ASP.
String
getKind()
The type of the API resource.
Long
getLastTimeUsed()
The time when the ASP was last used.
String
getName()
The name of the application that the user, represented by their `userId`, entered when the ASP
was created.
String
getUserKey()
The unique ID of the user who issued the ASP.
Asp
set(String fieldName,
Object value)
Asp
setCodeId(Integer codeId)
The unique ID of the ASP.
Asp
setCreationTime(Long creationTime)
The time when the ASP was created.
Asp
setEtag(String etag)
ETag of the ASP.
Asp
setKind(String kind)
The type of the API resource.
Asp
setLastTimeUsed(Long lastTimeUsed)
The time when the ASP was last used.
Asp
setName(String name)
The name of the application that the user, represented by their `userId`, entered when the ASP
was created.
Asp
setUserKey(String userKey)
The unique ID of the user who issued the ASP.
-
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
-
getCodeId
public Integer getCodeId()
The unique ID of the ASP.
- Returns:
- value or
null
for none
-
setCodeId
public Asp setCodeId(Integer codeId)
The unique ID of the ASP.
- Parameters:
codeId
- codeId or null
for none
-
getCreationTime
public Long getCreationTime()
The time when the ASP was created. Expressed in [Unix
time](https://en.wikipedia.org/wiki/Epoch_time) format.
- Returns:
- value or
null
for none
-
setCreationTime
public Asp setCreationTime(Long creationTime)
The time when the ASP was created. Expressed in [Unix
time](https://en.wikipedia.org/wiki/Epoch_time) format.
- Parameters:
creationTime
- creationTime or null
for none
-
getEtag
public String getEtag()
ETag of the ASP.
- Returns:
- value or
null
for none
-
getKind
public String getKind()
The type of the API resource. This is always `admin#directory#asp`.
- Returns:
- value or
null
for none
-
setKind
public Asp setKind(String kind)
The type of the API resource. This is always `admin#directory#asp`.
- Parameters:
kind
- kind or null
for none
-
getLastTimeUsed
public Long getLastTimeUsed()
The time when the ASP was last used. Expressed in [Unix
time](https://en.wikipedia.org/wiki/Epoch_time) format.
- Returns:
- value or
null
for none
-
setLastTimeUsed
public Asp setLastTimeUsed(Long lastTimeUsed)
The time when the ASP was last used. Expressed in [Unix
time](https://en.wikipedia.org/wiki/Epoch_time) format.
- Parameters:
lastTimeUsed
- lastTimeUsed or null
for none
-
getName
public String getName()
The name of the application that the user, represented by their `userId`, entered when the ASP
was created.
- Returns:
- value or
null
for none
-
setName
public Asp setName(String name)
The name of the application that the user, represented by their `userId`, entered when the ASP
was created.
- Parameters:
name
- name or null
for none
-
getUserKey
public String getUserKey()
The unique ID of the user who issued the ASP.
- Returns:
- value or
null
for none
-
setUserKey
public Asp setUserKey(String userKey)
The unique ID of the user who issued the ASP.
- Parameters:
userKey
- userKey or null
for none
-
set
public Asp set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Asp clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.