Package com.oracle.bmc.identity.model
Class AuthToken.Builder
- java.lang.Object
- 
- com.oracle.bmc.identity.model.AuthToken.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthTokenbuild()AuthToken.Buildercopy(AuthToken model)AuthToken.Builderdescription(String description)The description you assign to the auth token.AuthToken.Builderid(String id)The OCID of the auth token.AuthToken.BuilderinactiveStatus(Long inactiveStatus)The detailed status of INACTIVE lifecycleState.AuthToken.BuilderlifecycleState(AuthToken.LifecycleState lifecycleState)The token’s current state.AuthToken.BuildertimeCreated(Date timeCreated)Date and time the AuthToken object was created, in the format defined by RFC3339.AuthToken.BuildertimeExpires(Date timeExpires)Date and time when this auth token will expire, in the format defined by RFC3339.AuthToken.Buildertoken(String token)The auth token.AuthToken.BuilderuserId(String userId)The OCID of the user the auth token belongs to.
 
- 
- 
- 
Method Detail- 
tokenpublic AuthToken.Builder token(String token) The auth token.The value is available only in the response for CreateAuthToken, and not for ListAuthTokens or UpdateAuthToken. - Parameters:
- token- the value to set
- Returns:
- this builder
 
 - 
idpublic AuthToken.Builder id(String id) The OCID of the auth token.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
userIdpublic AuthToken.Builder userId(String userId) The OCID of the user the auth token belongs to.- Parameters:
- userId- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic 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. - Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic 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 - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeExpirespublic 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 - Parameters:
- timeExpires- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic 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. - Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
inactiveStatuspublic AuthToken.Builder inactiveStatus(Long inactiveStatus) The detailed status of INACTIVE lifecycleState.- Parameters:
- inactiveStatus- the value to set
- Returns:
- this builder
 
 - 
buildpublic AuthToken build() 
 - 
copypublic AuthToken.Builder copy(AuthToken model) 
 
- 
 
-