public static class OAuth2ClientCredential.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
OAuth2ClientCredential |
build() |
OAuth2ClientCredential.Builder |
compartmentId(String compartmentId)
The OCID of the compartment containing the Oauth credential.
|
OAuth2ClientCredential.Builder |
copy(OAuth2ClientCredential model) |
OAuth2ClientCredential.Builder |
description(String description)
The description of the Oauth credential.
|
OAuth2ClientCredential.Builder |
expiresOn(Date expiresOn)
Date and time when this credential will expire, in the format defined by RFC3339.
|
OAuth2ClientCredential.Builder |
id(String id)
The OCID of the Oauth credential.
|
OAuth2ClientCredential.Builder |
lifecycleState(OAuth2ClientCredential.LifecycleState lifecycleState)
The credential’s current state.
|
OAuth2ClientCredential.Builder |
name(String name)
The name of the Oauth credential.
|
OAuth2ClientCredential.Builder |
password(String password)
Returned during create and update with password reset requests.
|
OAuth2ClientCredential.Builder |
scopes(List<FullyQualifiedScope> scopes)
Allowed scopes for the given oauth credential.
|
OAuth2ClientCredential.Builder |
timeCreated(Date timeCreated)
Date and time the
OAuth2ClientCredential object was created, in the format
defined by RFC3339. |
OAuth2ClientCredential.Builder |
userId(String userId)
The OCID of the user the Oauth credential belongs to.
|
public OAuth2ClientCredential.Builder scopes(List<FullyQualifiedScope> scopes)
Allowed scopes for the given oauth credential.
scopes
- the value to setpublic OAuth2ClientCredential.Builder password(String password)
Returned during create and update with password reset requests.
password
- the value to setpublic OAuth2ClientCredential.Builder userId(String userId)
The OCID of the user the Oauth credential belongs to.
userId
- the value to setpublic 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
expiresOn
- the value to setpublic OAuth2ClientCredential.Builder id(String id)
The OCID of the Oauth credential.
id
- the value to setpublic OAuth2ClientCredential.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the Oauth credential.
compartmentId
- the value to setpublic OAuth2ClientCredential.Builder name(String name)
The name of the Oauth credential.
name
- the value to setpublic OAuth2ClientCredential.Builder description(String description)
The description of the Oauth credential.
description
- the value to setpublic 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.
lifecycleState
- the value to setpublic 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
timeCreated
- the value to setpublic OAuth2ClientCredential build()
public OAuth2ClientCredential.Builder copy(OAuth2ClientCredential model)
Copyright © 2016–2024. All rights reserved.