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

Contains any warnings returned by the GetTemplateSummary API * action.

See Also:

AWS * API Reference

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

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline const Aws::Vector& GetUnrecognizedResourceTypes() const{ return m_unrecognizedResourceTypes; } /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline bool UnrecognizedResourceTypesHasBeenSet() const { return m_unrecognizedResourceTypesHasBeenSet; } /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline void SetUnrecognizedResourceTypes(const Aws::Vector& value) { m_unrecognizedResourceTypesHasBeenSet = true; m_unrecognizedResourceTypes = value; } /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline void SetUnrecognizedResourceTypes(Aws::Vector&& value) { m_unrecognizedResourceTypesHasBeenSet = true; m_unrecognizedResourceTypes = std::move(value); } /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline Warnings& WithUnrecognizedResourceTypes(const Aws::Vector& value) { SetUnrecognizedResourceTypes(value); return *this;} /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline Warnings& WithUnrecognizedResourceTypes(Aws::Vector&& value) { SetUnrecognizedResourceTypes(std::move(value)); return *this;} /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline Warnings& AddUnrecognizedResourceTypes(const Aws::String& value) { m_unrecognizedResourceTypesHasBeenSet = true; m_unrecognizedResourceTypes.push_back(value); return *this; } /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline Warnings& AddUnrecognizedResourceTypes(Aws::String&& value) { m_unrecognizedResourceTypesHasBeenSet = true; m_unrecognizedResourceTypes.push_back(std::move(value)); return *this; } /** *

A list of all of the unrecognized resource types. This is only returned if * the TemplateSummaryConfig parameter has the * TreatUnrecognizedResourceTypesAsWarning configuration set to * True.

*/ inline Warnings& AddUnrecognizedResourceTypes(const char* value) { m_unrecognizedResourceTypesHasBeenSet = true; m_unrecognizedResourceTypes.push_back(value); return *this; } private: Aws::Vector m_unrecognizedResourceTypes; bool m_unrecognizedResourceTypesHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws