Struct aws_sdk_kms::operation::decrypt::builders::DecryptOutputBuilder
source · #[non_exhaustive]pub struct DecryptOutputBuilder { /* private fields */ }
Expand description
A builder for DecryptOutput
.
Implementations§
source§impl DecryptOutputBuilder
impl DecryptOutputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (key ARN) of the KMS key that was used to decrypt the ciphertext.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The Amazon Resource Name (key ARN) of the KMS key that was used to decrypt the ciphertext.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The Amazon Resource Name (key ARN) of the KMS key that was used to decrypt the ciphertext.
sourcepub fn plaintext(self, input: Blob) -> Self
pub fn plaintext(self, input: Blob) -> Self
Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
If the response includes the CiphertextForRecipient
field, the Plaintext
field is null or empty.
sourcepub fn set_plaintext(self, input: Option<Blob>) -> Self
pub fn set_plaintext(self, input: Option<Blob>) -> Self
Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
If the response includes the CiphertextForRecipient
field, the Plaintext
field is null or empty.
sourcepub fn get_plaintext(&self) -> &Option<Blob>
pub fn get_plaintext(&self) -> &Option<Blob>
Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
If the response includes the CiphertextForRecipient
field, the Plaintext
field is null or empty.
sourcepub fn encryption_algorithm(self, input: EncryptionAlgorithmSpec) -> Self
pub fn encryption_algorithm(self, input: EncryptionAlgorithmSpec) -> Self
The encryption algorithm that was used to decrypt the ciphertext.
sourcepub fn set_encryption_algorithm(
self,
input: Option<EncryptionAlgorithmSpec>
) -> Self
pub fn set_encryption_algorithm( self, input: Option<EncryptionAlgorithmSpec> ) -> Self
The encryption algorithm that was used to decrypt the ciphertext.
sourcepub fn get_encryption_algorithm(&self) -> &Option<EncryptionAlgorithmSpec>
pub fn get_encryption_algorithm(&self) -> &Option<EncryptionAlgorithmSpec>
The encryption algorithm that was used to decrypt the ciphertext.
sourcepub fn ciphertext_for_recipient(self, input: Blob) -> Self
pub fn ciphertext_for_recipient(self, input: Blob) -> Self
The plaintext data encrypted with the public key in the attestation document.
This field is included in the response only when the Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
sourcepub fn set_ciphertext_for_recipient(self, input: Option<Blob>) -> Self
pub fn set_ciphertext_for_recipient(self, input: Option<Blob>) -> Self
The plaintext data encrypted with the public key in the attestation document.
This field is included in the response only when the Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
sourcepub fn get_ciphertext_for_recipient(&self) -> &Option<Blob>
pub fn get_ciphertext_for_recipient(&self) -> &Option<Blob>
The plaintext data encrypted with the public key in the attestation document.
This field is included in the response only when the Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
sourcepub fn build(self) -> DecryptOutput
pub fn build(self) -> DecryptOutput
Consumes the builder and constructs a DecryptOutput
.
Trait Implementations§
source§impl Clone for DecryptOutputBuilder
impl Clone for DecryptOutputBuilder
source§fn clone(&self) -> DecryptOutputBuilder
fn clone(&self) -> DecryptOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DecryptOutputBuilder
impl Debug for DecryptOutputBuilder
source§impl Default for DecryptOutputBuilder
impl Default for DecryptOutputBuilder
source§fn default() -> DecryptOutputBuilder
fn default() -> DecryptOutputBuilder
source§impl PartialEq for DecryptOutputBuilder
impl PartialEq for DecryptOutputBuilder
source§fn eq(&self, other: &DecryptOutputBuilder) -> bool
fn eq(&self, other: &DecryptOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.