public class CreateKeyRequest extends AbstractModel
| Constructor and Description | 
|---|
| CreateKeyRequest() | 
| CreateKeyRequest(CreateKeyRequest 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 Unique alias that makes a key more recognizable and understandable. | 
| String | getDescription()Get CMK description of up to 1,024 bytes in length | 
| String | getHsmClusterId()Get ID of the HSM cluster. | 
| String | getKeyUsage()Get Defines the purpose of the key. | 
| Tag[] | getTags()Get Tag list | 
| Long | getType()Get Specifies the key type. | 
| void | setAlias(String Alias)Set Unique alias that makes a key more recognizable and understandable. | 
| void | setDescription(String Description)Set CMK description of up to 1,024 bytes in length | 
| void | setHsmClusterId(String HsmClusterId)Set ID of the HSM cluster. | 
| void | setKeyUsage(String KeyUsage)Set Defines the purpose of the key. | 
| void | setTags(Tag[] Tags)Set Tag list | 
| void | setType(Long Type)Set Specifies the key type. | 
| 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 CreateKeyRequest()
public CreateKeyRequest(CreateKeyRequest source)
public String getAlias()
public void setAlias(String Alias)
Alias - Unique alias that makes a key more recognizable and understandable. This parameter cannot be empty, can contain 1-60 letters, digits, `-`, and `_`, and must begin with a letter or digit. The `kms-` prefix is used for Tencent Cloud products.public String getDescription()
public void setDescription(String Description)
Description - CMK description of up to 1,024 bytes in lengthpublic String getKeyUsage()
public void setKeyUsage(String KeyUsage)
KeyUsage - Defines the purpose of the key. The valid values are as follows: `ENCRYPT_DECRYPT` (default): creates a symmetric encryption/decryption key; `ASYMMETRIC_DECRYPT_RSA_2048`: creates an asymmetric encryption/decryption 2048-bit RSA key; `ASYMMETRIC_DECRYPT_SM2`: creates an asymmetric encryption/decryption SM2 key; `ASYMMETRIC_SIGN_VERIFY_SM2`: creates an asymmetric SM2 key for signature verification; `ASYMMETRIC_SIGN_VERIFY_ECC`: creates an asymmetric 2048-bit RSA key for signature verification; `ASYMMETRIC_SIGN_VERIFY_ECDSA384`: creates an asymmetric ECDSA384 key for signature verification. You can get a full list of supported key purposes and algorithms using the ListAlgorithms API.public Long getType()
public void setType(Long Type)
Type - Specifies the key type. Default value: 1. Valid value: 1 - default type, indicating that the CMK is created by KMS; 2 - EXTERNAL type, indicating that you need to import key material. For more information, please see the `GetParametersForImport` and `ImportKeyMaterial` API documents.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - Tag listpublic String getHsmClusterId()
public void setHsmClusterId(String HsmClusterId)
HsmClusterId - ID of the HSM cluster. This field is only valid for Exclusive and Managed KMS instances.Copyright © 2022. All rights reserved.