public final class ServiceAccount
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 Identity and Access Management (IAM) 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.Flags| Constructor and Description |
|---|
ServiceAccount() |
| Modifier and Type | Method and Description |
|---|---|
ServiceAccount |
clone() |
byte[] |
decodeEtag()
Used to perform a consistent read-modify-write.
|
ServiceAccount |
encodeEtag(byte[] etag)
Used to perform a consistent read-modify-write.
|
java.lang.String |
getDisplayName()
Optional.
|
java.lang.String |
getEmail() |
java.lang.String |
getEtag()
Used to perform a consistent read-modify-write.
|
java.lang.String |
getName()
The resource name of the service account in the following format:
`projects/{project}/serviceAccounts/{account}`.
|
java.lang.String |
getOauth2ClientId() |
java.lang.String |
getProjectId() |
java.lang.String |
getUniqueId() |
ServiceAccount |
set(java.lang.String fieldName,
java.lang.Object value) |
ServiceAccount |
setDisplayName(java.lang.String displayName)
Optional.
|
ServiceAccount |
setEmail(java.lang.String email) |
ServiceAccount |
setEtag(java.lang.String etag)
Used to perform a consistent read-modify-write.
|
ServiceAccount |
setName(java.lang.String name)
The resource name of the service account in the following format:
`projects/{project}/serviceAccounts/{account}`.
|
ServiceAccount |
setOauth2ClientId(java.lang.String oauth2ClientId) |
ServiceAccount |
setProjectId(java.lang.String projectId) |
ServiceAccount |
setUniqueId(java.lang.String uniqueId) |
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getDisplayName()
null for nonepublic ServiceAccount setDisplayName(java.lang.String displayName)
displayName - displayName or null for nonepublic java.lang.String getEmail()
null for nonepublic ServiceAccount setEmail(java.lang.String email)
email - email or null for nonepublic java.lang.String getEtag()
null for nonedecodeEtag()public byte[] decodeEtag()
null for nonegetEtag()public ServiceAccount setEtag(java.lang.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 java.lang.String getName()
null for nonepublic ServiceAccount setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getOauth2ClientId()
null for nonepublic ServiceAccount setOauth2ClientId(java.lang.String oauth2ClientId)
oauth2ClientId - oauth2ClientId or null for nonepublic java.lang.String getProjectId()
null for nonepublic ServiceAccount setProjectId(java.lang.String projectId)
projectId - projectId or null for nonepublic java.lang.String getUniqueId()
null for nonepublic ServiceAccount setUniqueId(java.lang.String uniqueId)
uniqueId - uniqueId or null for nonepublic ServiceAccount set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ServiceAccount clone()
clone in class com.google.api.client.json.GenericJson