AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEmailTemplateRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sesv2/model/EmailTemplateContent.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SESV2
16{
17namespace Model
18{
19
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateEmailTemplate"; }
38
39 AWS_SESV2_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
47 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
48 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
49 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
50 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
51 inline UpdateEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
52 inline UpdateEmailTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
53 inline UpdateEmailTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
55
57
61 inline const EmailTemplateContent& GetTemplateContent() const{ return m_templateContent; }
62 inline bool TemplateContentHasBeenSet() const { return m_templateContentHasBeenSet; }
63 inline void SetTemplateContent(const EmailTemplateContent& value) { m_templateContentHasBeenSet = true; m_templateContent = value; }
64 inline void SetTemplateContent(EmailTemplateContent&& value) { m_templateContentHasBeenSet = true; m_templateContent = std::move(value); }
68 private:
69
70 Aws::String m_templateName;
71 bool m_templateNameHasBeenSet = false;
72
73 EmailTemplateContent m_templateContent;
74 bool m_templateContentHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SESV2
79} // namespace Aws
AWS_SESV2_API Aws::String SerializePayload() const override
UpdateEmailTemplateRequest & WithTemplateContent(const EmailTemplateContent &value)
const EmailTemplateContent & GetTemplateContent() const
UpdateEmailTemplateRequest & WithTemplateContent(EmailTemplateContent &&value)
void SetTemplateContent(const EmailTemplateContent &value)
UpdateEmailTemplateRequest & WithTemplateName(Aws::String &&value)
void SetTemplateContent(EmailTemplateContent &&value)
virtual const char * GetServiceRequestName() const override
UpdateEmailTemplateRequest & WithTemplateName(const Aws::String &value)
UpdateEmailTemplateRequest & WithTemplateName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String