1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[derive(
|
4 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5 + | )]
|
6 + | pub struct GetObjectOutput {}
|
7 + | impl GetObjectOutput {
|
8 + | /// Creates a new builder-style object to manufacture [`GetObjectOutput`](crate::output::GetObjectOutput).
|
9 + | pub fn builder() -> crate::output::get_object_output::Builder {
|
10 + | crate::output::get_object_output::Builder::default()
|
11 + | }
|
12 + | }
|
13 + |
|
14 + | #[allow(missing_docs)] // documentation missing in model
|
15 + | #[derive(
|
16 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
17 + | )]
|
18 + | pub struct DeleteObjectTaggingOutput {
|
19 + | #[allow(missing_docs)] // documentation missing in model
|
20 + | pub version_id: ::std::option::Option<::std::string::String>,
|
21 + | }
|
22 + | impl DeleteObjectTaggingOutput {
|
23 + | #[allow(missing_docs)] // documentation missing in model
|
24 + | pub fn version_id(&self) -> ::std::option::Option<&str> {
|
25 + | self.version_id.as_deref()
|
26 + | }
|
27 + | }
|
28 + | impl DeleteObjectTaggingOutput {
|
29 + | /// Creates a new builder-style object to manufacture [`DeleteObjectTaggingOutput`](crate::output::DeleteObjectTaggingOutput).
|
30 + | pub fn builder() -> crate::output::delete_object_tagging_output::Builder {
|
31 + | crate::output::delete_object_tagging_output::Builder::default()
|
32 + | }
|
33 + | }
|
34 + |
|
35 + | #[allow(missing_docs)] // documentation missing in model
|
36 + | #[derive(
|
37 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
38 + | )]
|
39 + | pub struct GetBucketLocationOutput {
|
40 + | #[allow(missing_docs)] // documentation missing in model
|
41 + | pub location_constraint: ::std::option::Option<crate::model::BucketLocationConstraint>,
|
42 + | }
|
43 + | impl GetBucketLocationOutput {
|
44 + | #[allow(missing_docs)] // documentation missing in model
|
45 + | pub fn location_constraint(
|
46 + | &self,
|
47 + | ) -> ::std::option::Option<&crate::model::BucketLocationConstraint> {
|
48 + | self.location_constraint.as_ref()
|
49 + | }
|
50 + | }
|
51 + | impl GetBucketLocationOutput {
|
52 + | /// Creates a new builder-style object to manufacture [`GetBucketLocationOutput`](crate::output::GetBucketLocationOutput).
|
53 + | pub fn builder() -> crate::output::get_bucket_location_output::Builder {
|
54 + | crate::output::get_bucket_location_output::Builder::default()
|
55 + | }
|
56 + | }
|
57 + |
|
58 + | #[allow(missing_docs)] // documentation missing in model
|
59 + | #[derive(
|
60 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
61 + | )]
|
62 + | pub struct ListObjectsV2Output {
|
63 + | #[allow(missing_docs)] // documentation missing in model
|
64 + | pub is_truncated: ::std::option::Option<bool>,
|
65 + | #[allow(missing_docs)] // documentation missing in model
|
66 + | pub contents: ::std::option::Option<::std::vec::Vec<crate::model::Object>>,
|
67 + | #[allow(missing_docs)] // documentation missing in model
|
68 + | pub name: ::std::option::Option<::std::string::String>,
|
69 + | #[allow(missing_docs)] // documentation missing in model
|
70 + | pub prefix: ::std::option::Option<::std::string::String>,
|
71 + | #[allow(missing_docs)] // documentation missing in model
|
72 + | pub delimiter: ::std::option::Option<::std::string::String>,
|
73 + | #[allow(missing_docs)] // documentation missing in model
|
74 + | pub max_keys: ::std::option::Option<i32>,
|
75 + | #[allow(missing_docs)] // documentation missing in model
|
76 + | pub common_prefixes: ::std::option::Option<::std::vec::Vec<crate::model::CommonPrefix>>,
|
77 + | #[allow(missing_docs)] // documentation missing in model
|
78 + | pub encoding_type: ::std::option::Option<crate::model::EncodingType>,
|
79 + | #[allow(missing_docs)] // documentation missing in model
|
80 + | pub key_count: ::std::option::Option<i32>,
|
81 + | #[allow(missing_docs)] // documentation missing in model
|
82 + | pub continuation_token: ::std::option::Option<::std::string::String>,
|
83 + | #[allow(missing_docs)] // documentation missing in model
|
84 + | pub next_continuation_token: ::std::option::Option<::std::string::String>,
|
85 + | #[allow(missing_docs)] // documentation missing in model
|
86 + | pub start_after: ::std::option::Option<::std::string::String>,
|
87 + | }
|
88 + | impl ListObjectsV2Output {
|
89 + | #[allow(missing_docs)] // documentation missing in model
|
90 + | pub fn is_truncated(&self) -> ::std::option::Option<bool> {
|
91 + | self.is_truncated
|
92 + | }
|
93 + | #[allow(missing_docs)] // documentation missing in model
|
94 + | pub fn contents(&self) -> ::std::option::Option<&[crate::model::Object]> {
|
95 + | self.contents.as_deref()
|
96 + | }
|
97 + | #[allow(missing_docs)] // documentation missing in model
|
98 + | pub fn name(&self) -> ::std::option::Option<&str> {
|
99 + | self.name.as_deref()
|
100 + | }
|
101 + | #[allow(missing_docs)] // documentation missing in model
|
102 + | pub fn prefix(&self) -> ::std::option::Option<&str> {
|
103 + | self.prefix.as_deref()
|
104 + | }
|
105 + | #[allow(missing_docs)] // documentation missing in model
|
106 + | pub fn delimiter(&self) -> ::std::option::Option<&str> {
|
107 + | self.delimiter.as_deref()
|
108 + | }
|
109 + | #[allow(missing_docs)] // documentation missing in model
|
110 + | pub fn max_keys(&self) -> ::std::option::Option<i32> {
|
111 + | self.max_keys
|
112 + | }
|
113 + | #[allow(missing_docs)] // documentation missing in model
|
114 + | pub fn common_prefixes(&self) -> ::std::option::Option<&[crate::model::CommonPrefix]> {
|
115 + | self.common_prefixes.as_deref()
|
116 + | }
|
117 + | #[allow(missing_docs)] // documentation missing in model
|
118 + | pub fn encoding_type(&self) -> ::std::option::Option<&crate::model::EncodingType> {
|
119 + | self.encoding_type.as_ref()
|
120 + | }
|
121 + | #[allow(missing_docs)] // documentation missing in model
|
122 + | pub fn key_count(&self) -> ::std::option::Option<i32> {
|
123 + | self.key_count
|
124 + | }
|
125 + | #[allow(missing_docs)] // documentation missing in model
|
126 + | pub fn continuation_token(&self) -> ::std::option::Option<&str> {
|
127 + | self.continuation_token.as_deref()
|
128 + | }
|
129 + | #[allow(missing_docs)] // documentation missing in model
|
130 + | pub fn next_continuation_token(&self) -> ::std::option::Option<&str> {
|
131 + | self.next_continuation_token.as_deref()
|
132 + | }
|
133 + | #[allow(missing_docs)] // documentation missing in model
|
134 + | pub fn start_after(&self) -> ::std::option::Option<&str> {
|
135 + | self.start_after.as_deref()
|
136 + | }
|
137 + | }
|
138 + | impl ListObjectsV2Output {
|
139 + | /// Creates a new builder-style object to manufacture [`ListObjectsV2Output`](crate::output::ListObjectsV2Output).
|
140 + | pub fn builder() -> crate::output::list_objects_v2_output::Builder {
|
141 + | crate::output::list_objects_v2_output::Builder::default()
|
142 + | }
|
143 + | }
|
144 + | /// See [`GetObjectOutput`](crate::output::GetObjectOutput).
|
145 + | pub mod get_object_output {
|
146 + |
|
147 + | impl ::std::convert::From<Builder> for crate::output::GetObjectOutput {
|
148 + | fn from(builder: Builder) -> Self {
|
149 + | builder.build()
|
150 + | }
|
151 + | }
|
152 + | /// A builder for [`GetObjectOutput`](crate::output::GetObjectOutput).
|
153 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
154 + | pub struct Builder {}
|
155 + | impl Builder {
|
156 + | /// Consumes the builder and constructs a [`GetObjectOutput`](crate::output::GetObjectOutput).
|
157 + | pub fn build(self) -> crate::output::GetObjectOutput {
|
158 + | self.build_enforcing_all_constraints()
|
159 + | }
|
160 + | fn build_enforcing_all_constraints(self) -> crate::output::GetObjectOutput {
|
161 + | crate::output::GetObjectOutput {}
|
162 + | }
|
163 + | }
|
164 + | }
|
165 + | /// See [`DeleteObjectTaggingOutput`](crate::output::DeleteObjectTaggingOutput).
|
166 + | pub mod delete_object_tagging_output {
|
167 + |
|
168 + | impl ::std::convert::From<Builder> for crate::output::DeleteObjectTaggingOutput {
|
169 + | fn from(builder: Builder) -> Self {
|
170 + | builder.build()
|
171 + | }
|
172 + | }
|
173 + | /// A builder for [`DeleteObjectTaggingOutput`](crate::output::DeleteObjectTaggingOutput).
|
174 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
175 + | pub struct Builder {
|
176 + | pub(crate) version_id: ::std::option::Option<::std::string::String>,
|
177 + | }
|
178 + | impl Builder {
|
179 + | #[allow(missing_docs)] // documentation missing in model
|
180 + | pub fn version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
181 + | self.version_id = input;
|
182 + | self
|
183 + | }
|
184 + | /// Consumes the builder and constructs a [`DeleteObjectTaggingOutput`](crate::output::DeleteObjectTaggingOutput).
|
185 + | pub fn build(self) -> crate::output::DeleteObjectTaggingOutput {
|
186 + | self.build_enforcing_all_constraints()
|
187 + | }
|
188 + | fn build_enforcing_all_constraints(self) -> crate::output::DeleteObjectTaggingOutput {
|
189 + | crate::output::DeleteObjectTaggingOutput {
|
190 + | version_id: self.version_id,
|
191 + | }
|
192 + | }
|
193 + | }
|
194 + | }
|
195 + | /// See [`GetBucketLocationOutput`](crate::output::GetBucketLocationOutput).
|
196 + | pub mod get_bucket_location_output {
|
197 + |
|
198 + | impl ::std::convert::From<Builder> for crate::output::GetBucketLocationOutput {
|
199 + | fn from(builder: Builder) -> Self {
|
200 + | builder.build()
|
201 + | }
|
202 + | }
|
203 + | /// A builder for [`GetBucketLocationOutput`](crate::output::GetBucketLocationOutput).
|
204 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
205 + | pub struct Builder {
|
206 + | pub(crate) location_constraint:
|
207 + | ::std::option::Option<crate::model::BucketLocationConstraint>,
|
208 + | }
|
209 + | impl Builder {
|
210 + | #[allow(missing_docs)] // documentation missing in model
|
211 + | pub fn location_constraint(
|
212 + | mut self,
|
213 + | input: ::std::option::Option<crate::model::BucketLocationConstraint>,
|
214 + | ) -> Self {
|
215 + | self.location_constraint = input;
|
216 + | self
|
217 + | }
|
218 + | /// Consumes the builder and constructs a [`GetBucketLocationOutput`](crate::output::GetBucketLocationOutput).
|
219 + | pub fn build(self) -> crate::output::GetBucketLocationOutput {
|
220 + | self.build_enforcing_all_constraints()
|
221 + | }
|
222 + | fn build_enforcing_all_constraints(self) -> crate::output::GetBucketLocationOutput {
|
223 + | crate::output::GetBucketLocationOutput {
|
224 + | location_constraint: self.location_constraint,
|
225 + | }
|
226 + | }
|
227 + | }
|
228 + | }
|
229 + | /// See [`ListObjectsV2Output`](crate::output::ListObjectsV2Output).
|
230 + | pub mod list_objects_v2_output {
|
231 + |
|
232 + | impl ::std::convert::From<Builder> for crate::output::ListObjectsV2Output {
|
233 + | fn from(builder: Builder) -> Self {
|
234 + | builder.build()
|
235 + | }
|
236 + | }
|
237 + | /// A builder for [`ListObjectsV2Output`](crate::output::ListObjectsV2Output).
|
238 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
239 + | pub struct Builder {
|
240 + | pub(crate) is_truncated: ::std::option::Option<bool>,
|
241 + | pub(crate) contents: ::std::option::Option<::std::vec::Vec<crate::model::Object>>,
|
242 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
243 + | pub(crate) prefix: ::std::option::Option<::std::string::String>,
|
244 + | pub(crate) delimiter: ::std::option::Option<::std::string::String>,
|
245 + | pub(crate) max_keys: ::std::option::Option<i32>,
|
246 + | pub(crate) common_prefixes:
|
247 + | ::std::option::Option<::std::vec::Vec<crate::model::CommonPrefix>>,
|
248 + | pub(crate) encoding_type: ::std::option::Option<crate::model::EncodingType>,
|
249 + | pub(crate) key_count: ::std::option::Option<i32>,
|
250 + | pub(crate) continuation_token: ::std::option::Option<::std::string::String>,
|
251 + | pub(crate) next_continuation_token: ::std::option::Option<::std::string::String>,
|
252 + | pub(crate) start_after: ::std::option::Option<::std::string::String>,
|
253 + | }
|
254 + | impl Builder {
|
255 + | #[allow(missing_docs)] // documentation missing in model
|
256 + | pub fn is_truncated(mut self, input: ::std::option::Option<bool>) -> Self {
|
257 + | self.is_truncated = input;
|
258 + | self
|
259 + | }
|
260 + | #[allow(missing_docs)] // documentation missing in model
|
261 + | pub fn contents(
|
262 + | mut self,
|
263 + | input: ::std::option::Option<::std::vec::Vec<crate::model::Object>>,
|
264 + | ) -> Self {
|
265 + | self.contents = input;
|
266 + | self
|
267 + | }
|
268 + | #[allow(missing_docs)] // documentation missing in model
|
269 + | pub fn name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
270 + | self.name = input;
|
271 + | self
|
272 + | }
|
273 + | #[allow(missing_docs)] // documentation missing in model
|
274 + | pub fn prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
275 + | self.prefix = input;
|
276 + | self
|
277 + | }
|
278 + | #[allow(missing_docs)] // documentation missing in model
|
279 + | pub fn delimiter(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
280 + | self.delimiter = input;
|
281 + | self
|
282 + | }
|
283 + | #[allow(missing_docs)] // documentation missing in model
|
284 + | pub fn max_keys(mut self, input: ::std::option::Option<i32>) -> Self {
|
285 + | self.max_keys = input;
|
286 + | self
|
287 + | }
|
288 + | #[allow(missing_docs)] // documentation missing in model
|
289 + | pub fn common_prefixes(
|
290 + | mut self,
|
291 + | input: ::std::option::Option<::std::vec::Vec<crate::model::CommonPrefix>>,
|
292 + | ) -> Self {
|
293 + | self.common_prefixes = input;
|
294 + | self
|
295 + | }
|
296 + | #[allow(missing_docs)] // documentation missing in model
|
297 + | pub fn encoding_type(
|
298 + | mut self,
|
299 + | input: ::std::option::Option<crate::model::EncodingType>,
|
300 + | ) -> Self {
|
301 + | self.encoding_type = input;
|
302 + | self
|
303 + | }
|
304 + | #[allow(missing_docs)] // documentation missing in model
|
305 + | pub fn key_count(mut self, input: ::std::option::Option<i32>) -> Self {
|
306 + | self.key_count = input;
|
307 + | self
|
308 + | }
|
309 + | #[allow(missing_docs)] // documentation missing in model
|
310 + | pub fn continuation_token(
|
311 + | mut self,
|
312 + | input: ::std::option::Option<::std::string::String>,
|
313 + | ) -> Self {
|
314 + | self.continuation_token = input;
|
315 + | self
|
316 + | }
|
317 + | #[allow(missing_docs)] // documentation missing in model
|
318 + | pub fn next_continuation_token(
|
319 + | mut self,
|
320 + | input: ::std::option::Option<::std::string::String>,
|
321 + | ) -> Self {
|
322 + | self.next_continuation_token = input;
|
323 + | self
|
324 + | }
|
325 + | #[allow(missing_docs)] // documentation missing in model
|
326 + | pub fn start_after(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
327 + | self.start_after = input;
|
328 + | self
|
329 + | }
|
330 + | /// Consumes the builder and constructs a [`ListObjectsV2Output`](crate::output::ListObjectsV2Output).
|
331 + | pub fn build(self) -> crate::output::ListObjectsV2Output {
|
332 + | self.build_enforcing_all_constraints()
|
333 + | }
|
334 + | fn build_enforcing_all_constraints(self) -> crate::output::ListObjectsV2Output {
|
335 + | crate::output::ListObjectsV2Output {
|
336 + | is_truncated: self.is_truncated,
|
337 + | contents: self.contents,
|
338 + | name: self.name,
|
339 + | prefix: self.prefix,
|
340 + | delimiter: self.delimiter,
|
341 + | max_keys: self.max_keys,
|
342 + | common_prefixes: self.common_prefixes,
|
343 + | encoding_type: self.encoding_type,
|
344 + | key_count: self.key_count,
|
345 + | continuation_token: self.continuation_token,
|
346 + | next_continuation_token: self.next_continuation_token,
|
347 + | start_after: self.start_after,
|
348 + | }
|
349 + | }
|
350 + | }
|
351 + | }
|