aws_sdk_mediaconvert/operation/get_queue/_get_queue_output.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 GetQueueOutput {
6 /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
7 pub queue: ::std::option::Option<crate::types::Queue>,
8 _request_id: Option<String>,
9}
10impl GetQueueOutput {
11 /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
12 pub fn queue(&self) -> ::std::option::Option<&crate::types::Queue> {
13 self.queue.as_ref()
14 }
15}
16impl ::aws_types::request_id::RequestId for GetQueueOutput {
17 fn request_id(&self) -> Option<&str> {
18 self._request_id.as_deref()
19 }
20}
21impl GetQueueOutput {
22 /// Creates a new builder-style object to manufacture [`GetQueueOutput`](crate::operation::get_queue::GetQueueOutput).
23 pub fn builder() -> crate::operation::get_queue::builders::GetQueueOutputBuilder {
24 crate::operation::get_queue::builders::GetQueueOutputBuilder::default()
25 }
26}
27
28/// A builder for [`GetQueueOutput`](crate::operation::get_queue::GetQueueOutput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetQueueOutputBuilder {
32 pub(crate) queue: ::std::option::Option<crate::types::Queue>,
33 _request_id: Option<String>,
34}
35impl GetQueueOutputBuilder {
36 /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
37 pub fn queue(mut self, input: crate::types::Queue) -> Self {
38 self.queue = ::std::option::Option::Some(input);
39 self
40 }
41 /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
42 pub fn set_queue(mut self, input: ::std::option::Option<crate::types::Queue>) -> Self {
43 self.queue = input;
44 self
45 }
46 /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
47 pub fn get_queue(&self) -> &::std::option::Option<crate::types::Queue> {
48 &self.queue
49 }
50 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
51 self._request_id = Some(request_id.into());
52 self
53 }
54
55 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
56 self._request_id = request_id;
57 self
58 }
59 /// Consumes the builder and constructs a [`GetQueueOutput`](crate::operation::get_queue::GetQueueOutput).
60 pub fn build(self) -> crate::operation::get_queue::GetQueueOutput {
61 crate::operation::get_queue::GetQueueOutput {
62 queue: self.queue,
63 _request_id: self._request_id,
64 }
65 }
66}