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

The output for GetTemplate action.

See Also:

AWS * API Reference

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

Structure containing the template body. (For more information, go to Template * Anatomy in the CloudFormation User Guide.)

CloudFormation returns the * same template that was used when the stack was created.

*/ inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } /** *

Structure containing the template body. (For more information, go to Template * Anatomy in the CloudFormation User Guide.)

CloudFormation returns the * same template that was used when the stack was created.

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

Structure containing the template body. (For more information, go to Template * Anatomy in the CloudFormation User Guide.)

CloudFormation returns the * same template that was used when the stack was created.

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

Structure containing the template body. (For more information, go to Template * Anatomy in the CloudFormation User Guide.)

CloudFormation returns the * same template that was used when the stack was created.

*/ inline void SetTemplateBody(const char* value) { m_templateBody.assign(value); } /** *

Structure containing the template body. (For more information, go to Template * Anatomy in the CloudFormation User Guide.)

CloudFormation returns the * same template that was used when the stack was created.

*/ inline GetTemplateResult& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} /** *

Structure containing the template body. (For more information, go to Template * Anatomy in the CloudFormation User Guide.)

CloudFormation returns the * same template that was used when the stack was created.

*/ inline GetTemplateResult& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} /** *

Structure containing the template body. (For more information, go to Template * Anatomy in the CloudFormation User Guide.)

CloudFormation returns the * same template that was used when the stack was created.

*/ inline GetTemplateResult& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} /** *

The stage of the template that you can retrieve. For stacks, the * Original and Processed templates are always available. * For change sets, the Original template is always available. After * CloudFormation finishes creating the change set, the Processed * template becomes available.

*/ inline const Aws::Vector& GetStagesAvailable() const{ return m_stagesAvailable; } /** *

The stage of the template that you can retrieve. For stacks, the * Original and Processed templates are always available. * For change sets, the Original template is always available. After * CloudFormation finishes creating the change set, the Processed * template becomes available.

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

The stage of the template that you can retrieve. For stacks, the * Original and Processed templates are always available. * For change sets, the Original template is always available. After * CloudFormation finishes creating the change set, the Processed * template becomes available.

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

The stage of the template that you can retrieve. For stacks, the * Original and Processed templates are always available. * For change sets, the Original template is always available. After * CloudFormation finishes creating the change set, the Processed * template becomes available.

*/ inline GetTemplateResult& WithStagesAvailable(const Aws::Vector& value) { SetStagesAvailable(value); return *this;} /** *

The stage of the template that you can retrieve. For stacks, the * Original and Processed templates are always available. * For change sets, the Original template is always available. After * CloudFormation finishes creating the change set, the Processed * template becomes available.

*/ inline GetTemplateResult& WithStagesAvailable(Aws::Vector&& value) { SetStagesAvailable(std::move(value)); return *this;} /** *

The stage of the template that you can retrieve. For stacks, the * Original and Processed templates are always available. * For change sets, the Original template is always available. After * CloudFormation finishes creating the change set, the Processed * template becomes available.

*/ inline GetTemplateResult& AddStagesAvailable(const TemplateStage& value) { m_stagesAvailable.push_back(value); return *this; } /** *

The stage of the template that you can retrieve. For stacks, the * Original and Processed templates are always available. * For change sets, the Original template is always available. After * CloudFormation finishes creating the change set, the Processed * template becomes available.

*/ inline GetTemplateResult& AddStagesAvailable(TemplateStage&& value) { m_stagesAvailable.push_back(std::move(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 GetTemplateResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetTemplateResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_templateBody; Aws::Vector m_stagesAvailable; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudFormation } // namespace Aws