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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// 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 CreateListingChangeSetInput {
    /// <p></p>
    pub domain_identifier: ::std::option::Option<::std::string::String>,
    /// <p></p>
    pub entity_identifier: ::std::option::Option<::std::string::String>,
    /// <p></p>
    pub entity_type: ::std::option::Option<crate::types::EntityType>,
    /// <p></p>
    pub entity_revision: ::std::option::Option<::std::string::String>,
    /// <p></p>
    pub action: ::std::option::Option<crate::types::ChangeAction>,
    /// <p></p>
    pub client_token: ::std::option::Option<::std::string::String>,
}
impl CreateListingChangeSetInput {
    /// <p></p>
    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
        self.domain_identifier.as_deref()
    }
    /// <p></p>
    pub fn entity_identifier(&self) -> ::std::option::Option<&str> {
        self.entity_identifier.as_deref()
    }
    /// <p></p>
    pub fn entity_type(&self) -> ::std::option::Option<&crate::types::EntityType> {
        self.entity_type.as_ref()
    }
    /// <p></p>
    pub fn entity_revision(&self) -> ::std::option::Option<&str> {
        self.entity_revision.as_deref()
    }
    /// <p></p>
    pub fn action(&self) -> ::std::option::Option<&crate::types::ChangeAction> {
        self.action.as_ref()
    }
    /// <p></p>
    pub fn client_token(&self) -> ::std::option::Option<&str> {
        self.client_token.as_deref()
    }
}
impl CreateListingChangeSetInput {
    /// Creates a new builder-style object to manufacture [`CreateListingChangeSetInput`](crate::operation::create_listing_change_set::CreateListingChangeSetInput).
    pub fn builder() -> crate::operation::create_listing_change_set::builders::CreateListingChangeSetInputBuilder {
        crate::operation::create_listing_change_set::builders::CreateListingChangeSetInputBuilder::default()
    }
}

/// A builder for [`CreateListingChangeSetInput`](crate::operation::create_listing_change_set::CreateListingChangeSetInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateListingChangeSetInputBuilder {
    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) entity_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) entity_type: ::std::option::Option<crate::types::EntityType>,
    pub(crate) entity_revision: ::std::option::Option<::std::string::String>,
    pub(crate) action: ::std::option::Option<crate::types::ChangeAction>,
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl CreateListingChangeSetInputBuilder {
    /// <p></p>
    /// This field is required.
    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p></p>
    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_identifier = input;
        self
    }
    /// <p></p>
    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_identifier
    }
    /// <p></p>
    /// This field is required.
    pub fn entity_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.entity_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p></p>
    pub fn set_entity_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.entity_identifier = input;
        self
    }
    /// <p></p>
    pub fn get_entity_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.entity_identifier
    }
    /// <p></p>
    /// This field is required.
    pub fn entity_type(mut self, input: crate::types::EntityType) -> Self {
        self.entity_type = ::std::option::Option::Some(input);
        self
    }
    /// <p></p>
    pub fn set_entity_type(mut self, input: ::std::option::Option<crate::types::EntityType>) -> Self {
        self.entity_type = input;
        self
    }
    /// <p></p>
    pub fn get_entity_type(&self) -> &::std::option::Option<crate::types::EntityType> {
        &self.entity_type
    }
    /// <p></p>
    pub fn entity_revision(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.entity_revision = ::std::option::Option::Some(input.into());
        self
    }
    /// <p></p>
    pub fn set_entity_revision(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.entity_revision = input;
        self
    }
    /// <p></p>
    pub fn get_entity_revision(&self) -> &::std::option::Option<::std::string::String> {
        &self.entity_revision
    }
    /// <p></p>
    /// This field is required.
    pub fn action(mut self, input: crate::types::ChangeAction) -> Self {
        self.action = ::std::option::Option::Some(input);
        self
    }
    /// <p></p>
    pub fn set_action(mut self, input: ::std::option::Option<crate::types::ChangeAction>) -> Self {
        self.action = input;
        self
    }
    /// <p></p>
    pub fn get_action(&self) -> &::std::option::Option<crate::types::ChangeAction> {
        &self.action
    }
    /// <p></p>
    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p></p>
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_token = input;
        self
    }
    /// <p></p>
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_token
    }
    /// Consumes the builder and constructs a [`CreateListingChangeSetInput`](crate::operation::create_listing_change_set::CreateListingChangeSetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::create_listing_change_set::CreateListingChangeSetInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::create_listing_change_set::CreateListingChangeSetInput {
            domain_identifier: self.domain_identifier,
            entity_identifier: self.entity_identifier,
            entity_type: self.entity_type,
            entity_revision: self.entity_revision,
            action: self.action,
            client_token: self.client_token,
        })
    }
}