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

The following element is returned by the service.

See Also:

* AWS * API Reference

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

The name of the template.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of the template.

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

The name of the template.

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

The name of the template.

*/ inline void SetTemplateName(const char* value) { m_templateName.assign(value); } /** *

The name of the template.

*/ inline GetEmailTemplateResult& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the template.

*/ inline GetEmailTemplateResult& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of the template.

*/ inline GetEmailTemplateResult& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *

The content of the email template, composed of a subject line, an HTML part, * and a text-only part.

*/ inline const EmailTemplateContent& GetTemplateContent() const{ return m_templateContent; } /** *

The content of the email template, composed of a subject line, an HTML part, * and a text-only part.

*/ inline void SetTemplateContent(const EmailTemplateContent& value) { m_templateContent = value; } /** *

The content of the email template, composed of a subject line, an HTML part, * and a text-only part.

*/ inline void SetTemplateContent(EmailTemplateContent&& value) { m_templateContent = std::move(value); } /** *

The content of the email template, composed of a subject line, an HTML part, * and a text-only part.

*/ inline GetEmailTemplateResult& WithTemplateContent(const EmailTemplateContent& value) { SetTemplateContent(value); return *this;} /** *

The content of the email template, composed of a subject line, an HTML part, * and a text-only part.

*/ inline GetEmailTemplateResult& WithTemplateContent(EmailTemplateContent&& value) { SetTemplateContent(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetEmailTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetEmailTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetEmailTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_templateName; EmailTemplateContent m_templateContent; Aws::String m_requestId; }; } // namespace Model } // namespace SESV2 } // namespace Aws