public class KeyMetadata extends AbstractModel
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 Scheduled deletion time
|
String |
getDescription()
Get CMK description
|
String |
getHsmClusterId()
Get ID of the HSM cluster.
|
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 |
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 |
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 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 Scheduled deletion time
|
void |
setDescription(String Description)
Set CMK description
|
void |
setHsmClusterId(String HsmClusterId)
Set ID of the HSM cluster.
|
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 |
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 |
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, toJsonString
public 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
- Scheduled deletion timepublic 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`.public String getHsmClusterId()
public void setHsmClusterId(String HsmClusterId)
HsmClusterId
- ID of the HSM cluster. This field is only valid for Exclusive and Managed KMS instances.
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2023. All rights reserved.