public class ImportDataKeyRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ImportDataKeyRequest() |
ImportDataKeyRequest(ImportDataKeyRequest 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 |
getDataKeyName()
Get Name of the data key.
|
String |
getDescription()
Get Describes the data key.
|
String |
getHsmClusterId()
Get HSM cluster ID corresponding to the KMS exclusive edition.
|
String |
getImportKeyMaterial()
Get If the imported key is plaintext data key, it is the base64 plaintext data key after conversion.
|
Long |
getImportType()
Get 1: ciphertext import (data key generated by KMS api) 2: plaintext import.
|
String |
getKeyId()
Get When importing an encrypted data key, no need to input the root key.
|
void |
setDataKeyName(String DataKeyName)
Set Name of the data key.
|
void |
setDescription(String Description)
Set Describes the data key.
|
void |
setHsmClusterId(String HsmClusterId)
Set HSM cluster ID corresponding to the KMS exclusive edition.
|
void |
setImportKeyMaterial(String ImportKeyMaterial)
Set If the imported key is plaintext data key, it is the base64 plaintext data key after conversion.
|
void |
setImportType(Long ImportType)
Set 1: ciphertext import (data key generated by KMS api) 2: plaintext import.
|
void |
setKeyId(String KeyId)
Set When importing an encrypted data key, no need to input the root key.
|
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, toJsonString
public ImportDataKeyRequest()
public ImportDataKeyRequest(ImportDataKeyRequest source)
public String getDataKeyName()
public void setDataKeyName(String DataKeyName)
DataKeyName
- Name of the data key.public String getImportKeyMaterial()
public void setImportKeyMaterial(String ImportKeyMaterial)
ImportKeyMaterial
- If the imported key is plaintext data key, it is the base64 plaintext data key after conversion. if the imported key is ciphertext data key, it is the ciphertext data key generated by the KMS GenerateDataKey interface.public Long getImportType()
public void setImportType(Long ImportType)
ImportType
- 1: ciphertext import (data key generated by KMS api) 2: plaintext import.public String getDescription()
public void setDescription(String Description)
Description
- Describes the data key. maximum 100 bytes.public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- When importing an encrypted data key, no need to input the root key. if the input is provided, validate whether the KeyId matches the one in the ciphertext.
When importing plaintext data key, KeyId cannot be empty. the data key is encrypted with the specified root key.public String getHsmClusterId()
public void setHsmClusterId(String HsmClusterId)
HsmClusterId
- HSM cluster ID corresponding to the KMS exclusive edition. if HsmClusterId is specified, it indicates the root key is in this cluster and verifies whether KeyId corresponds to HsmClusterId.Copyright © 2025. All rights reserved.