public class CreateKeyRequest extends AbstractModel
Constructor and Description |
---|
CreateKeyRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Get Unique alias that makes a key more recognizable and understandable.
|
String |
getDescription()
Get
|
String |
getKeyUsage()
Get Key purpose.
|
Tag[] |
getTags()
Get
|
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
|
void |
setKeyUsage(String KeyUsage)
Set Key purpose.
|
void |
setTags(Tag[] Tags)
Set
|
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, toJsonString
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
- public String getKeyUsage()
public void setKeyUsage(String KeyUsage)
KeyUsage
- Key purpose. The default value is `ENCRYPT_DECRYPT` (creating a symmetric key for encryption and decryption). Other valid values include `ASYMMETRIC_DECRYPT_RSA_2048` (creating an RSA2048 asymmetric key for encryption and decryption) and `ASYMMETRIC_DECRYPT_SM2` (creating an SM2 asymmetric key for encryption and decryption).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
- Copyright © 2020. All rights reserved.