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
// 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 ListQueuesOutput {
/// Use this string to request the next batch of queues.
pub next_token: ::std::option::Option<::std::string::String>,
/// List of queues.
pub queues: ::std::option::Option<::std::vec::Vec<crate::types::Queue>>,
/// The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region.
pub total_concurrent_jobs: ::std::option::Option<i32>,
/// The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue.
pub unallocated_concurrent_jobs: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl ListQueuesOutput {
/// Use this string to request the next batch of queues.
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
/// List of queues.
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.queues.is_none()`.
pub fn queues(&self) -> &[crate::types::Queue] {
self.queues.as_deref().unwrap_or_default()
}
/// The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region.
pub fn total_concurrent_jobs(&self) -> ::std::option::Option<i32> {
self.total_concurrent_jobs
}
/// The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue.
pub fn unallocated_concurrent_jobs(&self) -> ::std::option::Option<i32> {
self.unallocated_concurrent_jobs
}
}
impl ::aws_types::request_id::RequestId for ListQueuesOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl ListQueuesOutput {
/// Creates a new builder-style object to manufacture [`ListQueuesOutput`](crate::operation::list_queues::ListQueuesOutput).
pub fn builder() -> crate::operation::list_queues::builders::ListQueuesOutputBuilder {
crate::operation::list_queues::builders::ListQueuesOutputBuilder::default()
}
}
/// A builder for [`ListQueuesOutput`](crate::operation::list_queues::ListQueuesOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListQueuesOutputBuilder {
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) queues: ::std::option::Option<::std::vec::Vec<crate::types::Queue>>,
pub(crate) total_concurrent_jobs: ::std::option::Option<i32>,
pub(crate) unallocated_concurrent_jobs: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl ListQueuesOutputBuilder {
/// Use this string to request the next batch of queues.
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
/// Use this string to request the next batch of queues.
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
/// Use this string to request the next batch of queues.
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
/// Appends an item to `queues`.
///
/// To override the contents of this collection use [`set_queues`](Self::set_queues).
///
/// List of queues.
pub fn queues(mut self, input: crate::types::Queue) -> Self {
let mut v = self.queues.unwrap_or_default();
v.push(input);
self.queues = ::std::option::Option::Some(v);
self
}
/// List of queues.
pub fn set_queues(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Queue>>) -> Self {
self.queues = input;
self
}
/// List of queues.
pub fn get_queues(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Queue>> {
&self.queues
}
/// The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region.
pub fn total_concurrent_jobs(mut self, input: i32) -> Self {
self.total_concurrent_jobs = ::std::option::Option::Some(input);
self
}
/// The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region.
pub fn set_total_concurrent_jobs(mut self, input: ::std::option::Option<i32>) -> Self {
self.total_concurrent_jobs = input;
self
}
/// The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region.
pub fn get_total_concurrent_jobs(&self) -> &::std::option::Option<i32> {
&self.total_concurrent_jobs
}
/// The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue.
pub fn unallocated_concurrent_jobs(mut self, input: i32) -> Self {
self.unallocated_concurrent_jobs = ::std::option::Option::Some(input);
self
}
/// The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue.
pub fn set_unallocated_concurrent_jobs(mut self, input: ::std::option::Option<i32>) -> Self {
self.unallocated_concurrent_jobs = input;
self
}
/// The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue.
pub fn get_unallocated_concurrent_jobs(&self) -> &::std::option::Option<i32> {
&self.unallocated_concurrent_jobs
}
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 [`ListQueuesOutput`](crate::operation::list_queues::ListQueuesOutput).
pub fn build(self) -> crate::operation::list_queues::ListQueuesOutput {
crate::operation::list_queues::ListQueuesOutput {
next_token: self.next_token,
queues: self.queues,
total_concurrent_jobs: self.total_concurrent_jobs,
unallocated_concurrent_jobs: self.unallocated_concurrent_jobs,
_request_id: self._request_id,
}
}
}