#[non_exhaustive]pub struct AttemptContainerDetailBuilder { /* private fields */ }
Expand description
A builder for AttemptContainerDetail
.
Implementations§
source§impl AttemptContainerDetailBuilder
impl AttemptContainerDetailBuilder
sourcepub fn container_instance_arn(self, input: impl Into<String>) -> Self
pub fn container_instance_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
sourcepub fn set_container_instance_arn(self, input: Option<String>) -> Self
pub fn set_container_instance_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
sourcepub fn get_container_instance_arn(&self) -> &Option<String>
pub fn get_container_instance_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
sourcepub fn task_arn(self, input: impl Into<String>) -> Self
pub fn task_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING
status.
sourcepub fn set_task_arn(self, input: Option<String>) -> Self
pub fn set_task_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING
status.
sourcepub fn get_task_arn(&self) -> &Option<String>
pub fn get_task_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING
status.
sourcepub fn exit_code(self, input: i32) -> Self
pub fn exit_code(self, input: i32) -> Self
The exit code for the job attempt. A non-zero exit code is considered failed.
sourcepub fn set_exit_code(self, input: Option<i32>) -> Self
pub fn set_exit_code(self, input: Option<i32>) -> Self
The exit code for the job attempt. A non-zero exit code is considered failed.
sourcepub fn get_exit_code(&self) -> &Option<i32>
pub fn get_exit_code(&self) -> &Option<i32>
The exit code for the job attempt. A non-zero exit code is considered failed.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
sourcepub fn log_stream_name(self, input: impl Into<String>) -> Self
pub fn log_stream_name(self, input: impl Into<String>) -> Self
The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job
. Each container attempt receives a log stream name when they reach the RUNNING
status.
sourcepub fn set_log_stream_name(self, input: Option<String>) -> Self
pub fn set_log_stream_name(self, input: Option<String>) -> Self
The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job
. Each container attempt receives a log stream name when they reach the RUNNING
status.
sourcepub fn get_log_stream_name(&self) -> &Option<String>
pub fn get_log_stream_name(&self) -> &Option<String>
The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job
. Each container attempt receives a log stream name when they reach the RUNNING
status.
sourcepub fn network_interfaces(self, input: NetworkInterface) -> Self
pub fn network_interfaces(self, input: NetworkInterface) -> Self
Appends an item to network_interfaces
.
To override the contents of this collection use set_network_interfaces
.
The network interfaces that are associated with the job attempt.
sourcepub fn set_network_interfaces(
self,
input: Option<Vec<NetworkInterface>>
) -> Self
pub fn set_network_interfaces( self, input: Option<Vec<NetworkInterface>> ) -> Self
The network interfaces that are associated with the job attempt.
sourcepub fn get_network_interfaces(&self) -> &Option<Vec<NetworkInterface>>
pub fn get_network_interfaces(&self) -> &Option<Vec<NetworkInterface>>
The network interfaces that are associated with the job attempt.
sourcepub fn build(self) -> AttemptContainerDetail
pub fn build(self) -> AttemptContainerDetail
Consumes the builder and constructs a AttemptContainerDetail
.
Trait Implementations§
source§impl Clone for AttemptContainerDetailBuilder
impl Clone for AttemptContainerDetailBuilder
source§fn clone(&self) -> AttemptContainerDetailBuilder
fn clone(&self) -> AttemptContainerDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AttemptContainerDetailBuilder
impl Default for AttemptContainerDetailBuilder
source§fn default() -> AttemptContainerDetailBuilder
fn default() -> AttemptContainerDetailBuilder
source§impl PartialEq<AttemptContainerDetailBuilder> for AttemptContainerDetailBuilder
impl PartialEq<AttemptContainerDetailBuilder> for AttemptContainerDetailBuilder
source§fn eq(&self, other: &AttemptContainerDetailBuilder) -> bool
fn eq(&self, other: &AttemptContainerDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.