pub struct Builder { /* private fields */ }Expand description
A builder for GetFieldLevelEncryptionOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn field_level_encryption(self, input: FieldLevelEncryption) -> Self
pub fn field_level_encryption(self, input: FieldLevelEncryption) -> Self
Return the field-level encryption configuration information.
sourcepub fn set_field_level_encryption(
self,
input: Option<FieldLevelEncryption>
) -> Self
pub fn set_field_level_encryption(
self,
input: Option<FieldLevelEncryption>
) -> Self
Return the field-level encryption configuration information.
Examples found in repository?
src/operation_deser.rs (lines 6702-6704)
6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707
pub fn parse_get_field_level_encryption_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetFieldLevelEncryptionOutput,
crate::error::GetFieldLevelEncryptionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_field_level_encryption_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_get_field_level_encryption_get_field_level_encryption_output_e_tag(response.headers())
.map_err(|_|crate::error::GetFieldLevelEncryptionError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_field_level_encryption(
crate::http_serde::deser_payload_get_field_level_encryption_get_field_level_encryption_output_field_level_encryption(response.body().as_ref())?
);
output.build()
})
}sourcepub fn e_tag(self, input: impl Into<String>) -> Self
pub fn e_tag(self, input: impl Into<String>) -> Self
The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
sourcepub fn set_e_tag(self, input: Option<String>) -> Self
pub fn set_e_tag(self, input: Option<String>) -> Self
The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
Examples found in repository?
src/operation_deser.rs (lines 6698-6701)
6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707
pub fn parse_get_field_level_encryption_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetFieldLevelEncryptionOutput,
crate::error::GetFieldLevelEncryptionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_field_level_encryption_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_get_field_level_encryption_get_field_level_encryption_output_e_tag(response.headers())
.map_err(|_|crate::error::GetFieldLevelEncryptionError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_field_level_encryption(
crate::http_serde::deser_payload_get_field_level_encryption_get_field_level_encryption_output_field_level_encryption(response.body().as_ref())?
);
output.build()
})
}sourcepub fn build(self) -> GetFieldLevelEncryptionOutput
pub fn build(self) -> GetFieldLevelEncryptionOutput
Consumes the builder and constructs a GetFieldLevelEncryptionOutput.
Examples found in repository?
src/operation_deser.rs (line 6705)
6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707
pub fn parse_get_field_level_encryption_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetFieldLevelEncryptionOutput,
crate::error::GetFieldLevelEncryptionError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_field_level_encryption_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_get_field_level_encryption_get_field_level_encryption_output_e_tag(response.headers())
.map_err(|_|crate::error::GetFieldLevelEncryptionError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_field_level_encryption(
crate::http_serde::deser_payload_get_field_level_encryption_get_field_level_encryption_output_field_level_encryption(response.body().as_ref())?
);
output.build()
})
}