pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateUserHierarchyStructureInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn hierarchy_structure(self, input: HierarchyStructureUpdate) -> Self
pub fn hierarchy_structure(self, input: HierarchyStructureUpdate) -> Self
The hierarchy levels to update.
sourcepub fn set_hierarchy_structure(
self,
input: Option<HierarchyStructureUpdate>
) -> Self
pub fn set_hierarchy_structure(
self,
input: Option<HierarchyStructureUpdate>
) -> Self
The hierarchy levels to update.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn build(self) -> Result<UpdateUserHierarchyStructureInput, BuildError>
pub fn build(self) -> Result<UpdateUserHierarchyStructureInput, BuildError>
Consumes the builder and constructs a UpdateUserHierarchyStructureInput
.
Examples found in repository?
src/client.rs (line 19022)
19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateUserHierarchyStructure,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateUserHierarchyStructureError>,
> {
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::UpdateUserHierarchyStructureOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateUserHierarchyStructureError>,
> {
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
}