/** * 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 { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The error codes and error messages that are returned for the parameters or * parameter combinations that are not valid when a new launch template or new * version of a launch template is created.

See Also:

AWS * API Reference

*/ class ValidationWarning { public: AWS_EC2_API ValidationWarning(); AWS_EC2_API ValidationWarning(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ValidationWarning& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The error codes and error messages.

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

The error codes and error messages.

*/ inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; } /** *

The error codes and error messages.

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

The error codes and error messages.

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

The error codes and error messages.

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

The error codes and error messages.

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

The error codes and error messages.

*/ inline ValidationWarning& AddErrors(const ValidationError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; } /** *

The error codes and error messages.

*/ inline ValidationWarning& AddErrors(ValidationError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; } private: Aws::Vector m_errors; bool m_errorsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws