1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
4 7 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5 - | pub struct SparseNullsOperationInput {
|
8 + | pub /* StructureGenerator.kt:201 */ struct SparseNullsOperationInput {
|
9 + | /* StructureGenerator.kt:231 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
7 11 | pub sparse_string_list: ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
12 + | /* StructureGenerator.kt:231 */
|
8 13 | #[allow(missing_docs)] // documentation missing in model
|
9 14 | pub sparse_string_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>>,
|
15 + | /* StructureGenerator.kt:201 */
|
10 16 | }
|
17 + | /* StructureGenerator.kt:135 */
|
11 18 | impl SparseNullsOperationInput {
|
19 + | /* StructureGenerator.kt:231 */
|
12 20 | #[allow(missing_docs)] // documentation missing in model
|
13 - | ///
|
14 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.sparse_string_list.is_none()`.
|
21 + | /// /* StructureGenerator.kt:162 */
|
22 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.sparse_string_list.is_none()`.
|
23 + | /* StructureGenerator.kt:166 */
|
15 24 | pub fn sparse_string_list(&self) -> &[::std::option::Option<::std::string::String>] {
|
16 - | self.sparse_string_list.as_deref().unwrap_or_default()
|
25 + | /* StructureGenerator.kt:169 */
|
26 + | self.sparse_string_list
|
27 + | .as_deref()
|
28 + | /* StructureGenerator.kt:175 */
|
29 + | .unwrap_or_default()
|
30 + | /* StructureGenerator.kt:166 */
|
17 31 | }
|
32 + | /* StructureGenerator.kt:231 */
|
18 33 | #[allow(missing_docs)] // documentation missing in model
|
34 + | /* StructureGenerator.kt:166 */
|
19 35 | pub fn sparse_string_map(
|
20 36 | &self,
|
21 37 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>> {
|
38 + | /* StructureGenerator.kt:170 */
|
22 39 | self.sparse_string_map.as_ref()
|
40 + | /* StructureGenerator.kt:166 */
|
23 41 | }
|
42 + | /* StructureGenerator.kt:135 */
|
24 43 | }
|
44 + | /* ClientCodegenVisitor.kt:237 */
|
25 45 | impl SparseNullsOperationInput {
|
26 - | /// Creates a new builder-style object to manufacture [`SparseNullsOperationInput`](crate::operation::sparse_nulls_operation::SparseNullsOperationInput).
|
46 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SparseNullsOperationInput`](crate::operation::sparse_nulls_operation::SparseNullsOperationInput).
|
47 + | /* BuilderGenerator.kt:175 */
|
27 48 | pub fn builder() -> crate::operation::sparse_nulls_operation::builders::SparseNullsOperationInputBuilder {
|
49 + | /* BuilderGenerator.kt:176 */
|
28 50 | crate::operation::sparse_nulls_operation::builders::SparseNullsOperationInputBuilder::default()
|
51 + | /* BuilderGenerator.kt:175 */
|
29 52 | }
|
53 + | /* ClientCodegenVisitor.kt:237 */
|
30 54 | }
|
31 55 |
|
32 - | /// A builder for [`SparseNullsOperationInput`](crate::operation::sparse_nulls_operation::SparseNullsOperationInput).
|
56 + | /// /* BuilderGenerator.kt:342 */A builder for [`SparseNullsOperationInput`](crate::operation::sparse_nulls_operation::SparseNullsOperationInput).
|
57 + | /* RustType.kt:516 */
|
33 58 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
59 + | /* RustType.kt:516 */
|
34 60 | #[non_exhaustive]
|
61 + | /* BuilderGenerator.kt:345 */
|
35 62 | pub struct SparseNullsOperationInputBuilder {
|
63 + | /* BuilderGenerator.kt:275 */
|
36 64 | pub(crate) sparse_string_list: ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
65 + | /* BuilderGenerator.kt:275 */
|
37 66 | pub(crate) sparse_string_map:
|
38 67 | ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>>,
|
68 + | /* BuilderGenerator.kt:345 */
|
39 69 | }
|
70 + | /* BuilderGenerator.kt:355 */
|
40 71 | impl SparseNullsOperationInputBuilder {
|
41 - | /// Appends an item to `sparse_string_list`.
|
72 + | /// /* BuilderGenerator.kt:410 */Appends an item to `sparse_string_list`.
|
73 + | /* BuilderGenerator.kt:411 */
|
42 74 | ///
|
43 - | /// To override the contents of this collection use [`set_sparse_string_list`](Self::set_sparse_string_list).
|
75 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_sparse_string_list`](Self::set_sparse_string_list).
|
76 + | /* BuilderGenerator.kt:413 */
|
44 77 | ///
|
78 + | /* BuilderGenerator.kt:418 */
|
45 79 | pub fn sparse_string_list(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
80 + | /* BuilderGenerator.kt:419 */
|
46 81 | let mut v = self.sparse_string_list.unwrap_or_default();
|
47 82 | v.push(input);
|
48 83 | self.sparse_string_list = ::std::option::Option::Some(v);
|
49 84 | self
|
85 + | /* BuilderGenerator.kt:418 */
|
50 86 | }
|
87 + | /* BuilderGenerator.kt:312 */
|
51 88 | #[allow(missing_docs)] // documentation missing in model
|
89 + | /* BuilderGenerator.kt:314 */
|
52 90 | pub fn set_sparse_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>) -> Self {
|
91 + | /* BuilderGenerator.kt:315 */
|
53 92 | self.sparse_string_list = input;
|
54 93 | self
|
94 + | /* BuilderGenerator.kt:314 */
|
55 95 | }
|
96 + | /* BuilderGenerator.kt:334 */
|
56 97 | #[allow(missing_docs)] // documentation missing in model
|
98 + | /* BuilderGenerator.kt:336 */
|
57 99 | pub fn get_sparse_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>> {
|
100 + | /* BuilderGenerator.kt:337 */
|
58 101 | &self.sparse_string_list
|
102 + | /* BuilderGenerator.kt:336 */
|
59 103 | }
|
60 - | /// Adds a key-value pair to `sparse_string_map`.
|
104 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `sparse_string_map`.
|
105 + | /* BuilderGenerator.kt:437 */
|
61 106 | ///
|
62 - | /// To override the contents of this collection use [`set_sparse_string_map`](Self::set_sparse_string_map).
|
107 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_sparse_string_map`](Self::set_sparse_string_map).
|
108 + | /* BuilderGenerator.kt:439 */
|
63 109 | ///
|
110 + | /* BuilderGenerator.kt:445 */
|
64 111 | pub fn sparse_string_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::option::Option<::std::string::String>) -> Self {
|
112 + | /* BuilderGenerator.kt:448 */
|
65 113 | let mut hash_map = self.sparse_string_map.unwrap_or_default();
|
66 114 | hash_map.insert(k.into(), v);
|
67 115 | self.sparse_string_map = ::std::option::Option::Some(hash_map);
|
68 116 | self
|
117 + | /* BuilderGenerator.kt:445 */
|
69 118 | }
|
119 + | /* BuilderGenerator.kt:312 */
|
70 120 | #[allow(missing_docs)] // documentation missing in model
|
121 + | /* BuilderGenerator.kt:314 */
|
71 122 | pub fn set_sparse_string_map(
|
72 123 | mut self,
|
73 124 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>>,
|
74 125 | ) -> Self {
|
126 + | /* BuilderGenerator.kt:315 */
|
75 127 | self.sparse_string_map = input;
|
76 128 | self
|
129 + | /* BuilderGenerator.kt:314 */
|
77 130 | }
|
131 + | /* BuilderGenerator.kt:334 */
|
78 132 | #[allow(missing_docs)] // documentation missing in model
|
133 + | /* BuilderGenerator.kt:336 */
|
79 134 | pub fn get_sparse_string_map(
|
80 135 | &self,
|
81 136 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>> {
|
137 + | /* BuilderGenerator.kt:337 */
|
82 138 | &self.sparse_string_map
|
139 + | /* BuilderGenerator.kt:336 */
|
83 140 | }
|
84 - | /// Consumes the builder and constructs a [`SparseNullsOperationInput`](crate::operation::sparse_nulls_operation::SparseNullsOperationInput).
|
141 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SparseNullsOperationInput`](crate::operation::sparse_nulls_operation::SparseNullsOperationInput).
|
142 + | /* BuilderGenerator.kt:253 */
|
85 143 | pub fn build(
|
86 144 | self,
|
87 145 | ) -> ::std::result::Result<crate::operation::sparse_nulls_operation::SparseNullsOperationInput, ::aws_smithy_types::error::operation::BuildError>
|
88 146 | {
|
89 - | ::std::result::Result::Ok(crate::operation::sparse_nulls_operation::SparseNullsOperationInput {
|
90 - | sparse_string_list: self.sparse_string_list,
|
147 + | /* BuilderGenerator.kt:254 */
|
148 + | ::std::result::Result::Ok(
|
149 + | /* BuilderGenerator.kt:477 */
|
150 + | crate::operation::sparse_nulls_operation::SparseNullsOperationInput {
|
151 + | /* BuilderGenerator.kt:481 */ sparse_string_list: self.sparse_string_list,
|
152 + | /* BuilderGenerator.kt:481 */
|
91 153 | sparse_string_map: self.sparse_string_map,
|
92 - | })
|
154 + | /* BuilderGenerator.kt:477 */
|
155 + | }, /* BuilderGenerator.kt:254 */
|
156 + | )
|
157 + | /* BuilderGenerator.kt:253 */
|
93 158 | }
|
159 + | /* BuilderGenerator.kt:355 */
|
94 160 | }
|