aws_sdk_batch/operation/register_job_definition/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::register_job_definition::_register_job_definition_output::RegisterJobDefinitionOutputBuilder;
3
4pub use crate::operation::register_job_definition::_register_job_definition_input::RegisterJobDefinitionInputBuilder;
5
6impl crate::operation::register_job_definition::builders::RegisterJobDefinitionInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::register_job_definition::RegisterJobDefinitionOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::register_job_definition::RegisterJobDefinitionError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.register_job_definition();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `RegisterJobDefinition`.
24///
25/// <p>Registers an Batch job definition.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct RegisterJobDefinitionFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::register_job_definition::builders::RegisterJobDefinitionInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::register_job_definition::RegisterJobDefinitionOutput,
35        crate::operation::register_job_definition::RegisterJobDefinitionError,
36    > for RegisterJobDefinitionFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::register_job_definition::RegisterJobDefinitionOutput,
44            crate::operation::register_job_definition::RegisterJobDefinitionError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl RegisterJobDefinitionFluentBuilder {
51    /// Creates a new `RegisterJobDefinitionFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the RegisterJobDefinition as a reference.
60    pub fn as_input(&self) -> &crate::operation::register_job_definition::builders::RegisterJobDefinitionInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::register_job_definition::RegisterJobDefinitionOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::register_job_definition::RegisterJobDefinitionError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::register_job_definition::RegisterJobDefinition::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::register_job_definition::RegisterJobDefinition::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::register_job_definition::RegisterJobDefinitionOutput,
97        crate::operation::register_job_definition::RegisterJobDefinitionError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).</p>
112    pub fn job_definition_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.job_definition_name(input.into());
114        self
115    }
116    /// <p>The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).</p>
117    pub fn set_job_definition_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_job_definition_name(input);
119        self
120    }
121    /// <p>The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).</p>
122    pub fn get_job_definition_name(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_job_definition_name()
124    }
125    /// <p>The type of job definition. For more information about multi-node parallel jobs, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html">Creating a multi-node parallel job definition</a> in the <i>Batch User Guide</i>.</p>
126    /// <ul>
127    /// <li>
128    /// <p>If the value is <code>container</code>, then one of the following is required: <code>containerProperties</code>, <code>ecsProperties</code>, or <code>eksProperties</code>.</p></li>
129    /// <li>
130    /// <p>If the value is <code>multinode</code>, then <code>nodeProperties</code> is required.</p></li>
131    /// </ul><note>
132    /// <p>If the job is run on Fargate resources, then <code>multinode</code> isn't supported.</p>
133    /// </note>
134    pub fn r#type(mut self, input: crate::types::JobDefinitionType) -> Self {
135        self.inner = self.inner.r#type(input);
136        self
137    }
138    /// <p>The type of job definition. For more information about multi-node parallel jobs, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html">Creating a multi-node parallel job definition</a> in the <i>Batch User Guide</i>.</p>
139    /// <ul>
140    /// <li>
141    /// <p>If the value is <code>container</code>, then one of the following is required: <code>containerProperties</code>, <code>ecsProperties</code>, or <code>eksProperties</code>.</p></li>
142    /// <li>
143    /// <p>If the value is <code>multinode</code>, then <code>nodeProperties</code> is required.</p></li>
144    /// </ul><note>
145    /// <p>If the job is run on Fargate resources, then <code>multinode</code> isn't supported.</p>
146    /// </note>
147    pub fn set_type(mut self, input: ::std::option::Option<crate::types::JobDefinitionType>) -> Self {
148        self.inner = self.inner.set_type(input);
149        self
150    }
151    /// <p>The type of job definition. For more information about multi-node parallel jobs, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html">Creating a multi-node parallel job definition</a> in the <i>Batch User Guide</i>.</p>
152    /// <ul>
153    /// <li>
154    /// <p>If the value is <code>container</code>, then one of the following is required: <code>containerProperties</code>, <code>ecsProperties</code>, or <code>eksProperties</code>.</p></li>
155    /// <li>
156    /// <p>If the value is <code>multinode</code>, then <code>nodeProperties</code> is required.</p></li>
157    /// </ul><note>
158    /// <p>If the job is run on Fargate resources, then <code>multinode</code> isn't supported.</p>
159    /// </note>
160    pub fn get_type(&self) -> &::std::option::Option<crate::types::JobDefinitionType> {
161        self.inner.get_type()
162    }
163    ///
164    /// Adds a key-value pair to `parameters`.
165    ///
166    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
167    ///
168    /// <p>Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a <code>SubmitJob</code> request override any corresponding parameter defaults from the job definition.</p>
169    pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
170        self.inner = self.inner.parameters(k.into(), v.into());
171        self
172    }
173    /// <p>Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a <code>SubmitJob</code> request override any corresponding parameter defaults from the job definition.</p>
174    pub fn set_parameters(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
175        self.inner = self.inner.set_parameters(input);
176        self
177    }
178    /// <p>Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a <code>SubmitJob</code> request override any corresponding parameter defaults from the job definition.</p>
179    pub fn get_parameters(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
180        self.inner.get_parameters()
181    }
182    /// <p>The scheduling priority for jobs that are submitted with this job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.</p>
183    /// <p>The minimum supported value is 0 and the maximum supported value is 9999.</p>
184    pub fn scheduling_priority(mut self, input: i32) -> Self {
185        self.inner = self.inner.scheduling_priority(input);
186        self
187    }
188    /// <p>The scheduling priority for jobs that are submitted with this job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.</p>
189    /// <p>The minimum supported value is 0 and the maximum supported value is 9999.</p>
190    pub fn set_scheduling_priority(mut self, input: ::std::option::Option<i32>) -> Self {
191        self.inner = self.inner.set_scheduling_priority(input);
192        self
193    }
194    /// <p>The scheduling priority for jobs that are submitted with this job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.</p>
195    /// <p>The minimum supported value is 0 and the maximum supported value is 9999.</p>
196    pub fn get_scheduling_priority(&self) -> &::std::option::Option<i32> {
197        self.inner.get_scheduling_priority()
198    }
199    /// <p>An object with properties specific to Amazon ECS-based single-node container-based jobs. If the job definition's <code>type</code> parameter is <code>container</code>, then you must specify either <code>containerProperties</code> or <code>nodeProperties</code>. This must not be specified for Amazon EKS-based job definitions.</p><note>
200    /// <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use only <code>containerProperties</code>.</p>
201    /// </note>
202    pub fn container_properties(mut self, input: crate::types::ContainerProperties) -> Self {
203        self.inner = self.inner.container_properties(input);
204        self
205    }
206    /// <p>An object with properties specific to Amazon ECS-based single-node container-based jobs. If the job definition's <code>type</code> parameter is <code>container</code>, then you must specify either <code>containerProperties</code> or <code>nodeProperties</code>. This must not be specified for Amazon EKS-based job definitions.</p><note>
207    /// <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use only <code>containerProperties</code>.</p>
208    /// </note>
209    pub fn set_container_properties(mut self, input: ::std::option::Option<crate::types::ContainerProperties>) -> Self {
210        self.inner = self.inner.set_container_properties(input);
211        self
212    }
213    /// <p>An object with properties specific to Amazon ECS-based single-node container-based jobs. If the job definition's <code>type</code> parameter is <code>container</code>, then you must specify either <code>containerProperties</code> or <code>nodeProperties</code>. This must not be specified for Amazon EKS-based job definitions.</p><note>
214    /// <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use only <code>containerProperties</code>.</p>
215    /// </note>
216    pub fn get_container_properties(&self) -> &::std::option::Option<crate::types::ContainerProperties> {
217        self.inner.get_container_properties()
218    }
219    /// <p>An object with properties specific to multi-node parallel jobs. If you specify node properties for a job, it becomes a multi-node parallel job. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html">Multi-node Parallel Jobs</a> in the <i>Batch User Guide</i>.</p><note>
220    /// <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use <code>containerProperties</code> instead.</p>
221    /// </note> <note>
222    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>nodeProperties</code>.</p>
223    /// </note>
224    pub fn node_properties(mut self, input: crate::types::NodeProperties) -> Self {
225        self.inner = self.inner.node_properties(input);
226        self
227    }
228    /// <p>An object with properties specific to multi-node parallel jobs. If you specify node properties for a job, it becomes a multi-node parallel job. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html">Multi-node Parallel Jobs</a> in the <i>Batch User Guide</i>.</p><note>
229    /// <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use <code>containerProperties</code> instead.</p>
230    /// </note> <note>
231    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>nodeProperties</code>.</p>
232    /// </note>
233    pub fn set_node_properties(mut self, input: ::std::option::Option<crate::types::NodeProperties>) -> Self {
234        self.inner = self.inner.set_node_properties(input);
235        self
236    }
237    /// <p>An object with properties specific to multi-node parallel jobs. If you specify node properties for a job, it becomes a multi-node parallel job. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html">Multi-node Parallel Jobs</a> in the <i>Batch User Guide</i>.</p><note>
238    /// <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use <code>containerProperties</code> instead.</p>
239    /// </note> <note>
240    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>nodeProperties</code>.</p>
241    /// </note>
242    pub fn get_node_properties(&self) -> &::std::option::Option<crate::types::NodeProperties> {
243        self.inner.get_node_properties()
244    }
245    /// <p>The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's specified during a <code>SubmitJob</code> operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it isn't retried.</p>
246    pub fn retry_strategy(mut self, input: crate::types::RetryStrategy) -> Self {
247        self.inner = self.inner.retry_strategy(input);
248        self
249    }
250    /// <p>The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's specified during a <code>SubmitJob</code> operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it isn't retried.</p>
251    pub fn set_retry_strategy(mut self, input: ::std::option::Option<crate::types::RetryStrategy>) -> Self {
252        self.inner = self.inner.set_retry_strategy(input);
253        self
254    }
255    /// <p>The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's specified during a <code>SubmitJob</code> operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it isn't retried.</p>
256    pub fn get_retry_strategy(&self) -> &::std::option::Option<crate::types::RetryStrategy> {
257        self.inner.get_retry_strategy()
258    }
259    /// <p>Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags are not propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the <code>FAILED</code> state.</p><note>
260    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>propagateTags</code>.</p>
261    /// </note>
262    pub fn propagate_tags(mut self, input: bool) -> Self {
263        self.inner = self.inner.propagate_tags(input);
264        self
265    }
266    /// <p>Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags are not propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the <code>FAILED</code> state.</p><note>
267    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>propagateTags</code>.</p>
268    /// </note>
269    pub fn set_propagate_tags(mut self, input: ::std::option::Option<bool>) -> Self {
270        self.inner = self.inner.set_propagate_tags(input);
271        self
272    }
273    /// <p>Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags are not propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the <code>FAILED</code> state.</p><note>
274    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>propagateTags</code>.</p>
275    /// </note>
276    pub fn get_propagate_tags(&self) -> &::std::option::Option<bool> {
277        self.inner.get_propagate_tags()
278    }
279    /// <p>The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that's specified during a <code>SubmitJob</code> operation overrides the timeout configuration defined here. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html">Job Timeouts</a> in the <i>Batch User Guide</i>.</p>
280    pub fn timeout(mut self, input: crate::types::JobTimeout) -> Self {
281        self.inner = self.inner.timeout(input);
282        self
283    }
284    /// <p>The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that's specified during a <code>SubmitJob</code> operation overrides the timeout configuration defined here. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html">Job Timeouts</a> in the <i>Batch User Guide</i>.</p>
285    pub fn set_timeout(mut self, input: ::std::option::Option<crate::types::JobTimeout>) -> Self {
286        self.inner = self.inner.set_timeout(input);
287        self
288    }
289    /// <p>The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that's specified during a <code>SubmitJob</code> operation overrides the timeout configuration defined here. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html">Job Timeouts</a> in the <i>Batch User Guide</i>.</p>
290    pub fn get_timeout(&self) -> &::std::option::Option<crate::types::JobTimeout> {
291        self.inner.get_timeout()
292    }
293    ///
294    /// Adds a key-value pair to `tags`.
295    ///
296    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
297    ///
298    /// <p>The tags that you apply to the job definition to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html">Tagging Amazon Web Services Resources</a> in <i>Batch User Guide</i>.</p>
299    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
300        self.inner = self.inner.tags(k.into(), v.into());
301        self
302    }
303    /// <p>The tags that you apply to the job definition to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html">Tagging Amazon Web Services Resources</a> in <i>Batch User Guide</i>.</p>
304    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
305        self.inner = self.inner.set_tags(input);
306        self
307    }
308    /// <p>The tags that you apply to the job definition to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html">Tagging Amazon Web Services Resources</a> in <i>Batch User Guide</i>.</p>
309    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
310        self.inner.get_tags()
311    }
312    ///
313    /// Appends an item to `platformCapabilities`.
314    ///
315    /// To override the contents of this collection use [`set_platform_capabilities`](Self::set_platform_capabilities).
316    ///
317    /// <p>The platform capabilities required by the job definition. If no value is specified, it defaults to <code>EC2</code>. To run the job on Fargate resources, specify <code>FARGATE</code>.</p><note>
318    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>platformCapabilities</code>.</p>
319    /// </note>
320    pub fn platform_capabilities(mut self, input: crate::types::PlatformCapability) -> Self {
321        self.inner = self.inner.platform_capabilities(input);
322        self
323    }
324    /// <p>The platform capabilities required by the job definition. If no value is specified, it defaults to <code>EC2</code>. To run the job on Fargate resources, specify <code>FARGATE</code>.</p><note>
325    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>platformCapabilities</code>.</p>
326    /// </note>
327    pub fn set_platform_capabilities(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PlatformCapability>>) -> Self {
328        self.inner = self.inner.set_platform_capabilities(input);
329        self
330    }
331    /// <p>The platform capabilities required by the job definition. If no value is specified, it defaults to <code>EC2</code>. To run the job on Fargate resources, specify <code>FARGATE</code>.</p><note>
332    /// <p>If the job runs on Amazon EKS resources, then you must not specify <code>platformCapabilities</code>.</p>
333    /// </note>
334    pub fn get_platform_capabilities(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PlatformCapability>> {
335        self.inner.get_platform_capabilities()
336    }
337    /// <p>An object with properties that are specific to Amazon EKS-based jobs. This must not be specified for Amazon ECS based job definitions.</p>
338    pub fn eks_properties(mut self, input: crate::types::EksProperties) -> Self {
339        self.inner = self.inner.eks_properties(input);
340        self
341    }
342    /// <p>An object with properties that are specific to Amazon EKS-based jobs. This must not be specified for Amazon ECS based job definitions.</p>
343    pub fn set_eks_properties(mut self, input: ::std::option::Option<crate::types::EksProperties>) -> Self {
344        self.inner = self.inner.set_eks_properties(input);
345        self
346    }
347    /// <p>An object with properties that are specific to Amazon EKS-based jobs. This must not be specified for Amazon ECS based job definitions.</p>
348    pub fn get_eks_properties(&self) -> &::std::option::Option<crate::types::EksProperties> {
349        self.inner.get_eks_properties()
350    }
351    /// <p>An object with properties that are specific to Amazon ECS-based jobs. This must not be specified for Amazon EKS-based job definitions.</p>
352    pub fn ecs_properties(mut self, input: crate::types::EcsProperties) -> Self {
353        self.inner = self.inner.ecs_properties(input);
354        self
355    }
356    /// <p>An object with properties that are specific to Amazon ECS-based jobs. This must not be specified for Amazon EKS-based job definitions.</p>
357    pub fn set_ecs_properties(mut self, input: ::std::option::Option<crate::types::EcsProperties>) -> Self {
358        self.inner = self.inner.set_ecs_properties(input);
359        self
360    }
361    /// <p>An object with properties that are specific to Amazon ECS-based jobs. This must not be specified for Amazon EKS-based job definitions.</p>
362    pub fn get_ecs_properties(&self) -> &::std::option::Option<crate::types::EcsProperties> {
363        self.inner.get_ecs_properties()
364    }
365    /// <p>Contains a list of consumable resources required by the job.</p>
366    pub fn consumable_resource_properties(mut self, input: crate::types::ConsumableResourceProperties) -> Self {
367        self.inner = self.inner.consumable_resource_properties(input);
368        self
369    }
370    /// <p>Contains a list of consumable resources required by the job.</p>
371    pub fn set_consumable_resource_properties(mut self, input: ::std::option::Option<crate::types::ConsumableResourceProperties>) -> Self {
372        self.inner = self.inner.set_consumable_resource_properties(input);
373        self
374    }
375    /// <p>Contains a list of consumable resources required by the job.</p>
376    pub fn get_consumable_resource_properties(&self) -> &::std::option::Option<crate::types::ConsumableResourceProperties> {
377        self.inner.get_consumable_resource_properties()
378    }
379}