#[non_exhaustive]pub struct ContentTypeProfileConfigBuilder { /* private fields */ }
Expand description
A builder for ContentTypeProfileConfig
.
Implementations§
source§impl ContentTypeProfileConfigBuilder
impl ContentTypeProfileConfigBuilder
sourcepub fn forward_when_content_type_is_unknown(self, input: bool) -> Self
pub fn forward_when_content_type_is_unknown(self, input: bool) -> Self
The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
This field is required.sourcepub fn set_forward_when_content_type_is_unknown(
self,
input: Option<bool>
) -> Self
pub fn set_forward_when_content_type_is_unknown( self, input: Option<bool> ) -> Self
The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
sourcepub fn get_forward_when_content_type_is_unknown(&self) -> &Option<bool>
pub fn get_forward_when_content_type_is_unknown(&self) -> &Option<bool>
The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
sourcepub fn content_type_profiles(self, input: ContentTypeProfiles) -> Self
pub fn content_type_profiles(self, input: ContentTypeProfiles) -> Self
The configuration for a field-level encryption content type-profile.
sourcepub fn set_content_type_profiles(
self,
input: Option<ContentTypeProfiles>
) -> Self
pub fn set_content_type_profiles( self, input: Option<ContentTypeProfiles> ) -> Self
The configuration for a field-level encryption content type-profile.
sourcepub fn get_content_type_profiles(&self) -> &Option<ContentTypeProfiles>
pub fn get_content_type_profiles(&self) -> &Option<ContentTypeProfiles>
The configuration for a field-level encryption content type-profile.
sourcepub fn build(self) -> Result<ContentTypeProfileConfig, BuildError>
pub fn build(self) -> Result<ContentTypeProfileConfig, BuildError>
Consumes the builder and constructs a ContentTypeProfileConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContentTypeProfileConfigBuilder
impl Clone for ContentTypeProfileConfigBuilder
source§fn clone(&self) -> ContentTypeProfileConfigBuilder
fn clone(&self) -> ContentTypeProfileConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ContentTypeProfileConfigBuilder
impl Default for ContentTypeProfileConfigBuilder
source§fn default() -> ContentTypeProfileConfigBuilder
fn default() -> ContentTypeProfileConfigBuilder
source§impl PartialEq for ContentTypeProfileConfigBuilder
impl PartialEq for ContentTypeProfileConfigBuilder
source§fn eq(&self, other: &ContentTypeProfileConfigBuilder) -> bool
fn eq(&self, other: &ContentTypeProfileConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContentTypeProfileConfigBuilder
Auto Trait Implementations§
impl Freeze for ContentTypeProfileConfigBuilder
impl RefUnwindSafe for ContentTypeProfileConfigBuilder
impl Send for ContentTypeProfileConfigBuilder
impl Sync for ContentTypeProfileConfigBuilder
impl Unpin for ContentTypeProfileConfigBuilder
impl UnwindSafe for ContentTypeProfileConfigBuilder
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> 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