Struct aws_sdk_batch::types::builders::NodeOverridesBuilder
source · #[non_exhaustive]pub struct NodeOverridesBuilder { /* private fields */ }
Expand description
A builder for NodeOverrides
.
Implementations§
source§impl NodeOverridesBuilder
impl NodeOverridesBuilder
sourcepub fn num_nodes(self, input: i32) -> Self
pub fn num_nodes(self, input: i32) -> Self
The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override, you must meet the following conditions:
-
There must be at least one node range in your job definition that has an open upper boundary, such as
:
orn:
. -
The lower boundary of the node range that's specified in the job definition must be fewer than the number of nodes specified in the override.
-
The main node index that's specified in the job definition must be fewer than the number of nodes specified in the override.
sourcepub fn set_num_nodes(self, input: Option<i32>) -> Self
pub fn set_num_nodes(self, input: Option<i32>) -> Self
The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override, you must meet the following conditions:
-
There must be at least one node range in your job definition that has an open upper boundary, such as
:
orn:
. -
The lower boundary of the node range that's specified in the job definition must be fewer than the number of nodes specified in the override.
-
The main node index that's specified in the job definition must be fewer than the number of nodes specified in the override.
sourcepub fn get_num_nodes(&self) -> &Option<i32>
pub fn get_num_nodes(&self) -> &Option<i32>
The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override, you must meet the following conditions:
-
There must be at least one node range in your job definition that has an open upper boundary, such as
:
orn:
. -
The lower boundary of the node range that's specified in the job definition must be fewer than the number of nodes specified in the override.
-
The main node index that's specified in the job definition must be fewer than the number of nodes specified in the override.
sourcepub fn node_property_overrides(self, input: NodePropertyOverride) -> Self
pub fn node_property_overrides(self, input: NodePropertyOverride) -> Self
Appends an item to node_property_overrides
.
To override the contents of this collection use set_node_property_overrides
.
The node property overrides for the job.
sourcepub fn set_node_property_overrides(
self,
input: Option<Vec<NodePropertyOverride>>
) -> Self
pub fn set_node_property_overrides( self, input: Option<Vec<NodePropertyOverride>> ) -> Self
The node property overrides for the job.
sourcepub fn get_node_property_overrides(&self) -> &Option<Vec<NodePropertyOverride>>
pub fn get_node_property_overrides(&self) -> &Option<Vec<NodePropertyOverride>>
The node property overrides for the job.
sourcepub fn build(self) -> NodeOverrides
pub fn build(self) -> NodeOverrides
Consumes the builder and constructs a NodeOverrides
.
Trait Implementations§
source§impl Clone for NodeOverridesBuilder
impl Clone for NodeOverridesBuilder
source§fn clone(&self) -> NodeOverridesBuilder
fn clone(&self) -> NodeOverridesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeOverridesBuilder
impl Debug for NodeOverridesBuilder
source§impl Default for NodeOverridesBuilder
impl Default for NodeOverridesBuilder
source§fn default() -> NodeOverridesBuilder
fn default() -> NodeOverridesBuilder
source§impl PartialEq for NodeOverridesBuilder
impl PartialEq for NodeOverridesBuilder
source§fn eq(&self, other: &NodeOverridesBuilder) -> bool
fn eq(&self, other: &NodeOverridesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeOverridesBuilder
Auto Trait Implementations§
impl Freeze for NodeOverridesBuilder
impl RefUnwindSafe for NodeOverridesBuilder
impl Send for NodeOverridesBuilder
impl Sync for NodeOverridesBuilder
impl Unpin for NodeOverridesBuilder
impl UnwindSafe for NodeOverridesBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more