aws_sdk_elastictranscoder/operation/cancel_job/
_cancel_job_output.rs

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