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

Records an error that occurred when attempting to stop a specified job * run.

See Also:

AWS * API Reference

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

The name of the job definition that is used in the job run in question.

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

The name of the job definition that is used in the job run in question.

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

The name of the job definition that is used in the job run in question.

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

The name of the job definition that is used in the job run in question.

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

The name of the job definition that is used in the job run in question.

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

The name of the job definition that is used in the job run in question.

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

The name of the job definition that is used in the job run in question.

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

The name of the job definition that is used in the job run in question.

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

The JobRunId of the job run in question.

*/ inline const Aws::String& GetJobRunId() const{ return m_jobRunId; } /** *

The JobRunId of the job run in question.

*/ inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; } /** *

The JobRunId of the job run in question.

*/ inline void SetJobRunId(const Aws::String& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = value; } /** *

The JobRunId of the job run in question.

*/ inline void SetJobRunId(Aws::String&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::move(value); } /** *

The JobRunId of the job run in question.

*/ inline void SetJobRunId(const char* value) { m_jobRunIdHasBeenSet = true; m_jobRunId.assign(value); } /** *

The JobRunId of the job run in question.

*/ inline BatchStopJobRunError& WithJobRunId(const Aws::String& value) { SetJobRunId(value); return *this;} /** *

The JobRunId of the job run in question.

*/ inline BatchStopJobRunError& WithJobRunId(Aws::String&& value) { SetJobRunId(std::move(value)); return *this;} /** *

The JobRunId of the job run in question.

*/ inline BatchStopJobRunError& WithJobRunId(const char* value) { SetJobRunId(value); return *this;} /** *

Specifies details about the error that was encountered.

*/ inline const ErrorDetail& GetErrorDetail() const{ return m_errorDetail; } /** *

Specifies details about the error that was encountered.

*/ inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; } /** *

Specifies details about the error that was encountered.

*/ inline void SetErrorDetail(const ErrorDetail& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; } /** *

Specifies details about the error that was encountered.

*/ inline void SetErrorDetail(ErrorDetail&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); } /** *

Specifies details about the error that was encountered.

*/ inline BatchStopJobRunError& WithErrorDetail(const ErrorDetail& value) { SetErrorDetail(value); return *this;} /** *

Specifies details about the error that was encountered.

*/ inline BatchStopJobRunError& WithErrorDetail(ErrorDetail&& value) { SetErrorDetail(std::move(value)); return *this;} private: Aws::String m_jobName; bool m_jobNameHasBeenSet = false; Aws::String m_jobRunId; bool m_jobRunIdHasBeenSet = false; ErrorDetail m_errorDetail; bool m_errorDetailHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws