public class KeyMetadata extends AbstractModel
| Constructor and Description | 
|---|
| KeyMetadata() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAlias()Get | 
| Long | getCreateTime()Get | 
| Long | getCreatorUin()Get | 
| Long | getDeletionDate()Get | 
| String | getDescription()Get | 
| String | getKeyId()Get | 
| Boolean | getKeyRotationEnabled()Get | 
| String | getKeyState()Get CMK status. | 
| String | getKeyUsage()Get CMK purpose. | 
| Long | getNextRotateTime()Get | 
| String | getOrigin()Get CMK key material type. | 
| String | getOwner()Get | 
| String | getResourceId()Get Resource ID in the format of `creatorUin/$creatorUin/$keyId`. | 
| Long | getType()Get CMK type. | 
| Long | getValidTo()Get It's valid when `Origin` is `EXTERNAL`, indicating the expiration date of key material. | 
| void | setAlias(String Alias)Set | 
| void | setCreateTime(Long CreateTime)Set | 
| void | setCreatorUin(Long CreatorUin)Set | 
| void | setDeletionDate(Long DeletionDate)Set | 
| void | setDescription(String Description)Set | 
| void | setKeyId(String KeyId)Set | 
| void | setKeyRotationEnabled(Boolean KeyRotationEnabled)Set | 
| void | setKeyState(String KeyState)Set CMK status. | 
| void | setKeyUsage(String KeyUsage)Set CMK purpose. | 
| void | setNextRotateTime(Long NextRotateTime)Set | 
| void | setOrigin(String Origin)Set CMK key material type. | 
| void | setOwner(String Owner)Set | 
| void | setResourceId(String ResourceId)Set Resource ID in the format of `creatorUin/$creatorUin/$keyId`. | 
| void | setType(Long Type)Set CMK type. | 
| void | setValidTo(Long ValidTo)Set It's valid when `Origin` is `EXTERNAL`, indicating the expiration date of key material. | 
| 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, toJsonStringpublic String getKeyId()
public void setKeyId(String KeyId)
KeyId - public String getAlias()
public void setAlias(String Alias)
Alias - public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime - public String getDescription()
public void setDescription(String Description)
Description - public String getKeyState()
public void setKeyState(String KeyState)
KeyState - CMK status. Valid values: Enabled, Disabled, PendingDelete, PendingImport.public String getKeyUsage()
public void setKeyUsage(String KeyUsage)
KeyUsage - CMK purpose. Valid values: ENCRYPT_DECRYPT, ASYMMETRIC_DECRYPT_RSA_2048, ASYMMETRIC_DECRYPT_SM2public Long getType()
public void setType(Long Type)
Type - CMK type. 2: FIPS-compliant; 4: SM-CRYPTOpublic Long getCreatorUin()
public void setCreatorUin(Long CreatorUin)
CreatorUin - public Boolean getKeyRotationEnabled()
public void setKeyRotationEnabled(Boolean KeyRotationEnabled)
KeyRotationEnabled - public String getOwner()
public void setOwner(String Owner)
Owner - public Long getNextRotateTime()
public void setNextRotateTime(Long NextRotateTime)
NextRotateTime - public Long getDeletionDate()
public void setDeletionDate(Long DeletionDate)
DeletionDate - public String getOrigin()
public void setOrigin(String Origin)
Origin - CMK key material type. TENCENT_KMS: created by KMS; EXTERNAL: imported by user.
Note: This field may return null, indicating that no valid values can be obtained.public Long getValidTo()
public void setValidTo(Long ValidTo)
ValidTo - It's valid when `Origin` is `EXTERNAL`, indicating the expiration date of key material. 0 means valid forever.
Note: This field may return null, indicating that no valid values can be obtained.public String getResourceId()
public void setResourceId(String ResourceId)
ResourceId - Resource ID in the format of `creatorUin/$creatorUin/$keyId`.Copyright © 2020. All rights reserved.