public final class ServiceAccount 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 Identity and Access Management (IAM) API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ServiceAccount() |
| Modifier and Type | Method and Description |
|---|---|
ServiceAccount |
clone() |
byte[] |
decodeEtag()
Optional.
|
ServiceAccount |
encodeEtag(byte[] etag)
Optional.
|
String |
getDescription()
Optional.
|
Boolean |
getDisabled() |
String |
getDisplayName()
Optional.
|
String |
getEmail() |
String |
getEtag()
Optional.
|
String |
getName()
The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
|
String |
getOauth2ClientId() |
String |
getProjectId() |
String |
getUniqueId() |
ServiceAccount |
set(String fieldName,
Object value) |
ServiceAccount |
setDescription(String description)
Optional.
|
ServiceAccount |
setDisabled(Boolean disabled) |
ServiceAccount |
setDisplayName(String displayName)
Optional.
|
ServiceAccount |
setEmail(String email) |
ServiceAccount |
setEtag(String etag)
Optional.
|
ServiceAccount |
setName(String name)
The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
|
ServiceAccount |
setOauth2ClientId(String oauth2ClientId) |
ServiceAccount |
setProjectId(String projectId) |
ServiceAccount |
setUniqueId(String uniqueId) |
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getDescription()
null for nonepublic ServiceAccount setDescription(String description)
description - description or null for nonepublic Boolean getDisabled()
null for nonepublic ServiceAccount setDisabled(Boolean disabled)
disabled - disabled or null for nonepublic String getDisplayName()
null for nonepublic ServiceAccount setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getEmail()
null for nonepublic ServiceAccount setEmail(String email)
email - email or null for nonepublic String getEtag()
null for nonedecodeEtag()public byte[] decodeEtag()
null for nonegetEtag()public ServiceAccount setEtag(String etag)
etag - etag or null for none#encodeEtag()public ServiceAccount encodeEtag(byte[] etag)
The value is encoded Base64 or {@code null} for none.
public String getName()
null for nonepublic ServiceAccount setName(String name)
name - name or null for nonepublic String getOauth2ClientId()
null for nonepublic ServiceAccount setOauth2ClientId(String oauth2ClientId)
oauth2ClientId - oauth2ClientId or null for nonepublic String getProjectId()
null for nonepublic ServiceAccount setProjectId(String projectId)
projectId - projectId or null for nonepublic String getUniqueId()
null for nonepublic ServiceAccount setUniqueId(String uniqueId)
uniqueId - uniqueId or null for nonepublic ServiceAccount set(String fieldName, Object value)
set in class GenericJsonpublic ServiceAccount clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.