Skip to main content

aws_sdk_sagemaker/types/
_parallelism_configuration.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Configuration that controls the parallelism of the pipeline. By default, the parallelism configuration specified applies to all executions of the pipeline unless overridden.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ParallelismConfiguration {
7    /// <p>The max number of steps that can be executed in parallel.</p>
8    pub max_parallel_execution_steps: ::std::option::Option<i32>,
9}
10impl ParallelismConfiguration {
11    /// <p>The max number of steps that can be executed in parallel.</p>
12    pub fn max_parallel_execution_steps(&self) -> ::std::option::Option<i32> {
13        self.max_parallel_execution_steps
14    }
15}
16impl ParallelismConfiguration {
17    /// Creates a new builder-style object to manufacture [`ParallelismConfiguration`](crate::types::ParallelismConfiguration).
18    pub fn builder() -> crate::types::builders::ParallelismConfigurationBuilder {
19        crate::types::builders::ParallelismConfigurationBuilder::default()
20    }
21}
22
23/// A builder for [`ParallelismConfiguration`](crate::types::ParallelismConfiguration).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct ParallelismConfigurationBuilder {
27    pub(crate) max_parallel_execution_steps: ::std::option::Option<i32>,
28}
29impl ParallelismConfigurationBuilder {
30    /// <p>The max number of steps that can be executed in parallel.</p>
31    /// This field is required.
32    pub fn max_parallel_execution_steps(mut self, input: i32) -> Self {
33        self.max_parallel_execution_steps = ::std::option::Option::Some(input);
34        self
35    }
36    /// <p>The max number of steps that can be executed in parallel.</p>
37    pub fn set_max_parallel_execution_steps(mut self, input: ::std::option::Option<i32>) -> Self {
38        self.max_parallel_execution_steps = input;
39        self
40    }
41    /// <p>The max number of steps that can be executed in parallel.</p>
42    pub fn get_max_parallel_execution_steps(&self) -> &::std::option::Option<i32> {
43        &self.max_parallel_execution_steps
44    }
45    /// Consumes the builder and constructs a [`ParallelismConfiguration`](crate::types::ParallelismConfiguration).
46    pub fn build(self) -> crate::types::ParallelismConfiguration {
47        crate::types::ParallelismConfiguration {
48            max_parallel_execution_steps: self.max_parallel_execution_steps,
49        }
50    }
51}