#[non_exhaustive]pub struct GenerateRandomOutputBuilder { /* private fields */ }
Expand description
A builder for GenerateRandomOutput
.
Implementations§
source§impl GenerateRandomOutputBuilder
impl GenerateRandomOutputBuilder
sourcepub fn plaintext(self, input: Blob) -> Self
pub fn plaintext(self, input: Blob) -> Self
The random byte string. 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
The random byte string. 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>
The random byte string. 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 ciphertext_for_recipient(self, input: Blob) -> Self
pub fn ciphertext_for_recipient(self, input: Blob) -> Self
The plaintext random bytes encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted only by using a private key in the Nitro enclave.
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 random bytes encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted only by using a private key in the Nitro enclave.
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 random bytes encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted only by using a private key in the Nitro enclave.
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) -> GenerateRandomOutput
pub fn build(self) -> GenerateRandomOutput
Consumes the builder and constructs a GenerateRandomOutput
.
Trait Implementations§
source§impl Clone for GenerateRandomOutputBuilder
impl Clone for GenerateRandomOutputBuilder
source§fn clone(&self) -> GenerateRandomOutputBuilder
fn clone(&self) -> GenerateRandomOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateRandomOutputBuilder
impl Debug for GenerateRandomOutputBuilder
source§impl Default for GenerateRandomOutputBuilder
impl Default for GenerateRandomOutputBuilder
source§fn default() -> GenerateRandomOutputBuilder
fn default() -> GenerateRandomOutputBuilder
source§impl PartialEq for GenerateRandomOutputBuilder
impl PartialEq for GenerateRandomOutputBuilder
source§fn eq(&self, other: &GenerateRandomOutputBuilder) -> bool
fn eq(&self, other: &GenerateRandomOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.