AWS SDK for C++  1.8.95
AWS SDK for C++
JobTimeout.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace Batch
20 {
21 namespace Model
22 {
23 
30  {
31  public:
32  JobTimeout();
34  JobTimeout& operator=(Aws::Utils::Json::JsonView jsonValue);
35  Aws::Utils::Json::JsonValue Jsonize() const;
36 
37 
43  inline int GetAttemptDurationSeconds() const{ return m_attemptDurationSeconds; }
44 
50  inline bool AttemptDurationSecondsHasBeenSet() const { return m_attemptDurationSecondsHasBeenSet; }
51 
57  inline void SetAttemptDurationSeconds(int value) { m_attemptDurationSecondsHasBeenSet = true; m_attemptDurationSeconds = value; }
58 
64  inline JobTimeout& WithAttemptDurationSeconds(int value) { SetAttemptDurationSeconds(value); return *this;}
65 
66  private:
67 
68  int m_attemptDurationSeconds;
69  bool m_attemptDurationSecondsHasBeenSet;
70  };
71 
72 } // namespace Model
73 } // namespace Batch
74 } // namespace Aws
JobTimeout & WithAttemptDurationSeconds(int value)
Definition: JobTimeout.h:64
#define AWS_BATCH_API
Definition: Batch_EXPORTS.h:28
bool AttemptDurationSecondsHasBeenSet() const
Definition: JobTimeout.h:50
void SetAttemptDurationSeconds(int value)
Definition: JobTimeout.h:57
int GetAttemptDurationSeconds() const
Definition: JobTimeout.h:43