Package com.oracle.bmc.identity.model
Class OAuth2ClientCredentialSummary.Builder
- java.lang.Object
- 
- com.oracle.bmc.identity.model.OAuth2ClientCredentialSummary.Builder
 
- 
- Enclosing class:
- OAuth2ClientCredentialSummary
 
 public static class OAuth2ClientCredentialSummary.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2ClientCredentialSummarybuild()OAuth2ClientCredentialSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the Oauth credential.OAuth2ClientCredentialSummary.Buildercopy(OAuth2ClientCredentialSummary model)OAuth2ClientCredentialSummary.Builderdescription(String description)The description of the Oauth credential.OAuth2ClientCredentialSummary.BuilderexpiresOn(Date expiresOn)Date and time when this credential will expire, in the format defined by RFC3339.OAuth2ClientCredentialSummary.Builderid(String id)The OCID of the Oauth credential.OAuth2ClientCredentialSummary.BuilderlifecycleState(OAuth2ClientCredentialSummary.LifecycleState lifecycleState)The credential’s current state.OAuth2ClientCredentialSummary.Buildername(String name)The name of the Oauth credential.OAuth2ClientCredentialSummary.Builderscopes(List<FullyQualifiedScope> scopes)Allowed scopes for the given oauth credential.OAuth2ClientCredentialSummary.BuildertimeCreated(Date timeCreated)Date and time the OAuth2ClientCredential object was created, in the format defined by RFC3339.OAuth2ClientCredentialSummary.BuilderuserId(String userId)The OCID of the user the Oauth credential belongs to.
 
- 
- 
- 
Method Detail- 
scopespublic OAuth2ClientCredentialSummary.Builder scopes(List<FullyQualifiedScope> scopes) Allowed scopes for the given oauth credential.- Parameters:
- scopes- the value to set
- Returns:
- this builder
 
 - 
userIdpublic OAuth2ClientCredentialSummary.Builder userId(String userId) The OCID of the user the Oauth credential belongs to.- Parameters:
- userId- the value to set
- Returns:
- this builder
 
 - 
expiresOnpublic OAuth2ClientCredentialSummary.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
 
 - 
idpublic OAuth2ClientCredentialSummary.Builder id(String id) The OCID of the Oauth credential.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic OAuth2ClientCredentialSummary.Builder compartmentId(String compartmentId) The OCID of the compartment containing the Oauth credential.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
namepublic OAuth2ClientCredentialSummary.Builder name(String name) The name of the Oauth credential.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic OAuth2ClientCredentialSummary.Builder description(String description) The description of the Oauth credential.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic OAuth2ClientCredentialSummary.Builder lifecycleState(OAuth2ClientCredentialSummary.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
 
 - 
timeCreatedpublic OAuth2ClientCredentialSummary.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
 
 - 
buildpublic OAuth2ClientCredentialSummary build() 
 - 
copypublic OAuth2ClientCredentialSummary.Builder copy(OAuth2ClientCredentialSummary model) 
 
- 
 
-