Package com.oracle.bmc.identity.model
Class OAuth2ClientCredential.Builder
- java.lang.Object
 - 
- com.oracle.bmc.identity.model.OAuth2ClientCredential.Builder
 
 
- 
- Enclosing class:
 - OAuth2ClientCredential
 
public static class OAuth2ClientCredential.Builder extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description Builder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2ClientCredentialbuild()OAuth2ClientCredential.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the Oauth credential.OAuth2ClientCredential.Buildercopy(OAuth2ClientCredential model)OAuth2ClientCredential.Builderdescription(String description)The description of the Oauth credential.OAuth2ClientCredential.BuilderexpiresOn(Date expiresOn)Date and time when this credential will expire, in the format defined by RFC3339.OAuth2ClientCredential.Builderid(String id)The OCID of the Oauth credential.OAuth2ClientCredential.BuilderlifecycleState(OAuth2ClientCredential.LifecycleState lifecycleState)The credential’s current state.OAuth2ClientCredential.Buildername(String name)The name of the Oauth credential.OAuth2ClientCredential.Builderpassword(String password)Returned during create and update with password reset requests.OAuth2ClientCredential.Builderscopes(List<FullyQualifiedScope> scopes)Allowed scopes for the given oauth credential.OAuth2ClientCredential.BuildertimeCreated(Date timeCreated)Date and time the OAuth2ClientCredential object was created, in the format defined by RFC3339.OAuth2ClientCredential.BuilderuserId(String userId)The OCID of the user the Oauth credential belongs to. 
 - 
 
- 
- 
Method Detail
- 
scopes
public OAuth2ClientCredential.Builder scopes(List<FullyQualifiedScope> scopes)
Allowed scopes for the given oauth credential.- Parameters:
 scopes- the value to set- Returns:
 - this builder
 
 
- 
password
public OAuth2ClientCredential.Builder password(String password)
Returned during create and update with password reset requests.- Parameters:
 password- the value to set- Returns:
 - this builder
 
 
- 
userId
public OAuth2ClientCredential.Builder userId(String userId)
The OCID of the user the Oauth credential belongs to.- Parameters:
 userId- the value to set- Returns:
 - this builder
 
 
- 
expiresOn
public OAuth2ClientCredential.Builder expiresOn(Date expiresOn)
Date and time when this credential will expire, in the format defined by RFC3339.Null if it never expires.
Example: 2016-08-25T21:10:29.600Z
- Parameters:
 expiresOn- the value to set- Returns:
 - this builder
 
 
- 
id
public OAuth2ClientCredential.Builder id(String id)
The OCID of the Oauth credential.- Parameters:
 id- the value to set- Returns:
 - this builder
 
 
- 
compartmentId
public OAuth2ClientCredential.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the Oauth credential.- Parameters:
 compartmentId- the value to set- Returns:
 - this builder
 
 
- 
name
public OAuth2ClientCredential.Builder name(String name)
The name of the Oauth credential.- Parameters:
 name- the value to set- Returns:
 - this builder
 
 
- 
description
public OAuth2ClientCredential.Builder description(String description)
The description of the Oauth credential.- Parameters:
 description- the value to set- Returns:
 - this builder
 
 
- 
lifecycleState
public OAuth2ClientCredential.Builder lifecycleState(OAuth2ClientCredential.LifecycleState lifecycleState)
The credential’s current state.After creating a Oauth credential, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
- Parameters:
 lifecycleState- the value to set- Returns:
 - this builder
 
 
- 
timeCreated
public OAuth2ClientCredential.Builder timeCreated(Date timeCreated)
Date and time the OAuth2ClientCredential 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
 
 
- 
build
public OAuth2ClientCredential build()
 
- 
copy
public OAuth2ClientCredential.Builder copy(OAuth2ClientCredential model)
 
 - 
 
 -