aws_sdk_iot/operation/delete_thing/
_delete_thing_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The output of the DeleteThing operation.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteThingOutput {
7    _request_id: Option<String>,
8}
9impl ::aws_types::request_id::RequestId for DeleteThingOutput {
10    fn request_id(&self) -> Option<&str> {
11        self._request_id.as_deref()
12    }
13}
14impl DeleteThingOutput {
15    /// Creates a new builder-style object to manufacture [`DeleteThingOutput`](crate::operation::delete_thing::DeleteThingOutput).
16    pub fn builder() -> crate::operation::delete_thing::builders::DeleteThingOutputBuilder {
17        crate::operation::delete_thing::builders::DeleteThingOutputBuilder::default()
18    }
19}
20
21/// A builder for [`DeleteThingOutput`](crate::operation::delete_thing::DeleteThingOutput).
22#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
23#[non_exhaustive]
24pub struct DeleteThingOutputBuilder {
25    _request_id: Option<String>,
26}
27impl DeleteThingOutputBuilder {
28    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
29        self._request_id = Some(request_id.into());
30        self
31    }
32
33    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
34        self._request_id = request_id;
35        self
36    }
37    /// Consumes the builder and constructs a [`DeleteThingOutput`](crate::operation::delete_thing::DeleteThingOutput).
38    pub fn build(self) -> crate::operation::delete_thing::DeleteThingOutput {
39        crate::operation::delete_thing::DeleteThingOutput {
40            _request_id: self._request_id,
41        }
42    }
43}