aws_sdk_mediapackage/operation/update_channel/
_update_channel_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateChannelOutput {
6 pub arn: ::std::option::Option<::std::string::String>,
8 pub created_at: ::std::option::Option<::std::string::String>,
10 pub description: ::std::option::Option<::std::string::String>,
12 pub egress_access_logs: ::std::option::Option<crate::types::EgressAccessLogs>,
14 pub hls_ingest: ::std::option::Option<crate::types::HlsIngest>,
16 pub id: ::std::option::Option<::std::string::String>,
18 pub ingress_access_logs: ::std::option::Option<crate::types::IngressAccessLogs>,
20 pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
22 _request_id: Option<String>,
23}
24impl UpdateChannelOutput {
25 pub fn arn(&self) -> ::std::option::Option<&str> {
27 self.arn.as_deref()
28 }
29 pub fn created_at(&self) -> ::std::option::Option<&str> {
31 self.created_at.as_deref()
32 }
33 pub fn description(&self) -> ::std::option::Option<&str> {
35 self.description.as_deref()
36 }
37 pub fn egress_access_logs(&self) -> ::std::option::Option<&crate::types::EgressAccessLogs> {
39 self.egress_access_logs.as_ref()
40 }
41 pub fn hls_ingest(&self) -> ::std::option::Option<&crate::types::HlsIngest> {
43 self.hls_ingest.as_ref()
44 }
45 pub fn id(&self) -> ::std::option::Option<&str> {
47 self.id.as_deref()
48 }
49 pub fn ingress_access_logs(&self) -> ::std::option::Option<&crate::types::IngressAccessLogs> {
51 self.ingress_access_logs.as_ref()
52 }
53 pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
55 self.tags.as_ref()
56 }
57}
58impl ::aws_types::request_id::RequestId for UpdateChannelOutput {
59 fn request_id(&self) -> Option<&str> {
60 self._request_id.as_deref()
61 }
62}
63impl UpdateChannelOutput {
64 pub fn builder() -> crate::operation::update_channel::builders::UpdateChannelOutputBuilder {
66 crate::operation::update_channel::builders::UpdateChannelOutputBuilder::default()
67 }
68}
69
70#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
72#[non_exhaustive]
73pub struct UpdateChannelOutputBuilder {
74 pub(crate) arn: ::std::option::Option<::std::string::String>,
75 pub(crate) created_at: ::std::option::Option<::std::string::String>,
76 pub(crate) description: ::std::option::Option<::std::string::String>,
77 pub(crate) egress_access_logs: ::std::option::Option<crate::types::EgressAccessLogs>,
78 pub(crate) hls_ingest: ::std::option::Option<crate::types::HlsIngest>,
79 pub(crate) id: ::std::option::Option<::std::string::String>,
80 pub(crate) ingress_access_logs: ::std::option::Option<crate::types::IngressAccessLogs>,
81 pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
82 _request_id: Option<String>,
83}
84impl UpdateChannelOutputBuilder {
85 pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87 self.arn = ::std::option::Option::Some(input.into());
88 self
89 }
90 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92 self.arn = input;
93 self
94 }
95 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
97 &self.arn
98 }
99 pub fn created_at(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101 self.created_at = ::std::option::Option::Some(input.into());
102 self
103 }
104 pub fn set_created_at(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106 self.created_at = input;
107 self
108 }
109 pub fn get_created_at(&self) -> &::std::option::Option<::std::string::String> {
111 &self.created_at
112 }
113 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115 self.description = ::std::option::Option::Some(input.into());
116 self
117 }
118 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.description = input;
121 self
122 }
123 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
125 &self.description
126 }
127 pub fn egress_access_logs(mut self, input: crate::types::EgressAccessLogs) -> Self {
129 self.egress_access_logs = ::std::option::Option::Some(input);
130 self
131 }
132 pub fn set_egress_access_logs(mut self, input: ::std::option::Option<crate::types::EgressAccessLogs>) -> Self {
134 self.egress_access_logs = input;
135 self
136 }
137 pub fn get_egress_access_logs(&self) -> &::std::option::Option<crate::types::EgressAccessLogs> {
139 &self.egress_access_logs
140 }
141 pub fn hls_ingest(mut self, input: crate::types::HlsIngest) -> Self {
143 self.hls_ingest = ::std::option::Option::Some(input);
144 self
145 }
146 pub fn set_hls_ingest(mut self, input: ::std::option::Option<crate::types::HlsIngest>) -> Self {
148 self.hls_ingest = input;
149 self
150 }
151 pub fn get_hls_ingest(&self) -> &::std::option::Option<crate::types::HlsIngest> {
153 &self.hls_ingest
154 }
155 pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
157 self.id = ::std::option::Option::Some(input.into());
158 self
159 }
160 pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
162 self.id = input;
163 self
164 }
165 pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
167 &self.id
168 }
169 pub fn ingress_access_logs(mut self, input: crate::types::IngressAccessLogs) -> Self {
171 self.ingress_access_logs = ::std::option::Option::Some(input);
172 self
173 }
174 pub fn set_ingress_access_logs(mut self, input: ::std::option::Option<crate::types::IngressAccessLogs>) -> Self {
176 self.ingress_access_logs = input;
177 self
178 }
179 pub fn get_ingress_access_logs(&self) -> &::std::option::Option<crate::types::IngressAccessLogs> {
181 &self.ingress_access_logs
182 }
183 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
189 let mut hash_map = self.tags.unwrap_or_default();
190 hash_map.insert(k.into(), v.into());
191 self.tags = ::std::option::Option::Some(hash_map);
192 self
193 }
194 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
196 self.tags = input;
197 self
198 }
199 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
201 &self.tags
202 }
203 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
204 self._request_id = Some(request_id.into());
205 self
206 }
207
208 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
209 self._request_id = request_id;
210 self
211 }
212 pub fn build(self) -> crate::operation::update_channel::UpdateChannelOutput {
214 crate::operation::update_channel::UpdateChannelOutput {
215 arn: self.arn,
216 created_at: self.created_at,
217 description: self.description,
218 egress_access_logs: self.egress_access_logs,
219 hls_ingest: self.hls_ingest,
220 id: self.id,
221 ingress_access_logs: self.ingress_access_logs,
222 tags: self.tags,
223 _request_id: self._request_id,
224 }
225 }
226}