aws_sdk_medialive/operation/update_channel/
_update_channel_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Placeholder documentation for UpdateChannelResponse
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct UpdateChannelOutput {
7    /// Placeholder documentation for Channel
8    pub channel: ::std::option::Option<crate::types::Channel>,
9    _request_id: Option<String>,
10}
11impl UpdateChannelOutput {
12    /// Placeholder documentation for Channel
13    pub fn channel(&self) -> ::std::option::Option<&crate::types::Channel> {
14        self.channel.as_ref()
15    }
16}
17impl ::aws_types::request_id::RequestId for UpdateChannelOutput {
18    fn request_id(&self) -> Option<&str> {
19        self._request_id.as_deref()
20    }
21}
22impl UpdateChannelOutput {
23    /// Creates a new builder-style object to manufacture [`UpdateChannelOutput`](crate::operation::update_channel::UpdateChannelOutput).
24    pub fn builder() -> crate::operation::update_channel::builders::UpdateChannelOutputBuilder {
25        crate::operation::update_channel::builders::UpdateChannelOutputBuilder::default()
26    }
27}
28
29/// A builder for [`UpdateChannelOutput`](crate::operation::update_channel::UpdateChannelOutput).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct UpdateChannelOutputBuilder {
33    pub(crate) channel: ::std::option::Option<crate::types::Channel>,
34    _request_id: Option<String>,
35}
36impl UpdateChannelOutputBuilder {
37    /// Placeholder documentation for Channel
38    pub fn channel(mut self, input: crate::types::Channel) -> Self {
39        self.channel = ::std::option::Option::Some(input);
40        self
41    }
42    /// Placeholder documentation for Channel
43    pub fn set_channel(mut self, input: ::std::option::Option<crate::types::Channel>) -> Self {
44        self.channel = input;
45        self
46    }
47    /// Placeholder documentation for Channel
48    pub fn get_channel(&self) -> &::std::option::Option<crate::types::Channel> {
49        &self.channel
50    }
51    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
52        self._request_id = Some(request_id.into());
53        self
54    }
55
56    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
57        self._request_id = request_id;
58        self
59    }
60    /// Consumes the builder and constructs a [`UpdateChannelOutput`](crate::operation::update_channel::UpdateChannelOutput).
61    pub fn build(self) -> crate::operation::update_channel::UpdateChannelOutput {
62        crate::operation::update_channel::UpdateChannelOutput {
63            channel: self.channel,
64            _request_id: self._request_id,
65        }
66    }
67}