public static final class GetSecretValueResponseBody.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public GetSecretValueResponseBody.Builder automaticRotation(String automaticRotation)
* Enabled: indicates that automatic rotation is enabled. * Disabled: indicates that automatic rotation is disabled. * Invalid: indicates that the status of automatic rotation is abnormal. In this case, Secrets Manager cannot automatically rotate the secret. > This parameter is returned only for a managed ApsaraDB RDS secret, a managed RAM secret, or a managed ECS secret.
public GetSecretValueResponseBody.Builder createTime(String createTime)
public GetSecretValueResponseBody.Builder extendedConfig(String extendedConfig)
> This parameter is returned if you set the FetchExtendedConfig parameter to true. This parameter is returned only for a managed ApsaraDB RDS secret, a managed RAM secret, or a managed ECS secret.
public GetSecretValueResponseBody.Builder lastRotationDate(String lastRotationDate)
> This parameter is returned if the secret was rotated.
public GetSecretValueResponseBody.Builder nextRotationDate(String nextRotationDate)
> This parameter is returned if automatic rotation is enabled.
public GetSecretValueResponseBody.Builder requestId(String requestId)
public GetSecretValueResponseBody.Builder rotationInterval(String rotationInterval)
The value is in the `integer[unit]` format. The `unit` field has a fixed value of s. For example, if the value is 604800s, automatic rotation is performed at a 7-day interval. > This parameter is returned if automatic rotation is enabled.
public GetSecretValueResponseBody.Builder secretData(String secretData)
* For a generic secret, the secret value of the specified version is returned. * For a managed ApsaraDB RDS secret, the value is returned in the following format:`{"AccountName":"","AccountPassword":""}` . * For a managed RAM secret, the secret value is returned in the following format: `{"AccessKeyId":"Adfdsfd","AccessKeySecret":"fdsfdsf","GenerateTimestamp": "2016-03-25T10:42:40Z"}`. * For a managed ECS secret, the secret value is returned in one of the following formats: * `{"UserName":"root","Password":"H5asdasdsads****"}`: The secret value is returned in this format if the ECS secret is a password. * `{"UserName":"root","PublicKey":"ssh-rsa ****mKwnVix9YTFY9Rs= imported-openssh-key","PrivateKey": "d6bee1cb-2e14-4277-ba6b-73786b21****"}`: The secret value is returned in this format is the ECS secret is a pair of SSH keys. The private key is in the Privacy Enhanced Mail (PEM) format.
public GetSecretValueResponseBody.Builder secretDataType(String secretDataType)
* text * binary
public GetSecretValueResponseBody.Builder secretName(String secretName)
public GetSecretValueResponseBody.Builder secretType(String secretType)
* Generic: indicates a generic secret. * Rds: indicates a managed ApsaraDB RDS secret. * RAMCredentials: indicates a managed RAM secret. * ECS: indicates a managed ECS secret.
public GetSecretValueResponseBody.Builder versionId(String versionId)
public GetSecretValueResponseBody.Builder versionStages(GetSecretValueResponseBody.VersionStages versionStages)
public GetSecretValueResponseBody build()
Copyright © 2023. All rights reserved.