122 lines
3.6 KiB
C++
122 lines
3.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/batch/Batch_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Batch
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>An object representing summary details of a container within a
|
|
* job.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerSummary">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_BATCH_API ContainerSummary
|
|
{
|
|
public:
|
|
ContainerSummary();
|
|
ContainerSummary(Aws::Utils::Json::JsonView jsonValue);
|
|
ContainerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The exit code to return upon completion.</p>
|
|
*/
|
|
inline int GetExitCode() const{ return m_exitCode; }
|
|
|
|
/**
|
|
* <p>The exit code to return upon completion.</p>
|
|
*/
|
|
inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The exit code to return upon completion.</p>
|
|
*/
|
|
inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
|
|
|
|
/**
|
|
* <p>The exit code to return upon completion.</p>
|
|
*/
|
|
inline ContainerSummary& WithExitCode(int value) { SetExitCode(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline const Aws::String& GetReason() const{ return m_reason; }
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline ContainerSummary& WithReason(const Aws::String& value) { SetReason(value); return *this;}
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline ContainerSummary& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A short (255 max characters) human-readable string to provide additional
|
|
* details about a running or stopped container.</p>
|
|
*/
|
|
inline ContainerSummary& WithReason(const char* value) { SetReason(value); return *this;}
|
|
|
|
private:
|
|
|
|
int m_exitCode;
|
|
bool m_exitCodeHasBeenSet;
|
|
|
|
Aws::String m_reason;
|
|
bool m_reasonHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Batch
|
|
} // namespace Aws
|