/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents the details of a container that's part of a job
* attempt.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline const Aws::String& GetContainerInstanceArn() const{ return m_containerInstanceArn; } /** *The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline void SetContainerInstanceArn(const Aws::String& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = value; } /** *The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline void SetContainerInstanceArn(Aws::String&& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline void SetContainerInstanceArn(const char* value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn.assign(value); } /** *The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline AttemptContainerDetail& WithContainerInstanceArn(const Aws::String& value) { SetContainerInstanceArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline AttemptContainerDetail& WithContainerInstanceArn(Aws::String&& value) { SetContainerInstanceArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon ECS container instance that * hosts the job attempt.
*/ inline AttemptContainerDetail& WithContainerInstanceArn(const char* value) { SetContainerInstanceArn(value); return *this;} /** *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.
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.
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.
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.
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.
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.
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.
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.
The exit code for the job attempt. A non-zero exit code is considered * failed.
*/ inline int GetExitCode() const{ return m_exitCode; } /** *The exit code for the job attempt. A non-zero exit code is considered * failed.
*/ inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; } /** *The exit code for the job attempt. A non-zero exit code is considered * failed.
*/ inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; } /** *The exit code for the job attempt. A non-zero exit code is considered * failed.
*/ inline AttemptContainerDetail& WithExitCode(int value) { SetExitCode(value); return *this;} /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline AttemptContainerDetail& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline AttemptContainerDetail& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *A short (255 max characters) human-readable string to provide additional * details for a running or stopped container.
*/ inline AttemptContainerDetail& WithReason(const char* value) { SetReason(value); return *this;} /** *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.
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.
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.
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.
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.
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.
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.
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.
The network interfaces that are associated with the job attempt.
*/ inline const Aws::VectorThe network interfaces that are associated with the job attempt.
*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *The network interfaces that are associated with the job attempt.
*/ inline void SetNetworkInterfaces(const Aws::VectorThe network interfaces that are associated with the job attempt.
*/ inline void SetNetworkInterfaces(Aws::VectorThe network interfaces that are associated with the job attempt.
*/ inline AttemptContainerDetail& WithNetworkInterfaces(const Aws::VectorThe network interfaces that are associated with the job attempt.
*/ inline AttemptContainerDetail& WithNetworkInterfaces(Aws::VectorThe network interfaces that are associated with the job attempt.
*/ inline AttemptContainerDetail& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *The network interfaces that are associated with the job attempt.
*/ inline AttemptContainerDetail& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } private: Aws::String m_containerInstanceArn; bool m_containerInstanceArnHasBeenSet = false; Aws::String m_taskArn; bool m_taskArnHasBeenSet = false; int m_exitCode; bool m_exitCodeHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_logStreamName; bool m_logStreamNameHasBeenSet = false; Aws::Vector