#[non_exhaustive]pub struct TaskContainerOverridesBuilder { /* private fields */ }
Expand description
A builder for TaskContainerOverrides
.
Implementations§
source§impl TaskContainerOverridesBuilder
impl TaskContainerOverridesBuilder
sourcepub fn command(self, input: impl Into<String>) -> Self
pub fn command(self, input: impl Into<String>) -> Self
Appends an item to command
.
To override the contents of this collection use set_command
.
The command to send to the container that overrides the default command from the Docker image or the job definition.
This parameter can't contain an empty string.
sourcepub fn set_command(self, input: Option<Vec<String>>) -> Self
pub fn set_command(self, input: Option<Vec<String>>) -> Self
The command to send to the container that overrides the default command from the Docker image or the job definition.
This parameter can't contain an empty string.
sourcepub fn get_command(&self) -> &Option<Vec<String>>
pub fn get_command(&self) -> &Option<Vec<String>>
The command to send to the container that overrides the default command from the Docker image or the job definition.
This parameter can't contain an empty string.
sourcepub fn environment(self, input: KeyValuePair) -> Self
pub fn environment(self, input: KeyValuePair) -> Self
Appends an item to environment
.
To override the contents of this collection use set_environment
.
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition.
Environment variables cannot start with AWS_BATCH
. This naming convention is reserved for variables that Batch sets.
sourcepub fn set_environment(self, input: Option<Vec<KeyValuePair>>) -> Self
pub fn set_environment(self, input: Option<Vec<KeyValuePair>>) -> Self
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition.
Environment variables cannot start with AWS_BATCH
. This naming convention is reserved for variables that Batch sets.
sourcepub fn get_environment(&self) -> &Option<Vec<KeyValuePair>>
pub fn get_environment(&self) -> &Option<Vec<KeyValuePair>>
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition.
Environment variables cannot start with AWS_BATCH
. This naming convention is reserved for variables that Batch sets.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
sourcepub fn resource_requirements(self, input: ResourceRequirement) -> Self
pub fn resource_requirements(self, input: ResourceRequirement) -> Self
Appends an item to resource_requirements
.
To override the contents of this collection use set_resource_requirements
.
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include GPU
, MEMORY
, and VCPU
.
sourcepub fn set_resource_requirements(
self,
input: Option<Vec<ResourceRequirement>>
) -> Self
pub fn set_resource_requirements( self, input: Option<Vec<ResourceRequirement>> ) -> Self
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include GPU
, MEMORY
, and VCPU
.
sourcepub fn get_resource_requirements(&self) -> &Option<Vec<ResourceRequirement>>
pub fn get_resource_requirements(&self) -> &Option<Vec<ResourceRequirement>>
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include GPU
, MEMORY
, and VCPU
.
sourcepub fn build(self) -> TaskContainerOverrides
pub fn build(self) -> TaskContainerOverrides
Consumes the builder and constructs a TaskContainerOverrides
.
Trait Implementations§
source§impl Clone for TaskContainerOverridesBuilder
impl Clone for TaskContainerOverridesBuilder
source§fn clone(&self) -> TaskContainerOverridesBuilder
fn clone(&self) -> TaskContainerOverridesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TaskContainerOverridesBuilder
impl Default for TaskContainerOverridesBuilder
source§fn default() -> TaskContainerOverridesBuilder
fn default() -> TaskContainerOverridesBuilder
source§impl PartialEq for TaskContainerOverridesBuilder
impl PartialEq for TaskContainerOverridesBuilder
source§fn eq(&self, other: &TaskContainerOverridesBuilder) -> bool
fn eq(&self, other: &TaskContainerOverridesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.