aws_sdk_devicefarm/operation/delete_run/
_delete_run_output.rs

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