public class KeyMetadata extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
KeyMetadata()  | 
KeyMetadata(KeyMetadata 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 | 
getAlias()
Get Alias that makes a key more recognizable and understandable 
 | 
Long | 
getCreateTime()
Get Key creation time 
 | 
Long | 
getCreatorUin()
Get Creator 
 | 
Long | 
getDeletionDate()
Get The time when scheduled deletion occurs. 
 | 
String | 
getDescription()
Get CMK description 
 | 
String | 
getHsmClusterId()
Get HSM cluster ID (valid only for exclusive or managed version KMS service instances). 
 | 
Long | 
getIsSyncReplica()
Get Specifies whether the key is a primary replica. 
 | 
String | 
getKeyId()
Get Globally unique CMK ID 
 | 
Boolean | 
getKeyRotationEnabled()
Get Whether key rotation is enabled 
 | 
String | 
getKeyState()
Get CMK status. 
 | 
String | 
getKeyUsage()
Get CMK purpose. 
 | 
Long | 
getLastRotateTime()
Get Last disorderly rotation time (Unix timestamp). 
 | 
Long | 
getNextRotateTime()
Get Time of next rotation if key rotation is enabled 
 | 
String | 
getOrigin()
Get CMK key material type. 
 | 
String | 
getOwner()
Get CMK creator. 
 | 
String | 
getResourceId()
Get Resource ID in the format of `creatorUin/$creatorUin/$keyId`. 
 | 
Long | 
getRotateDays()
Get Key rotation period (days). 
 | 
String | 
getSourceHsmClusterId()
Get Synchronous original cluster. 
 | 
String | 
getSourceRegion()
Get Synchronous original region. 
 | 
Long | 
getSyncEndTime()
Get Specifies the synchronous end time. 
 | 
String | 
getSyncMessages()
Get Describes the synchronous result. 
 | 
Long | 
getSyncStartTime()
Get Start time of synchronization. 
 | 
Long | 
getSyncStatus()
Get The state of key synchronization. 
 | 
Long | 
getType()
Get CMK type. 
 | 
Long | 
getValidTo()
Get Valid when Origin is EXTERNAL. 
 | 
void | 
setAlias(String Alias)
Set Alias that makes a key more recognizable and understandable 
 | 
void | 
setCreateTime(Long CreateTime)
Set Key creation time 
 | 
void | 
setCreatorUin(Long CreatorUin)
Set Creator 
 | 
void | 
setDeletionDate(Long DeletionDate)
Set The time when scheduled deletion occurs. 
 | 
void | 
setDescription(String Description)
Set CMK description 
 | 
void | 
setHsmClusterId(String HsmClusterId)
Set HSM cluster ID (valid only for exclusive or managed version KMS service instances). 
 | 
void | 
setIsSyncReplica(Long IsSyncReplica)
Set Specifies whether the key is a primary replica. 
 | 
void | 
setKeyId(String KeyId)
Set Globally unique CMK ID 
 | 
void | 
setKeyRotationEnabled(Boolean KeyRotationEnabled)
Set Whether key rotation is enabled 
 | 
void | 
setKeyState(String KeyState)
Set CMK status. 
 | 
void | 
setKeyUsage(String KeyUsage)
Set CMK purpose. 
 | 
void | 
setLastRotateTime(Long LastRotateTime)
Set Last disorderly rotation time (Unix timestamp). 
 | 
void | 
setNextRotateTime(Long NextRotateTime)
Set Time of next rotation if key rotation is enabled 
 | 
void | 
setOrigin(String Origin)
Set CMK key material type. 
 | 
void | 
setOwner(String Owner)
Set CMK creator. 
 | 
void | 
setResourceId(String ResourceId)
Set Resource ID in the format of `creatorUin/$creatorUin/$keyId`. 
 | 
void | 
setRotateDays(Long RotateDays)
Set Key rotation period (days). 
 | 
void | 
setSourceHsmClusterId(String SourceHsmClusterId)
Set Synchronous original cluster. 
 | 
void | 
setSourceRegion(String SourceRegion)
Set Synchronous original region. 
 | 
void | 
setSyncEndTime(Long SyncEndTime)
Set Specifies the synchronous end time. 
 | 
void | 
setSyncMessages(String SyncMessages)
Set Describes the synchronous result. 
 | 
void | 
setSyncStartTime(Long SyncStartTime)
Set Start time of synchronization. 
 | 
void | 
setSyncStatus(Long SyncStatus)
Set The state of key synchronization. 
 | 
void | 
setType(Long Type)
Set CMK type. 
 | 
void | 
setValidTo(Long ValidTo)
Set Valid when Origin is EXTERNAL. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic KeyMetadata()
public KeyMetadata(KeyMetadata source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId - Globally unique CMK IDpublic String getAlias()
public void setAlias(String Alias)
Alias - Alias that makes a key more recognizable and understandablepublic Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime - Key creation timepublic String getDescription()
public void setDescription(String Description)
Description - CMK descriptionpublic String getKeyState()
public void setKeyState(String KeyState)
KeyState - CMK status. Valid values: Enabled, Disabled, PendingDelete, PendingImport, Archived.public String getKeyUsage()
public void setKeyUsage(String KeyUsage)
KeyUsage - CMK purpose. Valid values: `ENCRYPT_DECRYPT`, `ASYMMETRIC_DECRYPT_RSA_2048`, `ASYMMETRIC_DECRYPT_SM2`, `ASYMMETRIC_SIGN_VERIFY_SM2`, `ASYMMETRIC_SIGN_VERIFY_RSA_2048`, and `ASYMMETRIC_SIGN_VERIFY_ECC`.public Long getType()
public void setType(Long Type)
Type - CMK type. 2: FIPS-compliant; 4: SM-CRYPTOpublic Long getCreatorUin()
public void setCreatorUin(Long CreatorUin)
CreatorUin - Creatorpublic Boolean getKeyRotationEnabled()
public void setKeyRotationEnabled(Boolean KeyRotationEnabled)
KeyRotationEnabled - Whether key rotation is enabledpublic String getOwner()
public void setOwner(String Owner)
Owner - CMK creator. The value of this parameter is `user` if the CMK is created by the user, or the corresponding service name if it is created automatically by an authorized Tencent Cloud service.public Long getNextRotateTime()
public void setNextRotateTime(Long NextRotateTime)
NextRotateTime - Time of next rotation if key rotation is enabledpublic Long getDeletionDate()
public void setDeletionDate(Long DeletionDate)
DeletionDate - The time when scheduled deletion occurs.public String getOrigin()
public void setOrigin(String Origin)
Origin - CMK key material type. the type created by KMS is TENCENT_KMS. the user-imported type is EXTERNAL.public Long getValidTo()
public void setValidTo(Long ValidTo)
ValidTo - Valid when Origin is EXTERNAL. indicates the validity date of the key material. 0 means no expiration.public String getResourceId()
public void setResourceId(String ResourceId)
ResourceId - Resource ID in the format of `creatorUin/$creatorUin/$keyId`.public String getHsmClusterId()
public void setHsmClusterId(String HsmClusterId)
HsmClusterId - HSM cluster ID (valid only for exclusive or managed version KMS service instances).public Long getRotateDays()
public void setRotateDays(Long RotateDays)
RotateDays - Key rotation period (days).public Long getLastRotateTime()
public void setLastRotateTime(Long LastRotateTime)
LastRotateTime - Last disorderly rotation time (Unix timestamp).public Long getIsSyncReplica()
public void setIsSyncReplica(Long IsSyncReplica)
IsSyncReplica - Specifies whether the key is a primary replica. valid values: 0 (primary replica), 1 (synced replica).public String getSourceRegion()
public void setSourceRegion(String SourceRegion)
SourceRegion - Synchronous original region.public Long getSyncStatus()
public void setSyncStatus(Long SyncStatus)
SyncStatus - The state of key synchronization. valid values: 0 (unsynced), 1 (synchronization successful), 2 (synchronization failed), 3 (synchronizing).public String getSyncMessages()
public void setSyncMessages(String SyncMessages)
SyncMessages - Describes the synchronous result.public Long getSyncStartTime()
public void setSyncStartTime(Long SyncStartTime)
SyncStartTime - Start time of synchronization.public Long getSyncEndTime()
public void setSyncEndTime(Long SyncEndTime)
SyncEndTime - Specifies the synchronous end time.public String getSourceHsmClusterId()
public void setSourceHsmClusterId(String SourceHsmClusterId)
SourceHsmClusterId - Synchronous original cluster. if empty, it is a public cloud public cluster.Copyright © 2025. All rights reserved.