1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An object containing <code>InputSourceARN</code> and <code>SchemaName</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct IdMappingWorkflowInputSource {
    /// <p>An Gluetable ARN for the input source table.</p>
    pub input_source_arn: ::std::string::String,
    /// <p>The name of the schema to be retrieved.</p>
    pub schema_name: ::std::string::String,
}
impl IdMappingWorkflowInputSource {
    /// <p>An Gluetable ARN for the input source table.</p>
    pub fn input_source_arn(&self) -> &str {
        use std::ops::Deref;
        self.input_source_arn.deref()
    }
    /// <p>The name of the schema to be retrieved.</p>
    pub fn schema_name(&self) -> &str {
        use std::ops::Deref;
        self.schema_name.deref()
    }
}
impl IdMappingWorkflowInputSource {
    /// Creates a new builder-style object to manufacture [`IdMappingWorkflowInputSource`](crate::types::IdMappingWorkflowInputSource).
    pub fn builder() -> crate::types::builders::IdMappingWorkflowInputSourceBuilder {
        crate::types::builders::IdMappingWorkflowInputSourceBuilder::default()
    }
}

/// A builder for [`IdMappingWorkflowInputSource`](crate::types::IdMappingWorkflowInputSource).
#[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 {
    /// <p>An Gluetable ARN for the input source table.</p>
    /// This field is required.
    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
    }
    /// <p>An Gluetable ARN for the input source table.</p>
    pub fn set_input_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.input_source_arn = input;
        self
    }
    /// <p>An Gluetable ARN for the input source table.</p>
    pub fn get_input_source_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.input_source_arn
    }
    /// <p>The name of the schema to be retrieved.</p>
    /// This field is required.
    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
    }
    /// <p>The name of the schema to be retrieved.</p>
    pub fn set_schema_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.schema_name = input;
        self
    }
    /// <p>The name of the schema to be retrieved.</p>
    pub fn get_schema_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.schema_name
    }
    /// Consumes the builder and constructs a [`IdMappingWorkflowInputSource`](crate::types::IdMappingWorkflowInputSource).
    /// This method will fail if any of the following fields are not set:
    /// - [`input_source_arn`](crate::types::builders::IdMappingWorkflowInputSourceBuilder::input_source_arn)
    /// - [`schema_name`](crate::types::builders::IdMappingWorkflowInputSourceBuilder::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",
                )
            })?,
        })
    }
}