public class SecretMetadata extends AbstractModel
Constructor and Description |
---|
SecretMetadata() |
SecretMetadata(SecretMetadata source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getAssociatedInstanceIDs()
Get ID of the CVM instance associated with the SSH key.
|
Long |
getCreateTime()
Get Credential creation time in UNIX timestamp format
|
Long |
getCreateUin()
Get Creator UIN
|
Long |
getDeleteTime()
Get Credential deletion date, which takes effect for credentials in `PendingDelete` status and is in UNIX timestamp format
|
String |
getDescription()
Get Credential description
|
String |
getKmsKeyId()
Get KMS `KeyId` used to encrypt the credential
|
String |
getKmsKeyType()
Get Type of the KMS CMK used to encrypt the credential.
|
Long |
getNextRotationTime()
Get Start time of the next rotation in UNIX timestamp format
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getProductName()
Get Tencent Cloud service name, which takes effect only when `SecretType` is 1 (Tencent Cloud service credential)
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getProjectID()
Get Project ID.
|
String |
getResourceName()
Get Secret name.
|
Long |
getRotationStatus()
Get 1: enable rotation; 0: disable rotation
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getSecretName()
Get Credential name
|
Long |
getSecretType()
Get `0`: user-defined secret.
|
String |
getStatus()
Get Credential status: Enabled, Disabled, PendingDelete, Creating, Failed.
|
Long |
getTargetUin()
Get UIN of the Tencent Cloud API key.
|
void |
setAssociatedInstanceIDs(String[] AssociatedInstanceIDs)
Set ID of the CVM instance associated with the SSH key.
|
void |
setCreateTime(Long CreateTime)
Set Credential creation time in UNIX timestamp format
|
void |
setCreateUin(Long CreateUin)
Set Creator UIN
|
void |
setDeleteTime(Long DeleteTime)
Set Credential deletion date, which takes effect for credentials in `PendingDelete` status and is in UNIX timestamp format
|
void |
setDescription(String Description)
Set Credential description
|
void |
setKmsKeyId(String KmsKeyId)
Set KMS `KeyId` used to encrypt the credential
|
void |
setKmsKeyType(String KmsKeyType)
Set Type of the KMS CMK used to encrypt the credential.
|
void |
setNextRotationTime(Long NextRotationTime)
Set Start time of the next rotation in UNIX timestamp format
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setProductName(String ProductName)
Set Tencent Cloud service name, which takes effect only when `SecretType` is 1 (Tencent Cloud service credential)
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setProjectID(Long ProjectID)
Set Project ID.
|
void |
setResourceName(String ResourceName)
Set Secret name.
|
void |
setRotationStatus(Long RotationStatus)
Set 1: enable rotation; 0: disable rotation
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setSecretName(String SecretName)
Set Credential name
|
void |
setSecretType(Long SecretType)
Set `0`: user-defined secret.
|
void |
setStatus(String Status)
Set Credential status: Enabled, Disabled, PendingDelete, Creating, Failed.
|
void |
setTargetUin(Long TargetUin)
Set UIN of the Tencent Cloud API key.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public SecretMetadata()
public SecretMetadata(SecretMetadata source)
public String getSecretName()
public void setSecretName(String SecretName)
SecretName
- Credential namepublic String getDescription()
public void setDescription(String Description)
Description
- Credential descriptionpublic String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId
- KMS `KeyId` used to encrypt the credentialpublic Long getCreateUin()
public void setCreateUin(Long CreateUin)
CreateUin
- Creator UINpublic String getStatus()
public void setStatus(String Status)
Status
- Credential status: Enabled, Disabled, PendingDelete, Creating, Failed.public Long getDeleteTime()
public void setDeleteTime(Long DeleteTime)
DeleteTime
- Credential deletion date, which takes effect for credentials in `PendingDelete` status and is in UNIX timestamp formatpublic Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime
- Credential creation time in UNIX timestamp formatpublic String getKmsKeyType()
public void setKmsKeyType(String KmsKeyType)
KmsKeyType
- Type of the KMS CMK used to encrypt the credential. `DEFAULT` represents the default key created by Secrets Manager, and `CUSTOMER` represents the user-specified keypublic Long getRotationStatus()
public void setRotationStatus(Long RotationStatus)
RotationStatus
- 1: enable rotation; 0: disable rotation
Note: this field may return null, indicating that no valid values can be obtained.public Long getNextRotationTime()
public void setNextRotationTime(Long NextRotationTime)
NextRotationTime
- Start time of the next rotation in UNIX timestamp format
Note: this field may return null, indicating that no valid values can be obtained.public Long getSecretType()
public void setSecretType(Long SecretType)
SecretType
- `0`: user-defined secret.
`1`: Tencent Cloud services secret.
`2`: SSH key secret.
`3`: Tencent Cloud API key secret.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getProductName()
public void setProductName(String ProductName)
ProductName
- Tencent Cloud service name, which takes effect only when `SecretType` is 1 (Tencent Cloud service credential)
Note: this field may return null, indicating that no valid values can be obtained.public String getResourceName()
public void setResourceName(String ResourceName)
ResourceName
- Secret name. This field is only valid when the `SecretType` is set to `2` (SSH key secret).
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getProjectID()
public void setProjectID(Long ProjectID)
ProjectID
- Project ID. This field is only valid when the `SecretType` is set to `2` (SSH key secret).
Note: this field may return `null`, indicating that no valid values can be obtained.public String[] getAssociatedInstanceIDs()
public void setAssociatedInstanceIDs(String[] AssociatedInstanceIDs)
AssociatedInstanceIDs
- ID of the CVM instance associated with the SSH key. ID. This field is only valid when the `SecretType` is set to `2` (SSH key secret).
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getTargetUin()
public void setTargetUin(Long TargetUin)
TargetUin
- UIN of the Tencent Cloud API key. This field is valid when the secret type is Tencent Cloud API key secret.
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.