Class ServiceAccount.Builder
-
- All Implemented Interfaces:
public final class ServiceAccount.BuilderA builder for ServiceAccount.
-
-
Method Summary
Modifier and Type Method Description final ServiceAccount.Builderid(String id)Tagged ID of the service account. final ServiceAccount.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ServiceAccount.BuilderarchivedAt(OffsetDateTime archivedAt)If set, this service account is archived. final ServiceAccount.BuilderarchivedAt(Optional<OffsetDateTime> archivedAt)Alias for calling Builder.archivedAt with archivedAt.orElse(null).final ServiceAccount.BuilderarchivedAt(JsonField<OffsetDateTime> archivedAt)Sets Builder.archivedAt to an arbitrary JSON value. final ServiceAccount.BuilderarchivedByActorId(String archivedByActorId)Tagged ID ( user_/svac_) of the actor that archived this service account.final ServiceAccount.BuilderarchivedByActorId(Optional<String> archivedByActorId)Alias for calling Builder.archivedByActorId with archivedByActorId.orElse(null).final ServiceAccount.BuilderarchivedByActorId(JsonField<String> archivedByActorId)Sets Builder.archivedByActorId to an arbitrary JSON value. final ServiceAccount.BuildercreatedAt(OffsetDateTime createdAt)When this service account was created. final ServiceAccount.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final ServiceAccount.BuildercreatedByActorId(String createdByActorId)Tagged ID ( user_/svac_) of the actor that created this service account.final ServiceAccount.BuildercreatedByActorId(Optional<String> createdByActorId)Alias for calling Builder.createdByActorId with createdByActorId.orElse(null).final ServiceAccount.BuildercreatedByActorId(JsonField<String> createdByActorId)Sets Builder.createdByActorId to an arbitrary JSON value. final ServiceAccount.Builderdescription(String description)Optional free-text description. final ServiceAccount.Builderdescription(Optional<String> description)Alias for calling Builder.description with description.orElse(null).final ServiceAccount.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final ServiceAccount.Buildername(String name)Admin-chosen slug identifier. final ServiceAccount.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final ServiceAccount.BuilderorganizationRole(ServiceAccount.OrganizationRole organizationRole)Org-level role. final ServiceAccount.BuilderorganizationRole(JsonField<ServiceAccount.OrganizationRole> organizationRole)Sets Builder.organizationRole to an arbitrary JSON value. final ServiceAccount.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ServiceAccount.BuilderupdatedAt(OffsetDateTime updatedAt)When this service account was last updated. final ServiceAccount.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final ServiceAccount.BuilderupdatedByActorId(String updatedByActorId)Tagged ID ( user_/svac_) of the actor that last updated this service account.final ServiceAccount.BuilderupdatedByActorId(Optional<String> updatedByActorId)Alias for calling Builder.updatedByActorId with updatedByActorId.orElse(null).final ServiceAccount.BuilderupdatedByActorId(JsonField<String> updatedByActorId)Sets Builder.updatedByActorId to an arbitrary JSON value. final ServiceAccount.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ServiceAccount.BuilderputAdditionalProperty(String key, JsonValue value)final ServiceAccount.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ServiceAccount.BuilderremoveAdditionalProperty(String key)final ServiceAccount.BuilderremoveAllAdditionalProperties(Set<String> keys)final ServiceAccountbuild()Returns an immutable instance of ServiceAccount. -
-
Method Detail
-
id
final ServiceAccount.Builder id(String id)
Tagged ID of the service account.
-
id
final ServiceAccount.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final ServiceAccount.Builder archivedAt(OffsetDateTime archivedAt)
If set, this service account is archived.
-
archivedAt
final ServiceAccount.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final ServiceAccount.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedByActorId
final ServiceAccount.Builder archivedByActorId(String archivedByActorId)
Tagged ID (
user_/svac_) of the actor that archived this service account.
-
archivedByActorId
final ServiceAccount.Builder archivedByActorId(Optional<String> archivedByActorId)
Alias for calling Builder.archivedByActorId with
archivedByActorId.orElse(null).
-
archivedByActorId
final ServiceAccount.Builder archivedByActorId(JsonField<String> archivedByActorId)
Sets Builder.archivedByActorId to an arbitrary JSON value.
You should usually call Builder.archivedByActorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final ServiceAccount.Builder createdAt(OffsetDateTime createdAt)
When this service account was created.
-
createdAt
final ServiceAccount.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdByActorId
final ServiceAccount.Builder createdByActorId(String createdByActorId)
Tagged ID (
user_/svac_) of the actor that created this service account.
-
createdByActorId
final ServiceAccount.Builder createdByActorId(Optional<String> createdByActorId)
Alias for calling Builder.createdByActorId with
createdByActorId.orElse(null).
-
createdByActorId
final ServiceAccount.Builder createdByActorId(JsonField<String> createdByActorId)
Sets Builder.createdByActorId to an arbitrary JSON value.
You should usually call Builder.createdByActorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final ServiceAccount.Builder description(String description)
Optional free-text description.
-
description
final ServiceAccount.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final ServiceAccount.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ServiceAccount.Builder name(String name)
Admin-chosen slug identifier.
-
name
final ServiceAccount.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
organizationRole
final ServiceAccount.Builder organizationRole(ServiceAccount.OrganizationRole organizationRole)
Org-level role. A federation rule may only be created or retargeted to grant
org:adminscope when this isadmin. A rule grantingorg:adminwhose target is later demoted todeveloperis rejected at token exchange. Rules grantingorg:adminare managed in the Console.
-
organizationRole
final ServiceAccount.Builder organizationRole(JsonField<ServiceAccount.OrganizationRole> organizationRole)
Sets Builder.organizationRole to an arbitrary JSON value.
You should usually call Builder.organizationRole with a well-typed OrganizationRole value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ServiceAccount.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("service_account")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final ServiceAccount.Builder updatedAt(OffsetDateTime updatedAt)
When this service account was last updated.
-
updatedAt
final ServiceAccount.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedByActorId
final ServiceAccount.Builder updatedByActorId(String updatedByActorId)
Tagged ID (
user_/svac_) of the actor that last updated this service account.
-
updatedByActorId
final ServiceAccount.Builder updatedByActorId(Optional<String> updatedByActorId)
Alias for calling Builder.updatedByActorId with
updatedByActorId.orElse(null).
-
updatedByActorId
final ServiceAccount.Builder updatedByActorId(JsonField<String> updatedByActorId)
Sets Builder.updatedByActorId to an arbitrary JSON value.
You should usually call Builder.updatedByActorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ServiceAccount.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ServiceAccount.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ServiceAccount.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ServiceAccount.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ServiceAccount.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ServiceAccount build()
Returns an immutable instance of ServiceAccount.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .archivedByActorId() .createdAt() .createdByActorId() .description() .name() .organizationRole() .updatedAt() .updatedByActorId()
-
-
-
-