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
// 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>The JSON string that specifies which metadata model to retrieve. Only one selection rule with "rule-action": "explicit" can be provided. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.Selections.html">Selection Rules</a> in the DMS User Guide.</p>
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>The JSON string that specifies which metadata model to retrieve. Only one selection rule with "rule-action": "explicit" can be provided. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.Selections.html">Selection Rules</a> in the DMS User Guide.</p>
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>The JSON string that specifies which metadata model to retrieve. Only one selection rule with "rule-action": "explicit" can be provided. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.Selections.html">Selection Rules</a> in the DMS User Guide.</p>
/// 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>The JSON string that specifies which metadata model to retrieve. Only one selection rule with "rule-action": "explicit" can be provided. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.Selections.html">Selection Rules</a> in the DMS User Guide.</p>
pub fn set_selection_rules(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.selection_rules = input;
self
}
/// <p>The JSON string that specifies which metadata model to retrieve. Only one selection rule with "rule-action": "explicit" can be provided. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.Selections.html">Selection Rules</a> in the DMS User Guide.</p>
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,
})
}
}