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 Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2ClientCredentialSummary
build()
OAuth2ClientCredentialSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the Oauth credential.OAuth2ClientCredentialSummary.Builder
copy(OAuth2ClientCredentialSummary model)
OAuth2ClientCredentialSummary.Builder
description(String description)
The description of the Oauth credential.OAuth2ClientCredentialSummary.Builder
expiresOn(Date expiresOn)
Date and time when this credential will expire, in the format defined by RFC3339.OAuth2ClientCredentialSummary.Builder
id(String id)
The OCID of the Oauth credential.OAuth2ClientCredentialSummary.Builder
lifecycleState(OAuth2ClientCredentialSummary.LifecycleState lifecycleState)
The credential’s current state.OAuth2ClientCredentialSummary.Builder
name(String name)
The name of the Oauth credential.OAuth2ClientCredentialSummary.Builder
scopes(List<FullyQualifiedScope> scopes)
Allowed scopes for the given oauth credential.OAuth2ClientCredentialSummary.Builder
timeCreated(Date timeCreated)
Date and time the OAuth2ClientCredential object was created, in the format defined by RFC3339.OAuth2ClientCredentialSummary.Builder
userId(String userId)
The OCID of the user the Oauth credential belongs to.
-
-
-
Method Detail
-
scopes
public OAuth2ClientCredentialSummary.Builder scopes(List<FullyQualifiedScope> scopes)
Allowed scopes for the given oauth credential.- Parameters:
scopes
- the value to set- Returns:
- this builder
-
userId
public OAuth2ClientCredentialSummary.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 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
-
id
public OAuth2ClientCredentialSummary.Builder id(String id)
The OCID of the Oauth credential.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public OAuth2ClientCredentialSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the Oauth credential.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public OAuth2ClientCredentialSummary.Builder name(String name)
The name of the Oauth credential.- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public OAuth2ClientCredentialSummary.Builder description(String description)
The description of the Oauth credential.- Parameters:
description
- the value to set- Returns:
- this builder
-
lifecycleState
public 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
-
timeCreated
public 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
-
build
public OAuth2ClientCredentialSummary build()
-
copy
public OAuth2ClientCredentialSummary.Builder copy(OAuth2ClientCredentialSummary model)
-
-