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 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 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<NodeOverridesBuilder> for NodeOverridesBuilder
impl PartialEq<NodeOverridesBuilder> 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 ==
.