/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Batch
{
namespace Model
{
/**
* An object representing a job timeout configuration.
See Also:
* AWS
* API Reference
*/
class AWS_BATCH_API JobTimeout
{
public:
JobTimeout();
JobTimeout(Aws::Utils::Json::JsonView jsonValue);
JobTimeout& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The time duration in seconds (measured from the job attempt's
* startedAt timestamp) after which AWS Batch terminates your jobs if
* they have not finished.
*/
inline int GetAttemptDurationSeconds() const{ return m_attemptDurationSeconds; }
/**
* The time duration in seconds (measured from the job attempt's
* startedAt timestamp) after which AWS Batch terminates your jobs if
* they have not finished.
*/
inline bool AttemptDurationSecondsHasBeenSet() const { return m_attemptDurationSecondsHasBeenSet; }
/**
* The time duration in seconds (measured from the job attempt's
* startedAt timestamp) after which AWS Batch terminates your jobs if
* they have not finished.
*/
inline void SetAttemptDurationSeconds(int value) { m_attemptDurationSecondsHasBeenSet = true; m_attemptDurationSeconds = value; }
/**
* The time duration in seconds (measured from the job attempt's
* startedAt timestamp) after which AWS Batch terminates your jobs if
* they have not finished.
*/
inline JobTimeout& WithAttemptDurationSeconds(int value) { SetAttemptDurationSeconds(value); return *this;}
private:
int m_attemptDurationSeconds;
bool m_attemptDurationSecondsHasBeenSet;
};
} // namespace Model
} // namespace Batch
} // namespace Aws