#[non_exhaustive]pub struct TestMappingInputBuilder { /* private fields */ }Expand description
A builder for TestMappingInput.
Implementations§
source§impl TestMappingInputBuilder
impl TestMappingInputBuilder
sourcepub fn input_file_content(self, input: impl Into<String>) -> Self
pub fn input_file_content(self, input: impl Into<String>) -> Self
Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform.
This field is required.sourcepub fn set_input_file_content(self, input: Option<String>) -> Self
pub fn set_input_file_content(self, input: Option<String>) -> Self
Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform.
sourcepub fn get_input_file_content(&self) -> &Option<String>
pub fn get_input_file_content(&self) -> &Option<String>
Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform.
sourcepub fn mapping_template(self, input: impl Into<String>) -> Self
pub fn mapping_template(self, input: impl Into<String>) -> Self
Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
This field is required.sourcepub fn set_mapping_template(self, input: Option<String>) -> Self
pub fn set_mapping_template(self, input: Option<String>) -> Self
Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
sourcepub fn get_mapping_template(&self) -> &Option<String>
pub fn get_mapping_template(&self) -> &Option<String>
Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
sourcepub fn file_format(self, input: FileFormat) -> Self
pub fn file_format(self, input: FileFormat) -> Self
Specifies that the currently supported file formats for EDI transformations are JSON and XML.
sourcepub fn set_file_format(self, input: Option<FileFormat>) -> Self
pub fn set_file_format(self, input: Option<FileFormat>) -> Self
Specifies that the currently supported file formats for EDI transformations are JSON and XML.
sourcepub fn get_file_format(&self) -> &Option<FileFormat>
pub fn get_file_format(&self) -> &Option<FileFormat>
Specifies that the currently supported file formats for EDI transformations are JSON and XML.
sourcepub fn build(self) -> Result<TestMappingInput, BuildError>
pub fn build(self) -> Result<TestMappingInput, BuildError>
Consumes the builder and constructs a TestMappingInput.
source§impl TestMappingInputBuilder
impl TestMappingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TestMappingOutput, SdkError<TestMappingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TestMappingOutput, SdkError<TestMappingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TestMappingInputBuilder
impl Clone for TestMappingInputBuilder
source§fn clone(&self) -> TestMappingInputBuilder
fn clone(&self) -> TestMappingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TestMappingInputBuilder
impl Debug for TestMappingInputBuilder
source§impl Default for TestMappingInputBuilder
impl Default for TestMappingInputBuilder
source§fn default() -> TestMappingInputBuilder
fn default() -> TestMappingInputBuilder
source§impl PartialEq for TestMappingInputBuilder
impl PartialEq for TestMappingInputBuilder
source§fn eq(&self, other: &TestMappingInputBuilder) -> bool
fn eq(&self, other: &TestMappingInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TestMappingInputBuilder
Auto Trait Implementations§
impl Freeze for TestMappingInputBuilder
impl RefUnwindSafe for TestMappingInputBuilder
impl Send for TestMappingInputBuilder
impl Sync for TestMappingInputBuilder
impl Unpin for TestMappingInputBuilder
impl UnwindSafe for TestMappingInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more