Package com.atlan.model.admin
Class ApiToken.ApiTokenAttributes.ApiTokenAttributesBuilder
java.lang.Object
com.atlan.model.admin.ApiToken.ApiTokenAttributes.ApiTokenAttributesBuilder
- Enclosing class:
- ApiToken.ApiTokenAttributes
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(String accessToken) The actual API token that can be used as a bearer token.accessTokenLifespan
(Long accessTokenLifespan) Time, in seconds, from createdAt after which the token will expire.build()
Unique client identifier (GUID) of the API token.Epoch time, in milliseconds, at which the API token was created.User who created the API token.description
(String description) Explanation of the API token.displayName
(String displayName) Human-readable name provided when creating the token.persona
(ApiToken.ApiTokenPersona persona) personas
(Collection<? extends ApiToken.ApiTokenPersona> personas) Deprecated.toString()
workspacePermission
(String workspacePermission) workspacePermissions
(Collection<? extends String> workspacePermissions)
-
Method Details
-
accessTokenLifespan
public ApiToken.ApiTokenAttributes.ApiTokenAttributesBuilder accessTokenLifespan(Long accessTokenLifespan) Time, in seconds, from createdAt after which the token will expire.- Returns:
this
.
-
accessToken
The actual API token that can be used as a bearer token.- Returns:
this
.
-
clientId
Unique client identifier (GUID) of the API token.- Returns:
this
.
-
createdAt
Epoch time, in milliseconds, at which the API token was created.- Returns:
this
.
-
createdBy
User who created the API token.- Returns:
this
.
-
description
Explanation of the API token.- Returns:
this
.
-
displayName
Human-readable name provided when creating the token.- Returns:
this
.
-
persona
public ApiToken.ApiTokenAttributes.ApiTokenAttributesBuilder persona(ApiToken.ApiTokenPersona persona) -
personas
public ApiToken.ApiTokenAttributes.ApiTokenAttributesBuilder personas(Collection<? extends ApiToken.ApiTokenPersona> personas) -
clearPersonas
-
purposes
Deprecated.This was a possible future placeholder for purposes associated with the token, but no longer exists on payloads. It is left here purely for any existing code that may have referenced it, but should be removed from that code as it will be removed in the next major release from this object.- Returns:
this
.
-
workspacePermission
public ApiToken.ApiTokenAttributes.ApiTokenAttributesBuilder workspacePermission(String workspacePermission) -
workspacePermissions
public ApiToken.ApiTokenAttributes.ApiTokenAttributesBuilder workspacePermissions(Collection<? extends String> workspacePermissions) -
clearWorkspacePermissions
-
build
-
toString
-