/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 AWS_GLUE_API BatchStopJobRunResult { public: BatchStopJobRunResult(); BatchStopJobRunResult(const Aws::AmazonWebServiceResult& result); 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; } private: Aws::Vector m_successfulSubmissions; Aws::Vector m_errors; }; } // namespace Model } // namespace Glue } // namespace Aws