/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

A job run that was used in the predicate of a conditional trigger that * triggered this job run.

See Also:

AWS * API Reference

*/ class Predecessor { public: AWS_GLUE_API Predecessor(); AWS_GLUE_API Predecessor(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Predecessor& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the job definition used by the predecessor job run.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The name of the job definition used by the predecessor job run.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The name of the job definition used by the predecessor job run.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The name of the job definition used by the predecessor job run.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The name of the job definition used by the predecessor job run.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The name of the job definition used by the predecessor job run.

*/ inline Predecessor& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The name of the job definition used by the predecessor job run.

*/ inline Predecessor& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The name of the job definition used by the predecessor job run.

*/ inline Predecessor& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The job-run ID of the predecessor job run.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

The job-run ID of the predecessor job run.

*/ inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; } /** *

The job-run ID of the predecessor job run.

*/ inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; } /** *

The job-run ID of the predecessor job run.

*/ inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); } /** *

The job-run ID of the predecessor job run.

*/ inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); } /** *

The job-run ID of the predecessor job run.

*/ inline Predecessor& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

The job-run ID of the predecessor job run.

*/ inline Predecessor& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

The job-run ID of the predecessor job run.

*/ inline Predecessor& WithRunId(const char* value) { SetRunId(value); return *this;} private: Aws::String m_jobName; bool m_jobNameHasBeenSet = false; Aws::String m_runId; bool m_runIdHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws