aws_sdk_iot/operation/delete_thing_type/
_delete_thing_type_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The output for the DeleteThingType operation.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteThingTypeOutput {
7    _request_id: Option<String>,
8}
9impl ::aws_types::request_id::RequestId for DeleteThingTypeOutput {
10    fn request_id(&self) -> Option<&str> {
11        self._request_id.as_deref()
12    }
13}
14impl DeleteThingTypeOutput {
15    /// Creates a new builder-style object to manufacture [`DeleteThingTypeOutput`](crate::operation::delete_thing_type::DeleteThingTypeOutput).
16    pub fn builder() -> crate::operation::delete_thing_type::builders::DeleteThingTypeOutputBuilder {
17        crate::operation::delete_thing_type::builders::DeleteThingTypeOutputBuilder::default()
18    }
19}
20
21/// A builder for [`DeleteThingTypeOutput`](crate::operation::delete_thing_type::DeleteThingTypeOutput).
22#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
23#[non_exhaustive]
24pub struct DeleteThingTypeOutputBuilder {
25    _request_id: Option<String>,
26}
27impl DeleteThingTypeOutputBuilder {
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 [`DeleteThingTypeOutput`](crate::operation::delete_thing_type::DeleteThingTypeOutput).
38    pub fn build(self) -> crate::operation::delete_thing_type::DeleteThingTypeOutput {
39        crate::operation::delete_thing_type::DeleteThingTypeOutput {
40            _request_id: self._request_id,
41        }
42    }
43}