/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glue { namespace Model { class BatchStopJobRunResult { public: AWS_GLUE_API BatchStopJobRunResult(); AWS_GLUE_API BatchStopJobRunResult(const Aws::AmazonWebServiceResult& result); AWS_GLUE_API BatchStopJobRunResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of the JobRuns that were successfully submitted for stopping.

*/ inline const Aws::Vector& GetSuccessfulSubmissions() const{ return m_successfulSubmissions; } /** *

A list of the JobRuns that were successfully submitted for stopping.

*/ inline void SetSuccessfulSubmissions(const Aws::Vector& value) { m_successfulSubmissions = value; } /** *

A list of the JobRuns that were successfully submitted for stopping.

*/ inline void SetSuccessfulSubmissions(Aws::Vector&& value) { m_successfulSubmissions = std::move(value); } /** *

A list of the JobRuns that were successfully submitted for stopping.

*/ inline BatchStopJobRunResult& WithSuccessfulSubmissions(const Aws::Vector& value) { SetSuccessfulSubmissions(value); return *this;} /** *

A list of the JobRuns that were successfully submitted for stopping.

*/ inline BatchStopJobRunResult& WithSuccessfulSubmissions(Aws::Vector&& value) { SetSuccessfulSubmissions(std::move(value)); return *this;} /** *

A list of the JobRuns that were successfully submitted for stopping.

*/ inline BatchStopJobRunResult& AddSuccessfulSubmissions(const BatchStopJobRunSuccessfulSubmission& value) { m_successfulSubmissions.push_back(value); return *this; } /** *

A list of the JobRuns that were successfully submitted for stopping.

*/ inline BatchStopJobRunResult& AddSuccessfulSubmissions(BatchStopJobRunSuccessfulSubmission&& value) { m_successfulSubmissions.push_back(std::move(value)); return *this; } /** *

A list of the errors that were encountered in trying to stop * JobRuns, including the JobRunId for which each error * was encountered and details about the error.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

A list of the errors that were encountered in trying to stop * JobRuns, including the JobRunId for which each error * was encountered and details about the error.

*/ inline void SetErrors(const Aws::Vector& value) { m_errors = value; } /** *

A list of the errors that were encountered in trying to stop * JobRuns, including the JobRunId for which each error * was encountered and details about the error.

*/ inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } /** *

A list of the errors that were encountered in trying to stop * JobRuns, including the JobRunId for which each error * was encountered and details about the error.

*/ inline BatchStopJobRunResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

A list of the errors that were encountered in trying to stop * JobRuns, including the JobRunId for which each error * was encountered and details about the error.

*/ inline BatchStopJobRunResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

A list of the errors that were encountered in trying to stop * JobRuns, including the JobRunId for which each error * was encountered and details about the error.

*/ inline BatchStopJobRunResult& AddErrors(const BatchStopJobRunError& value) { m_errors.push_back(value); return *this; } /** *

A list of the errors that were encountered in trying to stop * JobRuns, including the JobRunId for which each error * was encountered and details about the error.

*/ inline BatchStopJobRunResult& AddErrors(BatchStopJobRunError&& value) { m_errors.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchStopJobRunResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchStopJobRunResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchStopJobRunResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_successfulSubmissions; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace Glue } // namespace Aws