/**
* 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 for an attempt for a job attempt that
* an Amazon EKS container runs.See Also:
AWS
* API Reference
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 EksAttemptContainerDetail& 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 EksAttemptContainerDetail& 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 EksAttemptContainerDetail& 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 EksAttemptContainerDetail& WithReason(const char* value) { SetReason(value); return *this;} private: int m_exitCode; bool m_exitCodeHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws