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

Represents a mapping template used to transform a payload.

See Also:

AWS * API Reference

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

The Apache Velocity Template Language (VTL) template content used for * the template resource.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The Apache Velocity Template Language (VTL) template content used for * the template resource.

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

The Apache Velocity Template Language (VTL) template content used for * the template resource.

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

The Apache Velocity Template Language (VTL) template content used for * the template resource.

*/ inline void SetValue(const char* value) { m_value.assign(value); } /** *

The Apache Velocity Template Language (VTL) template content used for * the template resource.

*/ inline GetModelTemplateResult& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The Apache Velocity Template Language (VTL) template content used for * the template resource.

*/ inline GetModelTemplateResult& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The Apache Velocity Template Language (VTL) template content used for * the template resource.

*/ inline GetModelTemplateResult& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_value; }; } // namespace Model } // namespace APIGateway } // namespace Aws