/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Batch.Model
{
///
/// An object that represents a job timeout configuration.
///
public partial class JobTimeout
{
private int? _attemptDurationSeconds;
///
/// Gets and sets the property AttemptDurationSeconds.
///
/// The job timeout time (in seconds) that's measured from the job attempt's startedAt
/// timestamp. After this time passes, Batch terminates your jobs if they aren't finished.
/// The minimum value for the timeout is 60 seconds.
///
///
///
/// For array jobs, the timeout applies to the child jobs, not to the parent array job.
///
///
///
/// For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the
/// individual nodes.
///
///
public int AttemptDurationSeconds
{
get { return this._attemptDurationSeconds.GetValueOrDefault(); }
set { this._attemptDurationSeconds = value; }
}
// Check to see if AttemptDurationSeconds property is set
internal bool IsSetAttemptDurationSeconds()
{
return this._attemptDurationSeconds.HasValue;
}
}
}