Struct aws_sdk_lexmodelsv2::input::StartImportInput
source · #[non_exhaustive]pub struct StartImportInput { /* private fields */ }Implementations§
source§impl StartImportInput
impl StartImportInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartImport, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartImport, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartImport>
Examples found in repository?
src/client.rs (line 7797)
7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartImport,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartImportError>,
> {
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::StartImportOutput,
aws_smithy_http::result::SdkError<crate::error::StartImportError>,
> {
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
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StartImportInput.
source§impl StartImportInput
impl StartImportInput
sourcepub fn import_id(&self) -> Option<&str>
pub fn import_id(&self) -> Option<&str>
The unique identifier for the import. It is included in the response from the CreateUploadUrl operation.
sourcepub fn resource_specification(&self) -> Option<&ImportResourceSpecification>
pub fn resource_specification(&self) -> Option<&ImportResourceSpecification>
Parameters for creating the bot, bot locale or custom vocabulary.
sourcepub fn merge_strategy(&self) -> Option<&MergeStrategy>
pub fn merge_strategy(&self) -> Option<&MergeStrategy>
The strategy to use when there is a name conflict between the imported resource and an existing resource. When the merge strategy is FailOnConflict existing resources are not overwritten and the import fails.
sourcepub fn file_password(&self) -> Option<&str>
pub fn file_password(&self) -> Option<&str>
The password used to encrypt the zip archive that contains the resource definition. You should always encrypt the zip archive to protect it during transit between your site and Amazon Lex.
Trait Implementations§
source§impl Clone for StartImportInput
impl Clone for StartImportInput
source§fn clone(&self) -> StartImportInput
fn clone(&self) -> StartImportInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more