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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
// 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 UpdateJobTemplateInput {
/// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
pub acceleration_settings: ::std::option::Option<crate::types::AccelerationSettings>,
/// The new category for the job template, if you are changing it.
pub category: ::std::option::Option<::std::string::String>,
/// The new description for the job template, if you are changing it.
pub description: ::std::option::Option<::std::string::String>,
/// Optional list of hop destinations.
pub hop_destinations: ::std::option::Option<::std::vec::Vec<crate::types::HopDestination>>,
/// The name of the job template you are modifying
pub name: ::std::option::Option<::std::string::String>,
/// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
pub priority: ::std::option::Option<i32>,
/// The new queue for the job template, if you are changing it.
pub queue: ::std::option::Option<::std::string::String>,
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub settings: ::std::option::Option<crate::types::JobTemplateSettings>,
/// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
pub status_update_interval: ::std::option::Option<crate::types::StatusUpdateInterval>,
}
impl UpdateJobTemplateInput {
/// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
pub fn acceleration_settings(&self) -> ::std::option::Option<&crate::types::AccelerationSettings> {
self.acceleration_settings.as_ref()
}
/// The new category for the job template, if you are changing it.
pub fn category(&self) -> ::std::option::Option<&str> {
self.category.as_deref()
}
/// The new description for the job template, if you are changing it.
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// Optional list of hop destinations.
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.hop_destinations.is_none()`.
pub fn hop_destinations(&self) -> &[crate::types::HopDestination] {
self.hop_destinations.as_deref().unwrap_or_default()
}
/// The name of the job template you are modifying
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
pub fn priority(&self) -> ::std::option::Option<i32> {
self.priority
}
/// The new queue for the job template, if you are changing it.
pub fn queue(&self) -> ::std::option::Option<&str> {
self.queue.as_deref()
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn settings(&self) -> ::std::option::Option<&crate::types::JobTemplateSettings> {
self.settings.as_ref()
}
/// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
pub fn status_update_interval(&self) -> ::std::option::Option<&crate::types::StatusUpdateInterval> {
self.status_update_interval.as_ref()
}
}
impl UpdateJobTemplateInput {
/// Creates a new builder-style object to manufacture [`UpdateJobTemplateInput`](crate::operation::update_job_template::UpdateJobTemplateInput).
pub fn builder() -> crate::operation::update_job_template::builders::UpdateJobTemplateInputBuilder {
crate::operation::update_job_template::builders::UpdateJobTemplateInputBuilder::default()
}
}
/// A builder for [`UpdateJobTemplateInput`](crate::operation::update_job_template::UpdateJobTemplateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateJobTemplateInputBuilder {
pub(crate) acceleration_settings: ::std::option::Option<crate::types::AccelerationSettings>,
pub(crate) category: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) hop_destinations: ::std::option::Option<::std::vec::Vec<crate::types::HopDestination>>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) priority: ::std::option::Option<i32>,
pub(crate) queue: ::std::option::Option<::std::string::String>,
pub(crate) settings: ::std::option::Option<crate::types::JobTemplateSettings>,
pub(crate) status_update_interval: ::std::option::Option<crate::types::StatusUpdateInterval>,
}
impl UpdateJobTemplateInputBuilder {
/// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
pub fn acceleration_settings(mut self, input: crate::types::AccelerationSettings) -> Self {
self.acceleration_settings = ::std::option::Option::Some(input);
self
}
/// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
pub fn set_acceleration_settings(mut self, input: ::std::option::Option<crate::types::AccelerationSettings>) -> Self {
self.acceleration_settings = input;
self
}
/// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
pub fn get_acceleration_settings(&self) -> &::std::option::Option<crate::types::AccelerationSettings> {
&self.acceleration_settings
}
/// The new category for the job template, if you are changing it.
pub fn category(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.category = ::std::option::Option::Some(input.into());
self
}
/// The new category for the job template, if you are changing it.
pub fn set_category(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.category = input;
self
}
/// The new category for the job template, if you are changing it.
pub fn get_category(&self) -> &::std::option::Option<::std::string::String> {
&self.category
}
/// The new description for the job template, if you are changing it.
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// The new description for the job template, if you are changing it.
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// The new description for the job template, if you are changing it.
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// Appends an item to `hop_destinations`.
///
/// To override the contents of this collection use [`set_hop_destinations`](Self::set_hop_destinations).
///
/// Optional list of hop destinations.
pub fn hop_destinations(mut self, input: crate::types::HopDestination) -> Self {
let mut v = self.hop_destinations.unwrap_or_default();
v.push(input);
self.hop_destinations = ::std::option::Option::Some(v);
self
}
/// Optional list of hop destinations.
pub fn set_hop_destinations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::HopDestination>>) -> Self {
self.hop_destinations = input;
self
}
/// Optional list of hop destinations.
pub fn get_hop_destinations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::HopDestination>> {
&self.hop_destinations
}
/// The name of the job template you are modifying
/// This field is required.
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// The name of the job template you are modifying
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// The name of the job template you are modifying
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
pub fn priority(mut self, input: i32) -> Self {
self.priority = ::std::option::Option::Some(input);
self
}
/// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
self.priority = input;
self
}
/// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
pub fn get_priority(&self) -> &::std::option::Option<i32> {
&self.priority
}
/// The new queue for the job template, if you are changing it.
pub fn queue(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.queue = ::std::option::Option::Some(input.into());
self
}
/// The new queue for the job template, if you are changing it.
pub fn set_queue(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.queue = input;
self
}
/// The new queue for the job template, if you are changing it.
pub fn get_queue(&self) -> &::std::option::Option<::std::string::String> {
&self.queue
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn settings(mut self, input: crate::types::JobTemplateSettings) -> Self {
self.settings = ::std::option::Option::Some(input);
self
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn set_settings(mut self, input: ::std::option::Option<crate::types::JobTemplateSettings>) -> Self {
self.settings = input;
self
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn get_settings(&self) -> &::std::option::Option<crate::types::JobTemplateSettings> {
&self.settings
}
/// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
pub fn status_update_interval(mut self, input: crate::types::StatusUpdateInterval) -> Self {
self.status_update_interval = ::std::option::Option::Some(input);
self
}
/// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
pub fn set_status_update_interval(mut self, input: ::std::option::Option<crate::types::StatusUpdateInterval>) -> Self {
self.status_update_interval = input;
self
}
/// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
pub fn get_status_update_interval(&self) -> &::std::option::Option<crate::types::StatusUpdateInterval> {
&self.status_update_interval
}
/// Consumes the builder and constructs a [`UpdateJobTemplateInput`](crate::operation::update_job_template::UpdateJobTemplateInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_job_template::UpdateJobTemplateInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_job_template::UpdateJobTemplateInput {
acceleration_settings: self.acceleration_settings,
category: self.category,
description: self.description,
hop_destinations: self.hop_destinations,
name: self.name,
priority: self.priority,
queue: self.queue,
settings: self.settings,
status_update_interval: self.status_update_interval,
})
}
}