public static class AssetSourceCredentials.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AssetSourceCredentials |
build() |
AssetSourceCredentials.Builder |
copy(AssetSourceCredentials model) |
AssetSourceCredentials.Builder |
secretId(String secretId)
The OCID of the
secret in a vault.
|
AssetSourceCredentials.Builder |
type(AssetSourceCredentialsType type)
Authentication type
|
public AssetSourceCredentials.Builder type(AssetSourceCredentialsType type)
Authentication type
type
- the value to setpublic AssetSourceCredentials.Builder secretId(String secretId)
The OCID of the
secret in a vault. If the type of the credentials is BASIC
, the secret must
contain the username and password in JSON format, which is in the form of {
"username": "<User>", "password": "example-password" }
. If the type of the credentials
is API_KEY
, the secret must contain the accessKeyId and secretAccessKey in JSON
format, which is in the form of { "accessKeyId": "<AccessKey>", "secretAccessKey":
"<AccessKeyValue>" }
.
secretId
- the value to setpublic AssetSourceCredentials build()
public AssetSourceCredentials.Builder copy(AssetSourceCredentials model)
Copyright © 2016–2024. All rights reserved.