Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthToken |
build() |
AuthToken.Builder |
copy(AuthToken model) |
AuthToken.Builder |
description(String description)
The description you assign to the auth token.
|
AuthToken.Builder |
id(String id)
The OCID of the auth token.
|
AuthToken.Builder |
inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.
|
AuthToken.Builder |
lifecycleState(AuthToken.LifecycleState lifecycleState)
The token’s current state.
|
AuthToken.Builder |
timeCreated(Date timeCreated)
Date and time the
AuthToken object was created, in the format defined by RFC3339. |
AuthToken.Builder |
timeExpires(Date timeExpires)
Date and time when this auth token will expire, in the format defined by RFC3339.
|
AuthToken.Builder |
token(String token)
The auth token.
|
AuthToken.Builder |
userId(String userId)
The OCID of the user the auth token belongs to.
|
public AuthToken.Builder token(String token)
The auth token. The value is available only in the response for CreateAuthToken
,
and not for ListAuthTokens
or UpdateAuthToken
.
token
- the value to setpublic AuthToken.Builder id(String id)
The OCID of the auth token.
id
- the value to setpublic AuthToken.Builder userId(String userId)
The OCID of the user the auth token belongs to.
userId
- the value to setpublic AuthToken.Builder description(String description)
The description you assign to the auth token. Does not have to be unique, and it’s changeable.
(For tenancies that support identity domains) You can have an empty description.
description
- the value to setpublic AuthToken.Builder timeCreated(Date timeCreated)
Date and time the AuthToken
object was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic AuthToken.Builder timeExpires(Date timeExpires)
Date and time when this auth token will expire, in the format defined by RFC3339. Null if it never expires.
Example: 2016-08-25T21:10:29.600Z
timeExpires
- the value to setpublic AuthToken.Builder lifecycleState(AuthToken.LifecycleState lifecycleState)
The token’s current state. After creating an auth token, make sure its lifecycleState
changes from CREATING to ACTIVE before using it.
lifecycleState
- the value to setpublic AuthToken.Builder inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.
inactiveStatus
- the value to setpublic AuthToken build()
public AuthToken.Builder copy(AuthToken model)
Copyright © 2016–2024. All rights reserved.