#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct IdMappingWorkflowInputSource {
pub input_source_arn: ::std::string::String,
pub schema_name: ::std::string::String,
}
impl IdMappingWorkflowInputSource {
pub fn input_source_arn(&self) -> &str {
use std::ops::Deref;
self.input_source_arn.deref()
}
pub fn schema_name(&self) -> &str {
use std::ops::Deref;
self.schema_name.deref()
}
}
impl IdMappingWorkflowInputSource {
pub fn builder() -> crate::types::builders::IdMappingWorkflowInputSourceBuilder {
crate::types::builders::IdMappingWorkflowInputSourceBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct IdMappingWorkflowInputSourceBuilder {
pub(crate) input_source_arn: ::std::option::Option<::std::string::String>,
pub(crate) schema_name: ::std::option::Option<::std::string::String>,
}
impl IdMappingWorkflowInputSourceBuilder {
pub fn input_source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.input_source_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_input_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.input_source_arn = input;
self
}
pub fn get_input_source_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.input_source_arn
}
pub fn schema_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schema_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_schema_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schema_name = input;
self
}
pub fn get_schema_name(&self) -> &::std::option::Option<::std::string::String> {
&self.schema_name
}
pub fn build(self) -> ::std::result::Result<crate::types::IdMappingWorkflowInputSource, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::IdMappingWorkflowInputSource {
input_source_arn: self.input_source_arn.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"input_source_arn",
"input_source_arn was not specified but it is required when building IdMappingWorkflowInputSource",
)
})?,
schema_name: self.schema_name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"schema_name",
"schema_name was not specified but it is required when building IdMappingWorkflowInputSource",
)
})?,
})
}
}