aws_sdk_mediaconvert/operation/update_queue/_update_queue_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 UpdateQueueInput {
6 /// Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment.
7 pub concurrent_jobs: ::std::option::Option<i32>,
8 /// The new description for the queue, if you are changing it.
9 pub description: ::std::option::Option<::std::string::String>,
10 /// Specify the maximum number of Elemental Inference feeds MediaConvert can process concurrently.
11 pub maximum_concurrent_feeds: ::std::option::Option<i32>,
12 /// The name of the queue that you are modifying.
13 pub name: ::std::option::Option<::std::string::String>,
14 /// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
15 pub reservation_plan_settings: ::std::option::Option<crate::types::ReservationPlanSettings>,
16 /// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
17 pub status: ::std::option::Option<crate::types::QueueStatus>,
18}
19impl UpdateQueueInput {
20 /// Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment.
21 pub fn concurrent_jobs(&self) -> ::std::option::Option<i32> {
22 self.concurrent_jobs
23 }
24 /// The new description for the queue, if you are changing it.
25 pub fn description(&self) -> ::std::option::Option<&str> {
26 self.description.as_deref()
27 }
28 /// Specify the maximum number of Elemental Inference feeds MediaConvert can process concurrently.
29 pub fn maximum_concurrent_feeds(&self) -> ::std::option::Option<i32> {
30 self.maximum_concurrent_feeds
31 }
32 /// The name of the queue that you are modifying.
33 pub fn name(&self) -> ::std::option::Option<&str> {
34 self.name.as_deref()
35 }
36 /// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
37 pub fn reservation_plan_settings(&self) -> ::std::option::Option<&crate::types::ReservationPlanSettings> {
38 self.reservation_plan_settings.as_ref()
39 }
40 /// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
41 pub fn status(&self) -> ::std::option::Option<&crate::types::QueueStatus> {
42 self.status.as_ref()
43 }
44}
45impl UpdateQueueInput {
46 /// Creates a new builder-style object to manufacture [`UpdateQueueInput`](crate::operation::update_queue::UpdateQueueInput).
47 pub fn builder() -> crate::operation::update_queue::builders::UpdateQueueInputBuilder {
48 crate::operation::update_queue::builders::UpdateQueueInputBuilder::default()
49 }
50}
51
52/// A builder for [`UpdateQueueInput`](crate::operation::update_queue::UpdateQueueInput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct UpdateQueueInputBuilder {
56 pub(crate) concurrent_jobs: ::std::option::Option<i32>,
57 pub(crate) description: ::std::option::Option<::std::string::String>,
58 pub(crate) maximum_concurrent_feeds: ::std::option::Option<i32>,
59 pub(crate) name: ::std::option::Option<::std::string::String>,
60 pub(crate) reservation_plan_settings: ::std::option::Option<crate::types::ReservationPlanSettings>,
61 pub(crate) status: ::std::option::Option<crate::types::QueueStatus>,
62}
63impl UpdateQueueInputBuilder {
64 /// Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment.
65 pub fn concurrent_jobs(mut self, input: i32) -> Self {
66 self.concurrent_jobs = ::std::option::Option::Some(input);
67 self
68 }
69 /// Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment.
70 pub fn set_concurrent_jobs(mut self, input: ::std::option::Option<i32>) -> Self {
71 self.concurrent_jobs = input;
72 self
73 }
74 /// Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment.
75 pub fn get_concurrent_jobs(&self) -> &::std::option::Option<i32> {
76 &self.concurrent_jobs
77 }
78 /// The new description for the queue, if you are changing it.
79 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80 self.description = ::std::option::Option::Some(input.into());
81 self
82 }
83 /// The new description for the queue, if you are changing it.
84 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85 self.description = input;
86 self
87 }
88 /// The new description for the queue, if you are changing it.
89 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
90 &self.description
91 }
92 /// Specify the maximum number of Elemental Inference feeds MediaConvert can process concurrently.
93 pub fn maximum_concurrent_feeds(mut self, input: i32) -> Self {
94 self.maximum_concurrent_feeds = ::std::option::Option::Some(input);
95 self
96 }
97 /// Specify the maximum number of Elemental Inference feeds MediaConvert can process concurrently.
98 pub fn set_maximum_concurrent_feeds(mut self, input: ::std::option::Option<i32>) -> Self {
99 self.maximum_concurrent_feeds = input;
100 self
101 }
102 /// Specify the maximum number of Elemental Inference feeds MediaConvert can process concurrently.
103 pub fn get_maximum_concurrent_feeds(&self) -> &::std::option::Option<i32> {
104 &self.maximum_concurrent_feeds
105 }
106 /// The name of the queue that you are modifying.
107 /// This field is required.
108 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
109 self.name = ::std::option::Option::Some(input.into());
110 self
111 }
112 /// The name of the queue that you are modifying.
113 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114 self.name = input;
115 self
116 }
117 /// The name of the queue that you are modifying.
118 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
119 &self.name
120 }
121 /// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
122 pub fn reservation_plan_settings(mut self, input: crate::types::ReservationPlanSettings) -> Self {
123 self.reservation_plan_settings = ::std::option::Option::Some(input);
124 self
125 }
126 /// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
127 pub fn set_reservation_plan_settings(mut self, input: ::std::option::Option<crate::types::ReservationPlanSettings>) -> Self {
128 self.reservation_plan_settings = input;
129 self
130 }
131 /// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
132 pub fn get_reservation_plan_settings(&self) -> &::std::option::Option<crate::types::ReservationPlanSettings> {
133 &self.reservation_plan_settings
134 }
135 /// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
136 pub fn status(mut self, input: crate::types::QueueStatus) -> Self {
137 self.status = ::std::option::Option::Some(input);
138 self
139 }
140 /// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
141 pub fn set_status(mut self, input: ::std::option::Option<crate::types::QueueStatus>) -> Self {
142 self.status = input;
143 self
144 }
145 /// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
146 pub fn get_status(&self) -> &::std::option::Option<crate::types::QueueStatus> {
147 &self.status
148 }
149 /// Consumes the builder and constructs a [`UpdateQueueInput`](crate::operation::update_queue::UpdateQueueInput).
150 pub fn build(self) -> ::std::result::Result<crate::operation::update_queue::UpdateQueueInput, ::aws_smithy_types::error::operation::BuildError> {
151 ::std::result::Result::Ok(crate::operation::update_queue::UpdateQueueInput {
152 concurrent_jobs: self.concurrent_jobs,
153 description: self.description,
154 maximum_concurrent_feeds: self.maximum_concurrent_feeds,
155 name: self.name,
156 reservation_plan_settings: self.reservation_plan_settings,
157 status: self.status,
158 })
159 }
160}