123 123 | /// <p>Type mismatch for attribute to update.</p></li>
|
124 124 | /// <li>
|
125 125 | /// <p>Nesting Levels have exceeded supported limits.</p></li>
|
126 126 | /// <li>
|
127 127 | /// <p>The document path provided in the update expression is invalid for update.</p></li>
|
128 128 | /// <li>
|
129 129 | /// <p>The provided expression refers to an attribute that does not exist in the item.</p></li>
|
130 130 | /// </ul></li>
|
131 131 | /// </ul></li>
|
132 132 | /// </ul>
|
133 + | /* RustType.kt:516 */
|
133 134 | #[non_exhaustive]
|
135 + | /* RustType.kt:516 */
|
134 136 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
135 - | pub struct TransactionCanceledError {
|
137 + | pub /* StructureGenerator.kt:201 */ struct TransactionCanceledError {
|
138 + | /* StructureGenerator.kt:231 */
|
136 139 | #[allow(missing_docs)] // documentation missing in model
|
137 140 | pub message: ::std::option::Option<::std::string::String>,
|
138 - | /// <p>A list of cancellation reasons.</p>
|
141 + | /// /* StructureGenerator.kt:231 */<p>A list of cancellation reasons.</p>
|
139 142 | pub cancellation_reasons: ::std::option::Option<::std::vec::Vec<crate::types::CancellationReason>>,
|
140 - | pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
|
143 + | /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
|
144 + | /* StructureGenerator.kt:201 */
|
141 145 | }
|
146 + | /* StructureGenerator.kt:135 */
|
142 147 | impl TransactionCanceledError {
|
143 - | /// <p>A list of cancellation reasons.</p>
|
144 - | ///
|
145 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.cancellation_reasons.is_none()`.
|
148 + | /// /* StructureGenerator.kt:231 */<p>A list of cancellation reasons.</p>
|
149 + | /// /* StructureGenerator.kt:162 */
|
150 + | /// /* 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 `.cancellation_reasons.is_none()`.
|
151 + | /* StructureGenerator.kt:166 */
|
146 152 | pub fn cancellation_reasons(&self) -> &[crate::types::CancellationReason] {
|
147 - | self.cancellation_reasons.as_deref().unwrap_or_default()
|
153 + | /* StructureGenerator.kt:169 */
|
154 + | self.cancellation_reasons
|
155 + | .as_deref()
|
156 + | /* StructureGenerator.kt:175 */
|
157 + | .unwrap_or_default()
|
158 + | /* StructureGenerator.kt:166 */
|
148 159 | }
|
160 + | /* StructureGenerator.kt:135 */
|
149 161 | }
|
162 + | /* ErrorImplGenerator.kt:99 */
|
150 163 | impl TransactionCanceledError {
|
164 + | /* ErrorImplGenerator.kt:128 */
|
151 165 | /// Returns the error message.
|
152 166 | pub fn message(&self) -> ::std::option::Option<&str> {
|
153 167 | self.message.as_deref()
|
154 168 | }
|
169 + | /* ErrorImplGenerator.kt:99 */
|
155 170 | }
|
171 + | /* ErrorImplGenerator.kt:153 */
|
156 172 | impl ::std::fmt::Display for TransactionCanceledError {
|
173 + | /* ErrorImplGenerator.kt:154 */
|
157 174 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
175 + | /* ErrorImplGenerator.kt:161 */
|
158 176 | ::std::write!(f, "TransactionCanceledError [TransactionCanceledException]")?;
|
177 + | /* ErrorImplGenerator.kt:166 */
|
159 178 | if let ::std::option::Option::Some(inner_1) = &self.message {
|
179 + | /* ErrorImplGenerator.kt:166 */
|
160 180 | {
|
181 + | /* ErrorImplGenerator.kt:167 */
|
161 182 | ::std::write!(f, ": {}", inner_1)?;
|
183 + | /* ErrorImplGenerator.kt:166 */
|
162 184 | }
|
185 + | /* ErrorImplGenerator.kt:166 */
|
163 186 | }
|
187 + | /* ErrorImplGenerator.kt:171 */
|
164 188 | Ok(())
|
189 + | /* ErrorImplGenerator.kt:154 */
|
165 190 | }
|
191 + | /* ErrorImplGenerator.kt:153 */
|
166 192 | }
|
193 + | /* ErrorImplGenerator.kt:175 */
|
167 194 | impl ::std::error::Error for TransactionCanceledError {}
|
195 + | /* ErrorGenerator.kt:77 */
|
168 196 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for TransactionCanceledError {
|
197 + | /* ErrorGenerator.kt:78 */
|
169 198 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
170 199 | &self.meta
|
171 200 | }
|
201 + | /* ErrorGenerator.kt:77 */
|
172 202 | }
|
203 + | /* ErrorGenerator.kt:81 */
|
173 204 | impl TransactionCanceledError {
|
174 - | /// Creates a new builder-style object to manufacture [`TransactionCanceledError`](crate::types::error::TransactionCanceledError).
|
205 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`TransactionCanceledError`](crate::types::error::TransactionCanceledError).
|
206 + | /* BuilderGenerator.kt:175 */
|
175 207 | pub fn builder() -> crate::types::error::builders::TransactionCanceledErrorBuilder {
|
208 + | /* BuilderGenerator.kt:176 */
|
176 209 | crate::types::error::builders::TransactionCanceledErrorBuilder::default()
|
210 + | /* BuilderGenerator.kt:175 */
|
177 211 | }
|
212 + | /* ErrorGenerator.kt:81 */
|
178 213 | }
|
179 214 |
|
180 - | /// A builder for [`TransactionCanceledError`](crate::types::error::TransactionCanceledError).
|
215 + | /// /* BuilderGenerator.kt:342 */A builder for [`TransactionCanceledError`](crate::types::error::TransactionCanceledError).
|
216 + | /* RustType.kt:516 */
|
181 217 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
218 + | /* RustType.kt:516 */
|
182 219 | #[non_exhaustive]
|
220 + | /* BuilderGenerator.kt:345 */
|
183 221 | pub struct TransactionCanceledErrorBuilder {
|
184 - | pub(crate) message: ::std::option::Option<::std::string::String>,
|
185 - | pub(crate) cancellation_reasons: ::std::option::Option<::std::vec::Vec<crate::types::CancellationReason>>,
|
186 - | meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
222 + | /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
|
223 + | /* BuilderGenerator.kt:275 */ pub(crate) cancellation_reasons: ::std::option::Option<::std::vec::Vec<crate::types::CancellationReason>>,
|
224 + | /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
225 + | /* BuilderGenerator.kt:345 */
|
187 226 | }
|
227 + | /* BuilderGenerator.kt:355 */
|
188 228 | impl TransactionCanceledErrorBuilder {
|
229 + | /* BuilderGenerator.kt:286 */
|
189 230 | #[allow(missing_docs)] // documentation missing in model
|
231 + | /* BuilderGenerator.kt:291 */
|
190 232 | pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
233 + | /* BuilderGenerator.kt:292 */
|
191 234 | self.message = ::std::option::Option::Some(input.into());
|
235 + | /* BuilderGenerator.kt:293 */
|
192 236 | self
|
237 + | /* BuilderGenerator.kt:291 */
|
193 238 | }
|
239 + | /* BuilderGenerator.kt:312 */
|
194 240 | #[allow(missing_docs)] // documentation missing in model
|
241 + | /* BuilderGenerator.kt:314 */
|
195 242 | pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
243 + | /* BuilderGenerator.kt:315 */
|
196 244 | self.message = input;
|
197 245 | self
|
246 + | /* BuilderGenerator.kt:314 */
|
198 247 | }
|
248 + | /* BuilderGenerator.kt:334 */
|
199 249 | #[allow(missing_docs)] // documentation missing in model
|
250 + | /* BuilderGenerator.kt:336 */
|
200 251 | pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
|
252 + | /* BuilderGenerator.kt:337 */
|
201 253 | &self.message
|
254 + | /* BuilderGenerator.kt:336 */
|
202 255 | }
|
203 - | /// Appends an item to `cancellation_reasons`.
|
256 + | /// /* BuilderGenerator.kt:410 */Appends an item to `cancellation_reasons`.
|
257 + | /* BuilderGenerator.kt:411 */
|
204 258 | ///
|
205 - | /// To override the contents of this collection use [`set_cancellation_reasons`](Self::set_cancellation_reasons).
|
259 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_cancellation_reasons`](Self::set_cancellation_reasons).
|
260 + | /* BuilderGenerator.kt:413 */
|
206 261 | ///
|
207 - | /// <p>A list of cancellation reasons.</p>
|
262 + | /// /* BuilderGenerator.kt:414 */<p>A list of cancellation reasons.</p>
|
263 + | /* BuilderGenerator.kt:418 */
|
208 264 | pub fn cancellation_reasons(mut self, input: crate::types::CancellationReason) -> Self {
|
265 + | /* BuilderGenerator.kt:419 */
|
209 266 | let mut v = self.cancellation_reasons.unwrap_or_default();
|
210 267 | v.push(input);
|
211 268 | self.cancellation_reasons = ::std::option::Option::Some(v);
|
212 269 | self
|
270 + | /* BuilderGenerator.kt:418 */
|
213 271 | }
|
214 - | /// <p>A list of cancellation reasons.</p>
|
272 + | /// /* BuilderGenerator.kt:312 */<p>A list of cancellation reasons.</p>
|
273 + | /* BuilderGenerator.kt:314 */
|
215 274 | pub fn set_cancellation_reasons(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CancellationReason>>) -> Self {
|
275 + | /* BuilderGenerator.kt:315 */
|
216 276 | self.cancellation_reasons = input;
|
217 277 | self
|
278 + | /* BuilderGenerator.kt:314 */
|
218 279 | }
|
219 - | /// <p>A list of cancellation reasons.</p>
|
280 + | /// /* BuilderGenerator.kt:334 */<p>A list of cancellation reasons.</p>
|
281 + | /* BuilderGenerator.kt:336 */
|
220 282 | pub fn get_cancellation_reasons(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CancellationReason>> {
|
283 + | /* BuilderGenerator.kt:337 */
|
221 284 | &self.cancellation_reasons
|
285 + | /* BuilderGenerator.kt:336 */
|
222 286 | }
|
287 + | /* ErrorGenerator.kt:101 */
|
223 288 | /// Sets error metadata
|
224 289 | pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
225 290 | self.meta = Some(meta);
|
226 291 | self
|
227 292 | }
|
228 293 |
|
229 294 | /// Sets error metadata
|
230 295 | pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
|
231 296 | self.meta = meta;
|
232 297 | self
|
233 298 | }
|
234 - | /// Consumes the builder and constructs a [`TransactionCanceledError`](crate::types::error::TransactionCanceledError).
|
299 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`TransactionCanceledError`](crate::types::error::TransactionCanceledError).
|
300 + | /* BuilderGenerator.kt:253 */
|
235 301 | pub fn build(self) -> crate::types::error::TransactionCanceledError {
|
302 + | /* BuilderGenerator.kt:477 */
|
236 303 | crate::types::error::TransactionCanceledError {
|
237 - | message: self.message,
|
304 + | /* BuilderGenerator.kt:481 */ message: self.message,
|
305 + | /* BuilderGenerator.kt:481 */
|
238 306 | cancellation_reasons: self.cancellation_reasons,
|
307 + | /* ErrorGenerator.kt:120 */
|
239 308 | meta: self.meta.unwrap_or_default(),
|
309 + | /* BuilderGenerator.kt:477 */
|
240 310 | }
|
311 + | /* BuilderGenerator.kt:253 */
|
241 312 | }
|
313 + | /* BuilderGenerator.kt:355 */
|
242 314 | }
|