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 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()
Optional.
|
ServiceAccount |
encodeEtag(byte[] etag)
Optional.
|
java.lang.String |
getDescription()
Optional.
|
java.lang.Boolean |
getDisabled() |
java.lang.String |
getDisplayName()
Optional.
|
java.lang.String |
getEmail() |
java.lang.String |
getEtag()
Optional.
|
java.lang.String |
getName()
The resource name of the service account in the following format:
`projects/{PROJECT_ID}/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 |
setDescription(java.lang.String description)
Optional.
|
ServiceAccount |
setDisabled(java.lang.Boolean disabled) |
ServiceAccount |
setDisplayName(java.lang.String displayName)
Optional.
|
ServiceAccount |
setEmail(java.lang.String email) |
ServiceAccount |
setEtag(java.lang.String etag)
Optional.
|
ServiceAccount |
setName(java.lang.String name)
The resource name of the service account in the following format:
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
|
ServiceAccount |
setOauth2ClientId(java.lang.String oauth2ClientId) |
ServiceAccount |
setProjectId(java.lang.String projectId) |
ServiceAccount |
setUniqueId(java.lang.String uniqueId) |
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getDescription()
null
for nonepublic ServiceAccount setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Boolean getDisabled()
null
for nonepublic ServiceAccount setDisabled(java.lang.Boolean disabled)
disabled
- disabled or null
for nonepublic 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.GenericJson
public ServiceAccount clone()
clone
in class com.google.api.client.json.GenericJson