aws_sdk_ec2/operation/describe_volumes/
_describe_volumes_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeVolumesInput {
6    /// <p>The volume IDs. If not specified, then all volumes are included in the response.</p>
7    pub volume_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
8    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
9    pub dry_run: ::std::option::Option<bool>,
10    /// <p>The filters.</p>
11    /// <ul>
12    /// <li>
13    /// <p><code>attachment.attach-time</code> - The time stamp when the attachment initiated.</p></li>
14    /// <li>
15    /// <p><code>attachment.delete-on-termination</code> - Whether the volume is deleted on instance termination.</p></li>
16    /// <li>
17    /// <p><code>attachment.device</code> - The device name specified in the block device mapping (for example, <code>/dev/sda1</code>).</p></li>
18    /// <li>
19    /// <p><code>attachment.instance-id</code> - The ID of the instance the volume is attached to.</p></li>
20    /// <li>
21    /// <p><code>attachment.status</code> - The attachment state (<code>attaching</code> | <code>attached</code> | <code>detaching</code>).</p></li>
22    /// <li>
23    /// <p><code>availability-zone</code> - The Availability Zone in which the volume was created.</p></li>
24    /// <li>
25    /// <p><code>create-time</code> - The time stamp when the volume was created.</p></li>
26    /// <li>
27    /// <p><code>encrypted</code> - Indicates whether the volume is encrypted (<code>true</code> | <code>false</code>)</p></li>
28    /// <li>
29    /// <p><code>fast-restored</code> - Indicates whether the volume was created from a snapshot that is enabled for fast snapshot restore (<code>true</code> | <code>false</code>).</p></li>
30    /// <li>
31    /// <p><code>multi-attach-enabled</code> - Indicates whether the volume is enabled for Multi-Attach (<code>true</code> | <code>false</code>)</p></li>
32    /// <li>
33    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed volume.</p></li>
34    /// <li>
35    /// <p><code>operator.principal</code> - The principal that manages the volume. Only valid for managed volumes, where <code>managed</code> is <code>true</code>.</p></li>
36    /// <li>
37    /// <p><code>size</code> - The size of the volume, in GiB.</p></li>
38    /// <li>
39    /// <p><code>snapshot-id</code> - The snapshot from which the volume was created.</p></li>
40    /// <li>
41    /// <p><code>status</code> - The state of the volume (<code>creating</code> | <code>available</code> | <code>in-use</code> | <code>deleting</code> | <code>deleted</code> | <code>error</code>).</p></li>
42    /// <li>
43    /// <p><code>tag</code>:<key>
44    /// - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key
45    /// <code>Owner</code> and the value
46    /// <code>TeamA</code>, specify
47    /// <code>tag:Owner</code> for the filter name and
48    /// <code>TeamA</code> for the filter value.
49    /// </key></p></li>
50    /// <li>
51    /// <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p></li>
52    /// <li>
53    /// <p><code>volume-id</code> - The volume ID.</p></li>
54    /// <li>
55    /// <p><code>volume-type</code> - The Amazon EBS volume type (<code>gp2</code> | <code>gp3</code> | <code>io1</code> | <code>io2</code> | <code>st1</code> | <code>sc1</code>| <code>standard</code>)</p></li>
56    /// </ul>
57    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
58    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
59    pub next_token: ::std::option::Option<::std::string::String>,
60    /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
61    pub max_results: ::std::option::Option<i32>,
62}
63impl DescribeVolumesInput {
64    /// <p>The volume IDs. If not specified, then all volumes are included in the response.</p>
65    ///
66    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.volume_ids.is_none()`.
67    pub fn volume_ids(&self) -> &[::std::string::String] {
68        self.volume_ids.as_deref().unwrap_or_default()
69    }
70    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
71    pub fn dry_run(&self) -> ::std::option::Option<bool> {
72        self.dry_run
73    }
74    /// <p>The filters.</p>
75    /// <ul>
76    /// <li>
77    /// <p><code>attachment.attach-time</code> - The time stamp when the attachment initiated.</p></li>
78    /// <li>
79    /// <p><code>attachment.delete-on-termination</code> - Whether the volume is deleted on instance termination.</p></li>
80    /// <li>
81    /// <p><code>attachment.device</code> - The device name specified in the block device mapping (for example, <code>/dev/sda1</code>).</p></li>
82    /// <li>
83    /// <p><code>attachment.instance-id</code> - The ID of the instance the volume is attached to.</p></li>
84    /// <li>
85    /// <p><code>attachment.status</code> - The attachment state (<code>attaching</code> | <code>attached</code> | <code>detaching</code>).</p></li>
86    /// <li>
87    /// <p><code>availability-zone</code> - The Availability Zone in which the volume was created.</p></li>
88    /// <li>
89    /// <p><code>create-time</code> - The time stamp when the volume was created.</p></li>
90    /// <li>
91    /// <p><code>encrypted</code> - Indicates whether the volume is encrypted (<code>true</code> | <code>false</code>)</p></li>
92    /// <li>
93    /// <p><code>fast-restored</code> - Indicates whether the volume was created from a snapshot that is enabled for fast snapshot restore (<code>true</code> | <code>false</code>).</p></li>
94    /// <li>
95    /// <p><code>multi-attach-enabled</code> - Indicates whether the volume is enabled for Multi-Attach (<code>true</code> | <code>false</code>)</p></li>
96    /// <li>
97    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed volume.</p></li>
98    /// <li>
99    /// <p><code>operator.principal</code> - The principal that manages the volume. Only valid for managed volumes, where <code>managed</code> is <code>true</code>.</p></li>
100    /// <li>
101    /// <p><code>size</code> - The size of the volume, in GiB.</p></li>
102    /// <li>
103    /// <p><code>snapshot-id</code> - The snapshot from which the volume was created.</p></li>
104    /// <li>
105    /// <p><code>status</code> - The state of the volume (<code>creating</code> | <code>available</code> | <code>in-use</code> | <code>deleting</code> | <code>deleted</code> | <code>error</code>).</p></li>
106    /// <li>
107    /// <p><code>tag</code>:<key>
108    /// - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key
109    /// <code>Owner</code> and the value
110    /// <code>TeamA</code>, specify
111    /// <code>tag:Owner</code> for the filter name and
112    /// <code>TeamA</code> for the filter value.
113    /// </key></p></li>
114    /// <li>
115    /// <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p></li>
116    /// <li>
117    /// <p><code>volume-id</code> - The volume ID.</p></li>
118    /// <li>
119    /// <p><code>volume-type</code> - The Amazon EBS volume type (<code>gp2</code> | <code>gp3</code> | <code>io1</code> | <code>io2</code> | <code>st1</code> | <code>sc1</code>| <code>standard</code>)</p></li>
120    /// </ul>
121    ///
122    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
123    pub fn filters(&self) -> &[crate::types::Filter] {
124        self.filters.as_deref().unwrap_or_default()
125    }
126    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
127    pub fn next_token(&self) -> ::std::option::Option<&str> {
128        self.next_token.as_deref()
129    }
130    /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
131    pub fn max_results(&self) -> ::std::option::Option<i32> {
132        self.max_results
133    }
134}
135impl DescribeVolumesInput {
136    /// Creates a new builder-style object to manufacture [`DescribeVolumesInput`](crate::operation::describe_volumes::DescribeVolumesInput).
137    pub fn builder() -> crate::operation::describe_volumes::builders::DescribeVolumesInputBuilder {
138        crate::operation::describe_volumes::builders::DescribeVolumesInputBuilder::default()
139    }
140}
141
142/// A builder for [`DescribeVolumesInput`](crate::operation::describe_volumes::DescribeVolumesInput).
143#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
144#[non_exhaustive]
145pub struct DescribeVolumesInputBuilder {
146    pub(crate) volume_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
147    pub(crate) dry_run: ::std::option::Option<bool>,
148    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
149    pub(crate) next_token: ::std::option::Option<::std::string::String>,
150    pub(crate) max_results: ::std::option::Option<i32>,
151}
152impl DescribeVolumesInputBuilder {
153    /// Appends an item to `volume_ids`.
154    ///
155    /// To override the contents of this collection use [`set_volume_ids`](Self::set_volume_ids).
156    ///
157    /// <p>The volume IDs. If not specified, then all volumes are included in the response.</p>
158    pub fn volume_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
159        let mut v = self.volume_ids.unwrap_or_default();
160        v.push(input.into());
161        self.volume_ids = ::std::option::Option::Some(v);
162        self
163    }
164    /// <p>The volume IDs. If not specified, then all volumes are included in the response.</p>
165    pub fn set_volume_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
166        self.volume_ids = input;
167        self
168    }
169    /// <p>The volume IDs. If not specified, then all volumes are included in the response.</p>
170    pub fn get_volume_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
171        &self.volume_ids
172    }
173    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
174    pub fn dry_run(mut self, input: bool) -> Self {
175        self.dry_run = ::std::option::Option::Some(input);
176        self
177    }
178    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
179    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
180        self.dry_run = input;
181        self
182    }
183    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
184    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
185        &self.dry_run
186    }
187    /// Appends an item to `filters`.
188    ///
189    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
190    ///
191    /// <p>The filters.</p>
192    /// <ul>
193    /// <li>
194    /// <p><code>attachment.attach-time</code> - The time stamp when the attachment initiated.</p></li>
195    /// <li>
196    /// <p><code>attachment.delete-on-termination</code> - Whether the volume is deleted on instance termination.</p></li>
197    /// <li>
198    /// <p><code>attachment.device</code> - The device name specified in the block device mapping (for example, <code>/dev/sda1</code>).</p></li>
199    /// <li>
200    /// <p><code>attachment.instance-id</code> - The ID of the instance the volume is attached to.</p></li>
201    /// <li>
202    /// <p><code>attachment.status</code> - The attachment state (<code>attaching</code> | <code>attached</code> | <code>detaching</code>).</p></li>
203    /// <li>
204    /// <p><code>availability-zone</code> - The Availability Zone in which the volume was created.</p></li>
205    /// <li>
206    /// <p><code>create-time</code> - The time stamp when the volume was created.</p></li>
207    /// <li>
208    /// <p><code>encrypted</code> - Indicates whether the volume is encrypted (<code>true</code> | <code>false</code>)</p></li>
209    /// <li>
210    /// <p><code>fast-restored</code> - Indicates whether the volume was created from a snapshot that is enabled for fast snapshot restore (<code>true</code> | <code>false</code>).</p></li>
211    /// <li>
212    /// <p><code>multi-attach-enabled</code> - Indicates whether the volume is enabled for Multi-Attach (<code>true</code> | <code>false</code>)</p></li>
213    /// <li>
214    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed volume.</p></li>
215    /// <li>
216    /// <p><code>operator.principal</code> - The principal that manages the volume. Only valid for managed volumes, where <code>managed</code> is <code>true</code>.</p></li>
217    /// <li>
218    /// <p><code>size</code> - The size of the volume, in GiB.</p></li>
219    /// <li>
220    /// <p><code>snapshot-id</code> - The snapshot from which the volume was created.</p></li>
221    /// <li>
222    /// <p><code>status</code> - The state of the volume (<code>creating</code> | <code>available</code> | <code>in-use</code> | <code>deleting</code> | <code>deleted</code> | <code>error</code>).</p></li>
223    /// <li>
224    /// <p><code>tag</code>:<key>
225    /// - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key
226    /// <code>Owner</code> and the value
227    /// <code>TeamA</code>, specify
228    /// <code>tag:Owner</code> for the filter name and
229    /// <code>TeamA</code> for the filter value.
230    /// </key></p></li>
231    /// <li>
232    /// <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p></li>
233    /// <li>
234    /// <p><code>volume-id</code> - The volume ID.</p></li>
235    /// <li>
236    /// <p><code>volume-type</code> - The Amazon EBS volume type (<code>gp2</code> | <code>gp3</code> | <code>io1</code> | <code>io2</code> | <code>st1</code> | <code>sc1</code>| <code>standard</code>)</p></li>
237    /// </ul>
238    pub fn filters(mut self, input: crate::types::Filter) -> Self {
239        let mut v = self.filters.unwrap_or_default();
240        v.push(input);
241        self.filters = ::std::option::Option::Some(v);
242        self
243    }
244    /// <p>The filters.</p>
245    /// <ul>
246    /// <li>
247    /// <p><code>attachment.attach-time</code> - The time stamp when the attachment initiated.</p></li>
248    /// <li>
249    /// <p><code>attachment.delete-on-termination</code> - Whether the volume is deleted on instance termination.</p></li>
250    /// <li>
251    /// <p><code>attachment.device</code> - The device name specified in the block device mapping (for example, <code>/dev/sda1</code>).</p></li>
252    /// <li>
253    /// <p><code>attachment.instance-id</code> - The ID of the instance the volume is attached to.</p></li>
254    /// <li>
255    /// <p><code>attachment.status</code> - The attachment state (<code>attaching</code> | <code>attached</code> | <code>detaching</code>).</p></li>
256    /// <li>
257    /// <p><code>availability-zone</code> - The Availability Zone in which the volume was created.</p></li>
258    /// <li>
259    /// <p><code>create-time</code> - The time stamp when the volume was created.</p></li>
260    /// <li>
261    /// <p><code>encrypted</code> - Indicates whether the volume is encrypted (<code>true</code> | <code>false</code>)</p></li>
262    /// <li>
263    /// <p><code>fast-restored</code> - Indicates whether the volume was created from a snapshot that is enabled for fast snapshot restore (<code>true</code> | <code>false</code>).</p></li>
264    /// <li>
265    /// <p><code>multi-attach-enabled</code> - Indicates whether the volume is enabled for Multi-Attach (<code>true</code> | <code>false</code>)</p></li>
266    /// <li>
267    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed volume.</p></li>
268    /// <li>
269    /// <p><code>operator.principal</code> - The principal that manages the volume. Only valid for managed volumes, where <code>managed</code> is <code>true</code>.</p></li>
270    /// <li>
271    /// <p><code>size</code> - The size of the volume, in GiB.</p></li>
272    /// <li>
273    /// <p><code>snapshot-id</code> - The snapshot from which the volume was created.</p></li>
274    /// <li>
275    /// <p><code>status</code> - The state of the volume (<code>creating</code> | <code>available</code> | <code>in-use</code> | <code>deleting</code> | <code>deleted</code> | <code>error</code>).</p></li>
276    /// <li>
277    /// <p><code>tag</code>:<key>
278    /// - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key
279    /// <code>Owner</code> and the value
280    /// <code>TeamA</code>, specify
281    /// <code>tag:Owner</code> for the filter name and
282    /// <code>TeamA</code> for the filter value.
283    /// </key></p></li>
284    /// <li>
285    /// <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p></li>
286    /// <li>
287    /// <p><code>volume-id</code> - The volume ID.</p></li>
288    /// <li>
289    /// <p><code>volume-type</code> - The Amazon EBS volume type (<code>gp2</code> | <code>gp3</code> | <code>io1</code> | <code>io2</code> | <code>st1</code> | <code>sc1</code>| <code>standard</code>)</p></li>
290    /// </ul>
291    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
292        self.filters = input;
293        self
294    }
295    /// <p>The filters.</p>
296    /// <ul>
297    /// <li>
298    /// <p><code>attachment.attach-time</code> - The time stamp when the attachment initiated.</p></li>
299    /// <li>
300    /// <p><code>attachment.delete-on-termination</code> - Whether the volume is deleted on instance termination.</p></li>
301    /// <li>
302    /// <p><code>attachment.device</code> - The device name specified in the block device mapping (for example, <code>/dev/sda1</code>).</p></li>
303    /// <li>
304    /// <p><code>attachment.instance-id</code> - The ID of the instance the volume is attached to.</p></li>
305    /// <li>
306    /// <p><code>attachment.status</code> - The attachment state (<code>attaching</code> | <code>attached</code> | <code>detaching</code>).</p></li>
307    /// <li>
308    /// <p><code>availability-zone</code> - The Availability Zone in which the volume was created.</p></li>
309    /// <li>
310    /// <p><code>create-time</code> - The time stamp when the volume was created.</p></li>
311    /// <li>
312    /// <p><code>encrypted</code> - Indicates whether the volume is encrypted (<code>true</code> | <code>false</code>)</p></li>
313    /// <li>
314    /// <p><code>fast-restored</code> - Indicates whether the volume was created from a snapshot that is enabled for fast snapshot restore (<code>true</code> | <code>false</code>).</p></li>
315    /// <li>
316    /// <p><code>multi-attach-enabled</code> - Indicates whether the volume is enabled for Multi-Attach (<code>true</code> | <code>false</code>)</p></li>
317    /// <li>
318    /// <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed volume.</p></li>
319    /// <li>
320    /// <p><code>operator.principal</code> - The principal that manages the volume. Only valid for managed volumes, where <code>managed</code> is <code>true</code>.</p></li>
321    /// <li>
322    /// <p><code>size</code> - The size of the volume, in GiB.</p></li>
323    /// <li>
324    /// <p><code>snapshot-id</code> - The snapshot from which the volume was created.</p></li>
325    /// <li>
326    /// <p><code>status</code> - The state of the volume (<code>creating</code> | <code>available</code> | <code>in-use</code> | <code>deleting</code> | <code>deleted</code> | <code>error</code>).</p></li>
327    /// <li>
328    /// <p><code>tag</code>:<key>
329    /// - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key
330    /// <code>Owner</code> and the value
331    /// <code>TeamA</code>, specify
332    /// <code>tag:Owner</code> for the filter name and
333    /// <code>TeamA</code> for the filter value.
334    /// </key></p></li>
335    /// <li>
336    /// <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p></li>
337    /// <li>
338    /// <p><code>volume-id</code> - The volume ID.</p></li>
339    /// <li>
340    /// <p><code>volume-type</code> - The Amazon EBS volume type (<code>gp2</code> | <code>gp3</code> | <code>io1</code> | <code>io2</code> | <code>st1</code> | <code>sc1</code>| <code>standard</code>)</p></li>
341    /// </ul>
342    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
343        &self.filters
344    }
345    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
346    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
347        self.next_token = ::std::option::Option::Some(input.into());
348        self
349    }
350    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
351    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
352        self.next_token = input;
353        self
354    }
355    /// <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
356    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
357        &self.next_token
358    }
359    /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
360    pub fn max_results(mut self, input: i32) -> Self {
361        self.max_results = ::std::option::Option::Some(input);
362        self
363    }
364    /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
365    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
366        self.max_results = input;
367        self
368    }
369    /// <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
370    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
371        &self.max_results
372    }
373    /// Consumes the builder and constructs a [`DescribeVolumesInput`](crate::operation::describe_volumes::DescribeVolumesInput).
374    pub fn build(
375        self,
376    ) -> ::std::result::Result<crate::operation::describe_volumes::DescribeVolumesInput, ::aws_smithy_types::error::operation::BuildError> {
377        ::std::result::Result::Ok(crate::operation::describe_volumes::DescribeVolumesInput {
378            volume_ids: self.volume_ids,
379            dry_run: self.dry_run,
380            filters: self.filters,
381            next_token: self.next_token,
382            max_results: self.max_results,
383        })
384    }
385}