Struct aws_sdk_kms::operation::verify_mac::builders::VerifyMacOutputBuilder
source · #[non_exhaustive]pub struct VerifyMacOutputBuilder { /* private fields */ }
Expand description
A builder for VerifyMacOutput
.
Implementations§
source§impl VerifyMacOutputBuilder
impl VerifyMacOutputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The HMAC KMS key used in the verification.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The HMAC KMS key used in the verification.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The HMAC KMS key used in the verification.
sourcepub fn mac_valid(self, input: bool) -> Self
pub fn mac_valid(self, input: bool) -> Self
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed since the HMAC was computed.
sourcepub fn set_mac_valid(self, input: Option<bool>) -> Self
pub fn set_mac_valid(self, input: Option<bool>) -> Self
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed since the HMAC was computed.
sourcepub fn get_mac_valid(&self) -> &Option<bool>
pub fn get_mac_valid(&self) -> &Option<bool>
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed since the HMAC was computed.
sourcepub fn mac_algorithm(self, input: MacAlgorithmSpec) -> Self
pub fn mac_algorithm(self, input: MacAlgorithmSpec) -> Self
The MAC algorithm used in the verification.
sourcepub fn set_mac_algorithm(self, input: Option<MacAlgorithmSpec>) -> Self
pub fn set_mac_algorithm(self, input: Option<MacAlgorithmSpec>) -> Self
The MAC algorithm used in the verification.
sourcepub fn get_mac_algorithm(&self) -> &Option<MacAlgorithmSpec>
pub fn get_mac_algorithm(&self) -> &Option<MacAlgorithmSpec>
The MAC algorithm used in the verification.
sourcepub fn build(self) -> VerifyMacOutput
pub fn build(self) -> VerifyMacOutput
Consumes the builder and constructs a VerifyMacOutput
.
Trait Implementations§
source§impl Clone for VerifyMacOutputBuilder
impl Clone for VerifyMacOutputBuilder
source§fn clone(&self) -> VerifyMacOutputBuilder
fn clone(&self) -> VerifyMacOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VerifyMacOutputBuilder
impl Debug for VerifyMacOutputBuilder
source§impl Default for VerifyMacOutputBuilder
impl Default for VerifyMacOutputBuilder
source§fn default() -> VerifyMacOutputBuilder
fn default() -> VerifyMacOutputBuilder
source§impl PartialEq for VerifyMacOutputBuilder
impl PartialEq for VerifyMacOutputBuilder
source§fn eq(&self, other: &VerifyMacOutputBuilder) -> bool
fn eq(&self, other: &VerifyMacOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.