#[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
impl StructuralPartialEq for VerifyMacOutputBuilder
Auto Trait Implementations§
impl Freeze for VerifyMacOutputBuilder
impl RefUnwindSafe for VerifyMacOutputBuilder
impl Send for VerifyMacOutputBuilder
impl Sync for VerifyMacOutputBuilder
impl Unpin for VerifyMacOutputBuilder
impl UnwindSafe for VerifyMacOutputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more