pub struct Builder { /* private fields */ }Expand description
A builder for UpdateFieldLevelEncryptionProfileInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn field_level_encryption_profile_config(
self,
input: FieldLevelEncryptionProfileConfig
) -> Self
pub fn field_level_encryption_profile_config(
self,
input: FieldLevelEncryptionProfileConfig
) -> Self
Request to update a field-level encryption profile.
sourcepub fn set_field_level_encryption_profile_config(
self,
input: Option<FieldLevelEncryptionProfileConfig>
) -> Self
pub fn set_field_level_encryption_profile_config(
self,
input: Option<FieldLevelEncryptionProfileConfig>
) -> Self
Request to update a field-level encryption profile.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the field-level encryption profile request.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the field-level encryption profile request.
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 profile 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 profile identity to update. For example: E2QWRUHAPOMQZL.
sourcepub fn build(self) -> Result<UpdateFieldLevelEncryptionProfileInput, BuildError>
pub fn build(self) -> Result<UpdateFieldLevelEncryptionProfileInput, BuildError>
Consumes the builder and constructs a UpdateFieldLevelEncryptionProfileInput.
Examples found in repository?
src/client.rs (line 8982)
8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateFieldLevelEncryptionProfile,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateFieldLevelEncryptionProfileError>,
> {
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::UpdateFieldLevelEncryptionProfileOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateFieldLevelEncryptionProfileError>,
> {
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
}