aws_sdk_b2bi/client/
generate_mapping.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GenerateMapping`](crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`input_file_content(impl Into<String>)`](crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder::input_file_content) / [`set_input_file_content(Option<String>)`](crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder::set_input_file_content):<br>required: **true**<br><p>Provide the contents of a sample X12 EDI file, either in JSON or XML format, to use as a starting point for the mapping.</p><br>
7    ///   - [`output_file_content(impl Into<String>)`](crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder::output_file_content) / [`set_output_file_content(Option<String>)`](crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder::set_output_file_content):<br>required: **true**<br><p>Provide the contents of a sample X12 EDI file, either in JSON or XML format, to use as a target for the mapping.</p><br>
8    ///   - [`mapping_type(MappingType)`](crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder::mapping_type) / [`set_mapping_type(Option<MappingType>)`](crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder::set_mapping_type):<br>required: **true**<br><p>Specify the mapping type: either <code>JSONATA</code> or <code>XSLT.</code></p><br>
9    /// - On success, responds with [`GenerateMappingOutput`](crate::operation::generate_mapping::GenerateMappingOutput) with field(s):
10    ///   - [`mapping_template(String)`](crate::operation::generate_mapping::GenerateMappingOutput::mapping_template): <p>Returns a mapping template based on your inputs.</p>
11    ///   - [`mapping_accuracy(Option<f32>)`](crate::operation::generate_mapping::GenerateMappingOutput::mapping_accuracy): <p>Returns a percentage that estimates the accuracy of the generated mapping.</p>
12    /// - On failure, responds with [`SdkError<GenerateMappingError>`](crate::operation::generate_mapping::GenerateMappingError)
13    pub fn generate_mapping(&self) -> crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder {
14        crate::operation::generate_mapping::builders::GenerateMappingFluentBuilder::new(self.handle.clone())
15    }
16}