/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PinpointEmail { namespace Model { class Template { public: AWS_PINPOINTEMAIL_API Template(); AWS_PINPOINTEMAIL_API Template(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINTEMAIL_API Template& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the template.

*/ inline const Aws::String& GetTemplateArn() const{ return m_templateArn; } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline Template& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the template.

*/ inline Template& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the template.

*/ inline Template& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;} /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline const Aws::String& GetTemplateData() const{ return m_templateData; } /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline bool TemplateDataHasBeenSet() const { return m_templateDataHasBeenSet; } /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline void SetTemplateData(const Aws::String& value) { m_templateDataHasBeenSet = true; m_templateData = value; } /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline void SetTemplateData(Aws::String&& value) { m_templateDataHasBeenSet = true; m_templateData = std::move(value); } /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline void SetTemplateData(const char* value) { m_templateDataHasBeenSet = true; m_templateData.assign(value); } /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline Template& WithTemplateData(const Aws::String& value) { SetTemplateData(value); return *this;} /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline Template& WithTemplateData(Aws::String&& value) { SetTemplateData(std::move(value)); return *this;} /** *

An object that defines the values to use for message variables in the * template. This object is a set of key-value pairs. Each key defines a message * variable in the template. The corresponding value defines the value to use for * that variable.

*/ inline Template& WithTemplateData(const char* value) { SetTemplateData(value); return *this;} private: Aws::String m_templateArn; bool m_templateArnHasBeenSet = false; Aws::String m_templateData; bool m_templateDataHasBeenSet = false; }; } // namespace Model } // namespace PinpointEmail } // namespace Aws