/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { /** *

The output for ValidateTemplate action.

See Also:

AWS * API Reference

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

A list of TemplateParameter structures.

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

A list of TemplateParameter structures.

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

A list of TemplateParameter structures.

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

A list of TemplateParameter structures.

*/ inline ValidateTemplateResult& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

A list of TemplateParameter structures.

*/ inline ValidateTemplateResult& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

A list of TemplateParameter structures.

*/ inline ValidateTemplateResult& AddParameters(const TemplateParameter& value) { m_parameters.push_back(value); return *this; } /** *

A list of TemplateParameter structures.

*/ inline ValidateTemplateResult& AddParameters(TemplateParameter&& value) { m_parameters.push_back(std::move(value)); return *this; } /** *

The description found within the template.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description found within the template.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description found within the template.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description found within the template.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description found within the template.

*/ inline ValidateTemplateResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description found within the template.

*/ inline ValidateTemplateResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description found within the template.

*/ inline ValidateTemplateResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for * this parameter when you use the CreateStack or UpdateStack actions * with your template; otherwise, those actions return an InsufficientCapabilities * error.

For more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline const Aws::Vector& GetCapabilities() const{ return m_capabilities; } /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for * this parameter when you use the CreateStack or UpdateStack actions * with your template; otherwise, those actions return an InsufficientCapabilities * error.

For more information, see Acknowledging * IAM Resources in CloudFormation Templates.

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

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for * this parameter when you use the CreateStack or UpdateStack actions * with your template; otherwise, those actions return an InsufficientCapabilities * error.

For more information, see Acknowledging * IAM Resources in CloudFormation Templates.

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

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for * this parameter when you use the CreateStack or UpdateStack actions * with your template; otherwise, those actions return an InsufficientCapabilities * error.

For more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline ValidateTemplateResult& WithCapabilities(const Aws::Vector& value) { SetCapabilities(value); return *this;} /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for * this parameter when you use the CreateStack or UpdateStack actions * with your template; otherwise, those actions return an InsufficientCapabilities * error.

For more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline ValidateTemplateResult& WithCapabilities(Aws::Vector&& value) { SetCapabilities(std::move(value)); return *this;} /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for * this parameter when you use the CreateStack or UpdateStack actions * with your template; otherwise, those actions return an InsufficientCapabilities * error.

For more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline ValidateTemplateResult& AddCapabilities(const Capability& value) { m_capabilities.push_back(value); return *this; } /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for * this parameter when you use the CreateStack or UpdateStack actions * with your template; otherwise, those actions return an InsufficientCapabilities * error.

For more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline ValidateTemplateResult& AddCapabilities(Capability&& value) { m_capabilities.push_back(std::move(value)); return *this; } /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline const Aws::String& GetCapabilitiesReason() const{ return m_capabilitiesReason; } /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline void SetCapabilitiesReason(const Aws::String& value) { m_capabilitiesReason = value; } /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline void SetCapabilitiesReason(Aws::String&& value) { m_capabilitiesReason = std::move(value); } /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline void SetCapabilitiesReason(const char* value) { m_capabilitiesReason.assign(value); } /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline ValidateTemplateResult& WithCapabilitiesReason(const Aws::String& value) { SetCapabilitiesReason(value); return *this;} /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline ValidateTemplateResult& WithCapabilitiesReason(Aws::String&& value) { SetCapabilitiesReason(std::move(value)); return *this;} /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline ValidateTemplateResult& WithCapabilitiesReason(const char* value) { SetCapabilitiesReason(value); return *this;} /** *

A list of the transforms that are declared in the template.

*/ inline const Aws::Vector& GetDeclaredTransforms() const{ return m_declaredTransforms; } /** *

A list of the transforms that are declared in the template.

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

A list of the transforms that are declared in the template.

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

A list of the transforms that are declared in the template.

*/ inline ValidateTemplateResult& WithDeclaredTransforms(const Aws::Vector& value) { SetDeclaredTransforms(value); return *this;} /** *

A list of the transforms that are declared in the template.

*/ inline ValidateTemplateResult& WithDeclaredTransforms(Aws::Vector&& value) { SetDeclaredTransforms(std::move(value)); return *this;} /** *

A list of the transforms that are declared in the template.

*/ inline ValidateTemplateResult& AddDeclaredTransforms(const Aws::String& value) { m_declaredTransforms.push_back(value); return *this; } /** *

A list of the transforms that are declared in the template.

*/ inline ValidateTemplateResult& AddDeclaredTransforms(Aws::String&& value) { m_declaredTransforms.push_back(std::move(value)); return *this; } /** *

A list of the transforms that are declared in the template.

*/ inline ValidateTemplateResult& AddDeclaredTransforms(const char* value) { m_declaredTransforms.push_back(value); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ValidateTemplateResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ValidateTemplateResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_parameters; Aws::String m_description; Aws::Vector m_capabilities; Aws::String m_capabilitiesReason; Aws::Vector m_declaredTransforms; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudFormation } // namespace Aws