pub struct Builder { /* private fields */ }Expand description
A builder for UpdateFieldLevelEncryptionConfigInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn field_level_encryption_config(
self,
input: FieldLevelEncryptionConfig
) -> Self
pub fn field_level_encryption_config(
self,
input: FieldLevelEncryptionConfig
) -> Self
Request to update a field-level encryption configuration.
sourcepub fn set_field_level_encryption_config(
self,
input: Option<FieldLevelEncryptionConfig>
) -> Self
pub fn set_field_level_encryption_config(
self,
input: Option<FieldLevelEncryptionConfig>
) -> Self
Request to update a field-level encryption configuration.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the configuration you want to update.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the configuration you want to update.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The value of the ETag header that you received when retrieving the configuration identity to update. For example: E2QWRUHAPOMQZL.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The value of the ETag header that you received when retrieving the configuration identity to update. For example: E2QWRUHAPOMQZL.
sourcepub fn build(self) -> Result<UpdateFieldLevelEncryptionConfigInput, BuildError>
pub fn build(self) -> Result<UpdateFieldLevelEncryptionConfigInput, BuildError>
Consumes the builder and constructs a UpdateFieldLevelEncryptionConfigInput.
Examples found in repository?
src/client.rs (line 8883)
8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateFieldLevelEncryptionConfig,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateFieldLevelEncryptionConfigError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateFieldLevelEncryptionConfigOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateFieldLevelEncryptionConfigError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}