Class ServiceAccountTarget
-
- All Implemented Interfaces:
public final class ServiceAccountTargetBind to a fixed service account by ID.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classServiceAccountTarget.BuilderA builder for ServiceAccountTarget.
-
Method Summary
Modifier and Type Method Description final StringserviceAccountId()Tagged ID of the service account to mint tokens for. final Optional<String>serviceAccountName()Service account's display name at read time. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("service_account")final JsonField<String>_serviceAccountId()Returns the raw JSON value of serviceAccountId. final JsonField<String>_serviceAccountName()Returns the raw JSON value of serviceAccountName. final Map<String, JsonValue>_additionalProperties()final ServiceAccountTarget.BuildertoBuilder()final ServiceAccountTargetvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ServiceAccountTarget.Builderbuilder()Returns a mutable builder for constructing an instance of ServiceAccountTarget. final static ServiceAccountTargetof(String serviceAccountId)Returns an immutable instance of ServiceAccountTarget with the required serviceAccountId set to the given value. -
-
Method Detail
-
serviceAccountId
final String serviceAccountId()
Tagged ID of the service account to mint tokens for.
-
serviceAccountName
final Optional<String> serviceAccountName()
Service account's display name at read time. Ignored on writes.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("service_account")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_serviceAccountId
final JsonField<String> _serviceAccountId()
Returns the raw JSON value of serviceAccountId.
Unlike serviceAccountId, this method doesn't throw if the JSON field has an unexpected type.
-
_serviceAccountName
final JsonField<String> _serviceAccountName()
Returns the raw JSON value of serviceAccountName.
Unlike serviceAccountName, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ServiceAccountTarget.Builder toBuilder()
-
validate
final ServiceAccountTarget validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ServiceAccountTarget.Builder builder()
Returns a mutable builder for constructing an instance of ServiceAccountTarget.
The following fields are required:
.serviceAccountId()
-
of
final static ServiceAccountTarget of(String serviceAccountId)
Returns an immutable instance of ServiceAccountTarget with the required serviceAccountId set to the given value.
-
-
-
-