public static class OAuth2ClientCredentialSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public OAuth2ClientCredentialSummary.Builder scopes(List<FullyQualifiedScope> scopes)
Allowed scopes for the given oauth credential.
scopes
- the value to setpublic OAuth2ClientCredentialSummary.Builder userId(String userId)
The OCID of the user the Oauth credential belongs to.
userId
- the value to setpublic 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
expiresOn
- the value to setpublic OAuth2ClientCredentialSummary.Builder id(String id)
The OCID of the Oauth credential.
id
- the value to setpublic OAuth2ClientCredentialSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the Oauth credential.
compartmentId
- the value to setpublic OAuth2ClientCredentialSummary.Builder name(String name)
The name of the Oauth credential.
name
- the value to setpublic OAuth2ClientCredentialSummary.Builder description(String description)
The description of the Oauth credential.
description
- the value to setpublic 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.
lifecycleState
- the value to setpublic 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
timeCreated
- the value to setpublic OAuth2ClientCredentialSummary build()
public OAuth2ClientCredentialSummary.Builder copy(OAuth2ClientCredentialSummary model)
Copyright © 2016–2024. All rights reserved.