Struct aws_sdk_paymentcryptographydata::types::builders::SymmetricEncryptionAttributesBuilder
source · #[non_exhaustive]pub struct SymmetricEncryptionAttributesBuilder { /* private fields */ }
Expand description
A builder for SymmetricEncryptionAttributes
.
Implementations§
source§impl SymmetricEncryptionAttributesBuilder
impl SymmetricEncryptionAttributesBuilder
sourcepub fn mode(self, input: EncryptionMode) -> Self
pub fn mode(self, input: EncryptionMode) -> Self
The block cipher method to use for encryption.
This field is required.sourcepub fn set_mode(self, input: Option<EncryptionMode>) -> Self
pub fn set_mode(self, input: Option<EncryptionMode>) -> Self
The block cipher method to use for encryption.
sourcepub fn get_mode(&self) -> &Option<EncryptionMode>
pub fn get_mode(&self) -> &Option<EncryptionMode>
The block cipher method to use for encryption.
sourcepub fn initialization_vector(self, input: impl Into<String>) -> Self
pub fn initialization_vector(self, input: impl Into<String>) -> Self
An input used to provide the intial state. If no value is provided, Amazon Web Services Payment Cryptography defaults it to zero.
sourcepub fn set_initialization_vector(self, input: Option<String>) -> Self
pub fn set_initialization_vector(self, input: Option<String>) -> Self
An input used to provide the intial state. If no value is provided, Amazon Web Services Payment Cryptography defaults it to zero.
sourcepub fn get_initialization_vector(&self) -> &Option<String>
pub fn get_initialization_vector(&self) -> &Option<String>
An input used to provide the intial state. If no value is provided, Amazon Web Services Payment Cryptography defaults it to zero.
sourcepub fn padding_type(self, input: PaddingType) -> Self
pub fn padding_type(self, input: PaddingType) -> Self
The padding to be included with the data.
sourcepub fn set_padding_type(self, input: Option<PaddingType>) -> Self
pub fn set_padding_type(self, input: Option<PaddingType>) -> Self
The padding to be included with the data.
sourcepub fn get_padding_type(&self) -> &Option<PaddingType>
pub fn get_padding_type(&self) -> &Option<PaddingType>
The padding to be included with the data.
sourcepub fn build(self) -> Result<SymmetricEncryptionAttributes, BuildError>
pub fn build(self) -> Result<SymmetricEncryptionAttributes, BuildError>
Consumes the builder and constructs a SymmetricEncryptionAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SymmetricEncryptionAttributesBuilder
impl Clone for SymmetricEncryptionAttributesBuilder
source§fn clone(&self) -> SymmetricEncryptionAttributesBuilder
fn clone(&self) -> SymmetricEncryptionAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SymmetricEncryptionAttributesBuilder
impl Default for SymmetricEncryptionAttributesBuilder
source§fn default() -> SymmetricEncryptionAttributesBuilder
fn default() -> SymmetricEncryptionAttributesBuilder
source§impl PartialEq for SymmetricEncryptionAttributesBuilder
impl PartialEq for SymmetricEncryptionAttributesBuilder
source§fn eq(&self, other: &SymmetricEncryptionAttributesBuilder) -> bool
fn eq(&self, other: &SymmetricEncryptionAttributesBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SymmetricEncryptionAttributesBuilder
Auto Trait Implementations§
impl Freeze for SymmetricEncryptionAttributesBuilder
impl RefUnwindSafe for SymmetricEncryptionAttributesBuilder
impl Send for SymmetricEncryptionAttributesBuilder
impl Sync for SymmetricEncryptionAttributesBuilder
impl Unpin for SymmetricEncryptionAttributesBuilder
impl UnwindSafe for SymmetricEncryptionAttributesBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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