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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeMetadataModelInput {
/// <p>A JSON string that identifies the metadata model to retrieve. For the selection rule format and examples, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/sc-selection-rules.html">Selection rules in DMS Schema Conversion</a>.</p>
/// <p>Usage:</p>
/// <ul>
/// <li>
/// <p>Accepts source or target selection rules depending on the <code>Origin</code> parameter. The <code>server-name</code> in the object locator must match the corresponding data provider.</p></li>
/// <li>
/// <p>Supports only <code>explicit</code> rule actions.</p></li>
/// <li>
/// <p>Exactly one rule is allowed.</p></li>
/// </ul>
pub selection_rules: ::std::option::Option<::std::string::String>,
/// <p>The migration project name or Amazon Resource Name (ARN).</p>
pub migration_project_identifier: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to retrieve metadata from the source or target tree. Valid values: SOURCE | TARGET</p>
pub origin: ::std::option::Option<crate::types::OriginTypeValue>,
}
impl DescribeMetadataModelInput {
/// <p>A JSON string that identifies the metadata model to retrieve. For the selection rule format and examples, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/sc-selection-rules.html">Selection rules in DMS Schema Conversion</a>.</p>
/// <p>Usage:</p>
/// <ul>
/// <li>
/// <p>Accepts source or target selection rules depending on the <code>Origin</code> parameter. The <code>server-name</code> in the object locator must match the corresponding data provider.</p></li>
/// <li>
/// <p>Supports only <code>explicit</code> rule actions.</p></li>
/// <li>
/// <p>Exactly one rule is allowed.</p></li>
/// </ul>
pub fn selection_rules(&self) -> ::std::option::Option<&str> {
self.selection_rules.as_deref()
}
/// <p>The migration project name or Amazon Resource Name (ARN).</p>
pub fn migration_project_identifier(&self) -> ::std::option::Option<&str> {
self.migration_project_identifier.as_deref()
}
/// <p>Specifies whether to retrieve metadata from the source or target tree. Valid values: SOURCE | TARGET</p>
pub fn origin(&self) -> ::std::option::Option<&crate::types::OriginTypeValue> {
self.origin.as_ref()
}
}
impl DescribeMetadataModelInput {
/// Creates a new builder-style object to manufacture [`DescribeMetadataModelInput`](crate::operation::describe_metadata_model::DescribeMetadataModelInput).
pub fn builder() -> crate::operation::describe_metadata_model::builders::DescribeMetadataModelInputBuilder {
crate::operation::describe_metadata_model::builders::DescribeMetadataModelInputBuilder::default()
}
}
/// A builder for [`DescribeMetadataModelInput`](crate::operation::describe_metadata_model::DescribeMetadataModelInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeMetadataModelInputBuilder {
pub(crate) selection_rules: ::std::option::Option<::std::string::String>,
pub(crate) migration_project_identifier: ::std::option::Option<::std::string::String>,
pub(crate) origin: ::std::option::Option<crate::types::OriginTypeValue>,
}
impl DescribeMetadataModelInputBuilder {
/// <p>A JSON string that identifies the metadata model to retrieve. For the selection rule format and examples, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/sc-selection-rules.html">Selection rules in DMS Schema Conversion</a>.</p>
/// <p>Usage:</p>
/// <ul>
/// <li>
/// <p>Accepts source or target selection rules depending on the <code>Origin</code> parameter. The <code>server-name</code> in the object locator must match the corresponding data provider.</p></li>
/// <li>
/// <p>Supports only <code>explicit</code> rule actions.</p></li>
/// <li>
/// <p>Exactly one rule is allowed.</p></li>
/// </ul>
/// This field is required.
pub fn selection_rules(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.selection_rules = ::std::option::Option::Some(input.into());
self
}
/// <p>A JSON string that identifies the metadata model to retrieve. For the selection rule format and examples, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/sc-selection-rules.html">Selection rules in DMS Schema Conversion</a>.</p>
/// <p>Usage:</p>
/// <ul>
/// <li>
/// <p>Accepts source or target selection rules depending on the <code>Origin</code> parameter. The <code>server-name</code> in the object locator must match the corresponding data provider.</p></li>
/// <li>
/// <p>Supports only <code>explicit</code> rule actions.</p></li>
/// <li>
/// <p>Exactly one rule is allowed.</p></li>
/// </ul>
pub fn set_selection_rules(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.selection_rules = input;
self
}
/// <p>A JSON string that identifies the metadata model to retrieve. For the selection rule format and examples, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/sc-selection-rules.html">Selection rules in DMS Schema Conversion</a>.</p>
/// <p>Usage:</p>
/// <ul>
/// <li>
/// <p>Accepts source or target selection rules depending on the <code>Origin</code> parameter. The <code>server-name</code> in the object locator must match the corresponding data provider.</p></li>
/// <li>
/// <p>Supports only <code>explicit</code> rule actions.</p></li>
/// <li>
/// <p>Exactly one rule is allowed.</p></li>
/// </ul>
pub fn get_selection_rules(&self) -> &::std::option::Option<::std::string::String> {
&self.selection_rules
}
/// <p>The migration project name or Amazon Resource Name (ARN).</p>
/// This field is required.
pub fn migration_project_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.migration_project_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The migration project name or Amazon Resource Name (ARN).</p>
pub fn set_migration_project_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.migration_project_identifier = input;
self
}
/// <p>The migration project name or Amazon Resource Name (ARN).</p>
pub fn get_migration_project_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.migration_project_identifier
}
/// <p>Specifies whether to retrieve metadata from the source or target tree. Valid values: SOURCE | TARGET</p>
/// This field is required.
pub fn origin(mut self, input: crate::types::OriginTypeValue) -> Self {
self.origin = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to retrieve metadata from the source or target tree. Valid values: SOURCE | TARGET</p>
pub fn set_origin(mut self, input: ::std::option::Option<crate::types::OriginTypeValue>) -> Self {
self.origin = input;
self
}
/// <p>Specifies whether to retrieve metadata from the source or target tree. Valid values: SOURCE | TARGET</p>
pub fn get_origin(&self) -> &::std::option::Option<crate::types::OriginTypeValue> {
&self.origin
}
/// Consumes the builder and constructs a [`DescribeMetadataModelInput`](crate::operation::describe_metadata_model::DescribeMetadataModelInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_metadata_model::DescribeMetadataModelInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::describe_metadata_model::DescribeMetadataModelInput {
selection_rules: self.selection_rules,
migration_project_identifier: self.migration_project_identifier,
origin: self.origin,
})
}
}