Struct aws_sdk_batch::types::builders::NodeRangePropertyBuilder
source · #[non_exhaustive]pub struct NodeRangePropertyBuilder { /* private fields */ }
Expand description
A builder for NodeRangeProperty
.
Implementations§
source§impl NodeRangePropertyBuilder
impl NodeRangePropertyBuilder
sourcepub fn target_nodes(self, input: impl Into<String>) -> Self
pub fn target_nodes(self, input: impl Into<String>) -> Self
The range of nodes, using node index values. A range of 0:3
indicates nodes with index values of 0
through 3
. If the starting range value is omitted (:n
), then 0
is used to start the range. If the ending range value is omitted (n:
), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (0:n
). You can nest node ranges (for example, 0:10
and 4:5
). In this case, the 4:5
range properties override the 0:10
properties.
sourcepub fn set_target_nodes(self, input: Option<String>) -> Self
pub fn set_target_nodes(self, input: Option<String>) -> Self
The range of nodes, using node index values. A range of 0:3
indicates nodes with index values of 0
through 3
. If the starting range value is omitted (:n
), then 0
is used to start the range. If the ending range value is omitted (n:
), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (0:n
). You can nest node ranges (for example, 0:10
and 4:5
). In this case, the 4:5
range properties override the 0:10
properties.
sourcepub fn get_target_nodes(&self) -> &Option<String>
pub fn get_target_nodes(&self) -> &Option<String>
The range of nodes, using node index values. A range of 0:3
indicates nodes with index values of 0
through 3
. If the starting range value is omitted (:n
), then 0
is used to start the range. If the ending range value is omitted (n:
), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (0:n
). You can nest node ranges (for example, 0:10
and 4:5
). In this case, the 4:5
range properties override the 0:10
properties.
sourcepub fn container(self, input: ContainerProperties) -> Self
pub fn container(self, input: ContainerProperties) -> Self
The container details for the node range.
sourcepub fn set_container(self, input: Option<ContainerProperties>) -> Self
pub fn set_container(self, input: Option<ContainerProperties>) -> Self
The container details for the node range.
sourcepub fn get_container(&self) -> &Option<ContainerProperties>
pub fn get_container(&self) -> &Option<ContainerProperties>
The container details for the node range.
sourcepub fn instance_types(self, input: impl Into<String>) -> Self
pub fn instance_types(self, input: impl Into<String>) -> Self
Appends an item to instance_types
.
To override the contents of this collection use set_instance_types
.
The instance types of the underlying host infrastructure of a multi-node parallel job.
This parameter isn't applicable to jobs that are running on Fargate resources.
In addition, this list object is currently limited to one element.
sourcepub fn set_instance_types(self, input: Option<Vec<String>>) -> Self
pub fn set_instance_types(self, input: Option<Vec<String>>) -> Self
The instance types of the underlying host infrastructure of a multi-node parallel job.
This parameter isn't applicable to jobs that are running on Fargate resources.
In addition, this list object is currently limited to one element.
sourcepub fn get_instance_types(&self) -> &Option<Vec<String>>
pub fn get_instance_types(&self) -> &Option<Vec<String>>
The instance types of the underlying host infrastructure of a multi-node parallel job.
This parameter isn't applicable to jobs that are running on Fargate resources.
In addition, this list object is currently limited to one element.
sourcepub fn ecs_properties(self, input: EcsProperties) -> Self
pub fn ecs_properties(self, input: EcsProperties) -> Self
This is an object that represents the properties of the node range for a multi-node parallel job.
sourcepub fn set_ecs_properties(self, input: Option<EcsProperties>) -> Self
pub fn set_ecs_properties(self, input: Option<EcsProperties>) -> Self
This is an object that represents the properties of the node range for a multi-node parallel job.
sourcepub fn get_ecs_properties(&self) -> &Option<EcsProperties>
pub fn get_ecs_properties(&self) -> &Option<EcsProperties>
This is an object that represents the properties of the node range for a multi-node parallel job.
sourcepub fn build(self) -> NodeRangeProperty
pub fn build(self) -> NodeRangeProperty
Consumes the builder and constructs a NodeRangeProperty
.
Trait Implementations§
source§impl Clone for NodeRangePropertyBuilder
impl Clone for NodeRangePropertyBuilder
source§fn clone(&self) -> NodeRangePropertyBuilder
fn clone(&self) -> NodeRangePropertyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeRangePropertyBuilder
impl Debug for NodeRangePropertyBuilder
source§impl Default for NodeRangePropertyBuilder
impl Default for NodeRangePropertyBuilder
source§fn default() -> NodeRangePropertyBuilder
fn default() -> NodeRangePropertyBuilder
source§impl PartialEq for NodeRangePropertyBuilder
impl PartialEq for NodeRangePropertyBuilder
source§fn eq(&self, other: &NodeRangePropertyBuilder) -> bool
fn eq(&self, other: &NodeRangePropertyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeRangePropertyBuilder
Auto Trait Implementations§
impl Freeze for NodeRangePropertyBuilder
impl RefUnwindSafe for NodeRangePropertyBuilder
impl Send for NodeRangePropertyBuilder
impl Sync for NodeRangePropertyBuilder
impl Unpin for NodeRangePropertyBuilder
impl UnwindSafe for NodeRangePropertyBuilder
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