/** * 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 DataPipeline { namespace Model { /** *

Contains the output of ValidatePipelineDefinition.

See Also:

* AWS * API Reference

*/ class ValidatePipelineDefinitionResult { public: AWS_DATAPIPELINE_API ValidatePipelineDefinitionResult(); AWS_DATAPIPELINE_API ValidatePipelineDefinitionResult(const Aws::AmazonWebServiceResult& result); AWS_DATAPIPELINE_API ValidatePipelineDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Any validation errors that were found.

*/ inline const Aws::Vector& GetValidationErrors() const{ return m_validationErrors; } /** *

Any validation errors that were found.

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

Any validation errors that were found.

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

Any validation errors that were found.

*/ inline ValidatePipelineDefinitionResult& WithValidationErrors(const Aws::Vector& value) { SetValidationErrors(value); return *this;} /** *

Any validation errors that were found.

*/ inline ValidatePipelineDefinitionResult& WithValidationErrors(Aws::Vector&& value) { SetValidationErrors(std::move(value)); return *this;} /** *

Any validation errors that were found.

*/ inline ValidatePipelineDefinitionResult& AddValidationErrors(const ValidationError& value) { m_validationErrors.push_back(value); return *this; } /** *

Any validation errors that were found.

*/ inline ValidatePipelineDefinitionResult& AddValidationErrors(ValidationError&& value) { m_validationErrors.push_back(std::move(value)); return *this; } /** *

Any validation warnings that were found.

*/ inline const Aws::Vector& GetValidationWarnings() const{ return m_validationWarnings; } /** *

Any validation warnings that were found.

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

Any validation warnings that were found.

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

Any validation warnings that were found.

*/ inline ValidatePipelineDefinitionResult& WithValidationWarnings(const Aws::Vector& value) { SetValidationWarnings(value); return *this;} /** *

Any validation warnings that were found.

*/ inline ValidatePipelineDefinitionResult& WithValidationWarnings(Aws::Vector&& value) { SetValidationWarnings(std::move(value)); return *this;} /** *

Any validation warnings that were found.

*/ inline ValidatePipelineDefinitionResult& AddValidationWarnings(const ValidationWarning& value) { m_validationWarnings.push_back(value); return *this; } /** *

Any validation warnings that were found.

*/ inline ValidatePipelineDefinitionResult& AddValidationWarnings(ValidationWarning&& value) { m_validationWarnings.push_back(std::move(value)); return *this; } /** *

Indicates whether there were validation errors.

*/ inline bool GetErrored() const{ return m_errored; } /** *

Indicates whether there were validation errors.

*/ inline void SetErrored(bool value) { m_errored = value; } /** *

Indicates whether there were validation errors.

*/ inline ValidatePipelineDefinitionResult& WithErrored(bool value) { SetErrored(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 ValidatePipelineDefinitionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ValidatePipelineDefinitionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ValidatePipelineDefinitionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_validationErrors; Aws::Vector m_validationWarnings; bool m_errored; Aws::String m_requestId; }; } // namespace Model } // namespace DataPipeline } // namespace Aws