Struct aws_sdk_batch::types::NodeProperties
source · #[non_exhaustive]pub struct NodeProperties {
pub num_nodes: Option<i32>,
pub main_node: Option<i32>,
pub node_range_properties: Option<Vec<NodeRangeProperty>>,
}
Expand description
An object that represents the node properties of a multi-node parallel job.
Node properties can't be specified for Amazon EKS based job definitions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.num_nodes: Option<i32>
The number of nodes that are associated with a multi-node parallel job.
main_node: 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.
node_range_properties: Option<Vec<NodeRangeProperty>>
A list of node ranges and their properties that are associated with a multi-node parallel job.
Implementations§
source§impl NodeProperties
impl NodeProperties
sourcepub fn num_nodes(&self) -> Option<i32>
pub fn num_nodes(&self) -> Option<i32>
The number of nodes that are associated with a multi-node parallel job.
sourcepub fn main_node(&self) -> Option<i32>
pub fn 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) -> &[NodeRangeProperty]
pub fn node_range_properties(&self) -> &[NodeRangeProperty]
A list of node ranges and their properties that are associated with a multi-node parallel job.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .node_range_properties.is_none()
.
source§impl NodeProperties
impl NodeProperties
sourcepub fn builder() -> NodePropertiesBuilder
pub fn builder() -> NodePropertiesBuilder
Creates a new builder-style object to manufacture NodeProperties
.
Trait Implementations§
source§impl Clone for NodeProperties
impl Clone for NodeProperties
source§fn clone(&self) -> NodeProperties
fn clone(&self) -> NodeProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeProperties
impl Debug for NodeProperties
source§impl PartialEq for NodeProperties
impl PartialEq for NodeProperties
source§fn eq(&self, other: &NodeProperties) -> bool
fn eq(&self, other: &NodeProperties) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeProperties
Auto Trait Implementations§
impl Freeze for NodeProperties
impl RefUnwindSafe for NodeProperties
impl Send for NodeProperties
impl Sync for NodeProperties
impl Unpin for NodeProperties
impl UnwindSafe for NodeProperties
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