1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchGetChannelOutput {
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> in the MDN Web Docs.</p>
pub access_control_allow_origin: ::std::option::Option<::std::string::String>,
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> in the MDN Web Docs.</p>
pub access_control_expose_headers: ::std::option::Option<::std::string::String>,
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control">Cache-Control</a> in the MDN Web Docs.</p>
pub cache_control: ::std::option::Option<::std::string::String>,
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
pub content_security_policy: ::std::option::Option<::std::string::String>,
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
pub strict_transport_security: ::std::option::Option<::std::string::String>,
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
pub x_content_type_options: ::std::option::Option<::std::string::String>,
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
pub x_frame_options: ::std::option::Option<::std::string::String>,
/// <p></p>
pub channels: ::std::option::Option<::std::vec::Vec<crate::types::Channel>>,
/// <p>Each error object is related to a specific ARN in the request.</p>
pub errors: ::std::option::Option<::std::vec::Vec<crate::types::BatchError>>,
_request_id: Option<String>,
}
impl BatchGetChannelOutput {
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> in the MDN Web Docs.</p>
pub fn access_control_allow_origin(&self) -> ::std::option::Option<&str> {
self.access_control_allow_origin.as_deref()
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> in the MDN Web Docs.</p>
pub fn access_control_expose_headers(&self) -> ::std::option::Option<&str> {
self.access_control_expose_headers.as_deref()
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control">Cache-Control</a> in the MDN Web Docs.</p>
pub fn cache_control(&self) -> ::std::option::Option<&str> {
self.cache_control.as_deref()
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
pub fn content_security_policy(&self) -> ::std::option::Option<&str> {
self.content_security_policy.as_deref()
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
pub fn strict_transport_security(&self) -> ::std::option::Option<&str> {
self.strict_transport_security.as_deref()
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
pub fn x_content_type_options(&self) -> ::std::option::Option<&str> {
self.x_content_type_options.as_deref()
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
pub fn x_frame_options(&self) -> ::std::option::Option<&str> {
self.x_frame_options.as_deref()
}
/// <p></p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.channels.is_none()`.
pub fn channels(&self) -> &[crate::types::Channel] {
self.channels.as_deref().unwrap_or_default()
}
/// <p>Each error object is related to a specific ARN in the request.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.errors.is_none()`.
pub fn errors(&self) -> &[crate::types::BatchError] {
self.errors.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for BatchGetChannelOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl BatchGetChannelOutput {
/// Creates a new builder-style object to manufacture [`BatchGetChannelOutput`](crate::operation::batch_get_channel::BatchGetChannelOutput).
pub fn builder() -> crate::operation::batch_get_channel::builders::BatchGetChannelOutputBuilder {
crate::operation::batch_get_channel::builders::BatchGetChannelOutputBuilder::default()
}
}
/// A builder for [`BatchGetChannelOutput`](crate::operation::batch_get_channel::BatchGetChannelOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchGetChannelOutputBuilder {
pub(crate) access_control_allow_origin: ::std::option::Option<::std::string::String>,
pub(crate) access_control_expose_headers: ::std::option::Option<::std::string::String>,
pub(crate) cache_control: ::std::option::Option<::std::string::String>,
pub(crate) content_security_policy: ::std::option::Option<::std::string::String>,
pub(crate) strict_transport_security: ::std::option::Option<::std::string::String>,
pub(crate) x_content_type_options: ::std::option::Option<::std::string::String>,
pub(crate) x_frame_options: ::std::option::Option<::std::string::String>,
pub(crate) channels: ::std::option::Option<::std::vec::Vec<crate::types::Channel>>,
pub(crate) errors: ::std::option::Option<::std::vec::Vec<crate::types::BatchError>>,
_request_id: Option<String>,
}
impl BatchGetChannelOutputBuilder {
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> in the MDN Web Docs.</p>
pub fn access_control_allow_origin(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.access_control_allow_origin = ::std::option::Option::Some(input.into());
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> in the MDN Web Docs.</p>
pub fn set_access_control_allow_origin(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.access_control_allow_origin = input;
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> in the MDN Web Docs.</p>
pub fn get_access_control_allow_origin(&self) -> &::std::option::Option<::std::string::String> {
&self.access_control_allow_origin
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> in the MDN Web Docs.</p>
pub fn access_control_expose_headers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.access_control_expose_headers = ::std::option::Option::Some(input.into());
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> in the MDN Web Docs.</p>
pub fn set_access_control_expose_headers(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.access_control_expose_headers = input;
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> in the MDN Web Docs.</p>
pub fn get_access_control_expose_headers(&self) -> &::std::option::Option<::std::string::String> {
&self.access_control_expose_headers
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control">Cache-Control</a> in the MDN Web Docs.</p>
pub fn cache_control(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cache_control = ::std::option::Option::Some(input.into());
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control">Cache-Control</a> in the MDN Web Docs.</p>
pub fn set_cache_control(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cache_control = input;
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control">Cache-Control</a> in the MDN Web Docs.</p>
pub fn get_cache_control(&self) -> &::std::option::Option<::std::string::String> {
&self.cache_control
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
pub fn content_security_policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.content_security_policy = ::std::option::Option::Some(input.into());
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
pub fn set_content_security_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.content_security_policy = input;
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
pub fn get_content_security_policy(&self) -> &::std::option::Option<::std::string::String> {
&self.content_security_policy
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
pub fn strict_transport_security(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.strict_transport_security = ::std::option::Option::Some(input.into());
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
pub fn set_strict_transport_security(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.strict_transport_security = input;
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
pub fn get_strict_transport_security(&self) -> &::std::option::Option<::std::string::String> {
&self.strict_transport_security
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
pub fn x_content_type_options(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.x_content_type_options = ::std::option::Option::Some(input.into());
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
pub fn set_x_content_type_options(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.x_content_type_options = input;
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
pub fn get_x_content_type_options(&self) -> &::std::option::Option<::std::string::String> {
&self.x_content_type_options
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
pub fn x_frame_options(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.x_frame_options = ::std::option::Option::Some(input.into());
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
pub fn set_x_frame_options(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.x_frame_options = input;
self
}
/// <p>See <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
pub fn get_x_frame_options(&self) -> &::std::option::Option<::std::string::String> {
&self.x_frame_options
}
/// Appends an item to `channels`.
///
/// To override the contents of this collection use [`set_channels`](Self::set_channels).
///
/// <p></p>
pub fn channels(mut self, input: crate::types::Channel) -> Self {
let mut v = self.channels.unwrap_or_default();
v.push(input);
self.channels = ::std::option::Option::Some(v);
self
}
/// <p></p>
pub fn set_channels(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Channel>>) -> Self {
self.channels = input;
self
}
/// <p></p>
pub fn get_channels(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Channel>> {
&self.channels
}
/// Appends an item to `errors`.
///
/// To override the contents of this collection use [`set_errors`](Self::set_errors).
///
/// <p>Each error object is related to a specific ARN in the request.</p>
pub fn errors(mut self, input: crate::types::BatchError) -> Self {
let mut v = self.errors.unwrap_or_default();
v.push(input);
self.errors = ::std::option::Option::Some(v);
self
}
/// <p>Each error object is related to a specific ARN in the request.</p>
pub fn set_errors(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BatchError>>) -> Self {
self.errors = input;
self
}
/// <p>Each error object is related to a specific ARN in the request.</p>
pub fn get_errors(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BatchError>> {
&self.errors
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`BatchGetChannelOutput`](crate::operation::batch_get_channel::BatchGetChannelOutput).
pub fn build(self) -> crate::operation::batch_get_channel::BatchGetChannelOutput {
crate::operation::batch_get_channel::BatchGetChannelOutput {
access_control_allow_origin: self.access_control_allow_origin,
access_control_expose_headers: self.access_control_expose_headers,
cache_control: self.cache_control,
content_security_policy: self.content_security_policy,
strict_transport_security: self.strict_transport_security,
x_content_type_options: self.x_content_type_options,
x_frame_options: self.x_frame_options,
channels: self.channels,
errors: self.errors,
_request_id: self._request_id,
}
}
}