public class DataKeyMetadata extends AbstractModel
header, skipSign
Constructor and Description |
---|
DataKeyMetadata() |
DataKeyMetadata(DataKeyMetadata 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 |
---|---|
Long |
getCreateTime()
Get Key key creation time.
|
Long |
getCreatorUin()
Get Creator.
|
String |
getDataKeyId()
Get DataKey globally unique id.
|
String |
getDataKeyName()
Get Key name as a more recognizable and understandable data key.
|
Long |
getDeletionDate()
Get The time when schedule deletion.
|
String |
getDescription()
Get DataKey description.
|
String |
getHsmClusterId()
Get HSM cluster ID (only applicable to KMS exclusive/managed service instance).
|
Long |
getIsSyncReplica()
Get Whether the key is a primary replica.
|
String |
getKeyId()
Get Globally unique id of the CMK.
|
String |
getKeyState()
Get DataKey status.
|
Long |
getNumberOfBytes()
Get Specifies the length of the data key in bytes.
|
String |
getOrigin()
Get Specifies the key material type of DataKey.
|
String |
getOwner()
Get Specifies the creator of the data key.
|
String |
getResourceId()
Get Resource ID in the format of `creatorUin/$creatorUin/$dataKeyId`.
|
String |
getSourceHsmClusterId()
Get Synchronous original cluster.
|
String |
getSourceRegion()
Get Synchronous original region.
|
Long |
getSyncEndTime()
Get Specifies the synchronous end time.
|
String |
getSyncMessages()
Get Sresult description}.
|
Long |
getSyncStartTime()
Get Start time of synchronization.
|
Long |
getSyncStatus()
Get The state of key synchronization.
|
void |
setCreateTime(Long CreateTime)
Set Key key creation time.
|
void |
setCreatorUin(Long CreatorUin)
Set Creator.
|
void |
setDataKeyId(String DataKeyId)
Set DataKey globally unique id.
|
void |
setDataKeyName(String DataKeyName)
Set Key name as a more recognizable and understandable data key.
|
void |
setDeletionDate(Long DeletionDate)
Set The time when schedule deletion.
|
void |
setDescription(String Description)
Set DataKey description.
|
void |
setHsmClusterId(String HsmClusterId)
Set HSM cluster ID (only applicable to KMS exclusive/managed service instance).
|
void |
setIsSyncReplica(Long IsSyncReplica)
Set Whether the key is a primary replica.
|
void |
setKeyId(String KeyId)
Set Globally unique id of the CMK.
|
void |
setKeyState(String KeyState)
Set DataKey status.
|
void |
setNumberOfBytes(Long NumberOfBytes)
Set Specifies the length of the data key in bytes.
|
void |
setOrigin(String Origin)
Set Specifies the key material type of DataKey.
|
void |
setOwner(String Owner)
Set Specifies the creator of the data key.
|
void |
setResourceId(String ResourceId)
Set Resource ID in the format of `creatorUin/$creatorUin/$dataKeyId`.
|
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 Sresult description}.
|
void |
setSyncStartTime(Long SyncStartTime)
Set Start time of synchronization.
|
void |
setSyncStatus(Long SyncStatus)
Set The state of key synchronization.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DataKeyMetadata()
public DataKeyMetadata(DataKeyMetadata source)
public String getDataKeyId()
public void setDataKeyId(String DataKeyId)
DataKeyId
- DataKey globally unique id.public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- Globally unique id of the CMK.public String getDataKeyName()
public void setDataKeyName(String DataKeyName)
DataKeyName
- Key name as a more recognizable and understandable data key.public Long getNumberOfBytes()
public void setNumberOfBytes(Long NumberOfBytes)
NumberOfBytes
- Specifies the length of the data key in bytes.public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime
- Key key creation time.public String getDescription()
public void setDescription(String Description)
Description
- DataKey description.public String getKeyState()
public void setKeyState(String KeyState)
KeyState
- DataKey status. valid values: Enabled, Disabled, PendingDelete.public Long getCreatorUin()
public void setCreatorUin(Long CreatorUin)
CreatorUin
- Creator.public String getOwner()
public void setOwner(String Owner)
Owner
- Specifies the creator of the data key. valid values: user (user-created) or product name (auto-created by authorized cloud services).public Long getDeletionDate()
public void setDeletionDate(Long DeletionDate)
DeletionDate
- The time when schedule deletion.public String getOrigin()
public void setOrigin(String Origin)
Origin
- Specifies the key material type of DataKey. valid values: TENCENT_KMS (created by KMS), EXTERNAL (user import).public String getHsmClusterId()
public void setHsmClusterId(String HsmClusterId)
HsmClusterId
- HSM cluster ID (only applicable to KMS exclusive/managed service instance).public String getResourceId()
public void setResourceId(String ResourceId)
ResourceId
- Resource ID in the format of `creatorUin/$creatorUin/$dataKeyId`.public Long getIsSyncReplica()
public void setIsSyncReplica(Long IsSyncReplica)
IsSyncReplica
- Whether the key is a primary replica. valid values: `0` (primary), `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
- Sresult description}.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.