Struct aws_sdk_batch::types::builders::NodePropertiesBuilder
source · #[non_exhaustive]pub struct NodePropertiesBuilder { /* private fields */ }
Expand description
A builder for NodeProperties
.
Implementations§
source§impl NodePropertiesBuilder
impl NodePropertiesBuilder
sourcepub fn num_nodes(self, input: i32) -> Self
pub fn num_nodes(self, input: i32) -> Self
The number of nodes that are associated with a multi-node parallel job.
This field is required.sourcepub fn set_num_nodes(self, input: Option<i32>) -> Self
pub fn set_num_nodes(self, input: Option<i32>) -> Self
The number of nodes that are associated with a multi-node parallel job.
sourcepub fn get_num_nodes(&self) -> &Option<i32>
pub fn get_num_nodes(&self) -> &Option<i32>
The number of nodes that are associated with a multi-node parallel job.
sourcepub fn main_node(self, input: i32) -> Self
pub fn main_node(self, input: i32) -> Self
Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes.
This field is required.sourcepub fn set_main_node(self, input: Option<i32>) -> Self
pub fn set_main_node(self, input: Option<i32>) -> Self
Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes.
sourcepub fn get_main_node(&self) -> &Option<i32>
pub fn get_main_node(&self) -> &Option<i32>
Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes.
sourcepub fn node_range_properties(self, input: NodeRangeProperty) -> Self
pub fn node_range_properties(self, input: NodeRangeProperty) -> Self
Appends an item to node_range_properties
.
To override the contents of this collection use set_node_range_properties
.
A list of node ranges and their properties that are associated with a multi-node parallel job.
sourcepub fn set_node_range_properties(
self,
input: Option<Vec<NodeRangeProperty>>
) -> Self
pub fn set_node_range_properties( self, input: Option<Vec<NodeRangeProperty>> ) -> Self
A list of node ranges and their properties that are associated with a multi-node parallel job.
sourcepub fn get_node_range_properties(&self) -> &Option<Vec<NodeRangeProperty>>
pub fn get_node_range_properties(&self) -> &Option<Vec<NodeRangeProperty>>
A list of node ranges and their properties that are associated with a multi-node parallel job.
sourcepub fn build(self) -> NodeProperties
pub fn build(self) -> NodeProperties
Consumes the builder and constructs a NodeProperties
.
Trait Implementations§
source§impl Clone for NodePropertiesBuilder
impl Clone for NodePropertiesBuilder
source§fn clone(&self) -> NodePropertiesBuilder
fn clone(&self) -> NodePropertiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodePropertiesBuilder
impl Debug for NodePropertiesBuilder
source§impl Default for NodePropertiesBuilder
impl Default for NodePropertiesBuilder
source§fn default() -> NodePropertiesBuilder
fn default() -> NodePropertiesBuilder
source§impl PartialEq for NodePropertiesBuilder
impl PartialEq for NodePropertiesBuilder
source§fn eq(&self, other: &NodePropertiesBuilder) -> bool
fn eq(&self, other: &NodePropertiesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodePropertiesBuilder
Auto Trait Implementations§
impl Freeze for NodePropertiesBuilder
impl RefUnwindSafe for NodePropertiesBuilder
impl Send for NodePropertiesBuilder
impl Sync for NodePropertiesBuilder
impl Unpin for NodePropertiesBuilder
impl UnwindSafe for NodePropertiesBuilder
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