public class GenerateDataKeyRequest extends AbstractModel
Constructor and Description |
---|
GenerateDataKeyRequest() |
GenerateDataKeyRequest(GenerateDataKeyRequest 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 |
getEncryptionContext()
Get JSON string of key-value pair.
|
String |
getKeyId()
Get Globally unique CMK ID
|
String |
getKeySpec()
Get Specifies the encryption algorithm and size of the `DataKey`.
|
Long |
getNumberOfBytes()
Get Length of the `DataKey`.
|
void |
setEncryptionContext(String EncryptionContext)
Set JSON string of key-value pair.
|
void |
setKeyId(String KeyId)
Set Globally unique CMK ID
|
void |
setKeySpec(String KeySpec)
Set Specifies the encryption algorithm and size of the `DataKey`.
|
void |
setNumberOfBytes(Long NumberOfBytes)
Set Length of the `DataKey`.
|
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 GenerateDataKeyRequest()
public GenerateDataKeyRequest(GenerateDataKeyRequest source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- Globally unique CMK IDpublic String getKeySpec()
public void setKeySpec(String KeySpec)
KeySpec
- Specifies the encryption algorithm and size of the `DataKey`. Valid values: AES_128, AES_256. Either `KeySpec` or `NumberOfBytes` must be specified.public Long getNumberOfBytes()
public void setNumberOfBytes(Long NumberOfBytes)
NumberOfBytes
- Length of the `DataKey`. If both `NumberOfBytes` and `KeySpec` are specified, `NumberOfBytes` will prevail. Minimum value: 1; maximum value: 1024. Either `KeySpec` or `NumberOfBytes` must be specified.public String getEncryptionContext()
public void setEncryptionContext(String EncryptionContext)
EncryptionContext
- JSON string of key-value pair. If this field is used, the same string should be entered when the returned `DataKey` is decrypted.Copyright © 2021. All rights reserved.