1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/glue/Glue_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Glue
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>A job run that was used in the predicate of a conditional trigger that
28    * triggered this job run.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Predecessor">AWS
30    * API Reference</a></p>
31    */
32   class AWS_GLUE_API Predecessor
33   {
34   public:
35     Predecessor();
36     Predecessor(Aws::Utils::Json::JsonView jsonValue);
37     Predecessor& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The name of the job definition used by the predecessor job run.</p>
43      */
GetJobName()44     inline const Aws::String& GetJobName() const{ return m_jobName; }
45 
46     /**
47      * <p>The name of the job definition used by the predecessor job run.</p>
48      */
JobNameHasBeenSet()49     inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
50 
51     /**
52      * <p>The name of the job definition used by the predecessor job run.</p>
53      */
SetJobName(const Aws::String & value)54     inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
55 
56     /**
57      * <p>The name of the job definition used by the predecessor job run.</p>
58      */
SetJobName(Aws::String && value)59     inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
60 
61     /**
62      * <p>The name of the job definition used by the predecessor job run.</p>
63      */
SetJobName(const char * value)64     inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
65 
66     /**
67      * <p>The name of the job definition used by the predecessor job run.</p>
68      */
WithJobName(const Aws::String & value)69     inline Predecessor& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
70 
71     /**
72      * <p>The name of the job definition used by the predecessor job run.</p>
73      */
WithJobName(Aws::String && value)74     inline Predecessor& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
75 
76     /**
77      * <p>The name of the job definition used by the predecessor job run.</p>
78      */
WithJobName(const char * value)79     inline Predecessor& WithJobName(const char* value) { SetJobName(value); return *this;}
80 
81 
82     /**
83      * <p>The job-run ID of the predecessor job run.</p>
84      */
GetRunId()85     inline const Aws::String& GetRunId() const{ return m_runId; }
86 
87     /**
88      * <p>The job-run ID of the predecessor job run.</p>
89      */
RunIdHasBeenSet()90     inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
91 
92     /**
93      * <p>The job-run ID of the predecessor job run.</p>
94      */
SetRunId(const Aws::String & value)95     inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; }
96 
97     /**
98      * <p>The job-run ID of the predecessor job run.</p>
99      */
SetRunId(Aws::String && value)100     inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); }
101 
102     /**
103      * <p>The job-run ID of the predecessor job run.</p>
104      */
SetRunId(const char * value)105     inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); }
106 
107     /**
108      * <p>The job-run ID of the predecessor job run.</p>
109      */
WithRunId(const Aws::String & value)110     inline Predecessor& WithRunId(const Aws::String& value) { SetRunId(value); return *this;}
111 
112     /**
113      * <p>The job-run ID of the predecessor job run.</p>
114      */
WithRunId(Aws::String && value)115     inline Predecessor& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;}
116 
117     /**
118      * <p>The job-run ID of the predecessor job run.</p>
119      */
WithRunId(const char * value)120     inline Predecessor& WithRunId(const char* value) { SetRunId(value); return *this;}
121 
122   private:
123 
124     Aws::String m_jobName;
125     bool m_jobNameHasBeenSet;
126 
127     Aws::String m_runId;
128     bool m_runIdHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace Glue
133 } // namespace Aws
134