AWS SDK for C++  1.8.71
AWS SDK for C++
TestRenderEmailTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SESV2
15 {
16 namespace Model
17 {
18 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "TestRenderEmailTemplate"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
44 
48  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
49 
53  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
54 
58  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
59 
63  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
64 
68  inline TestRenderEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
69 
73  inline TestRenderEmailTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
74 
78  inline TestRenderEmailTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
79 
80 
86  inline const Aws::String& GetTemplateData() const{ return m_templateData; }
87 
93  inline bool TemplateDataHasBeenSet() const { return m_templateDataHasBeenSet; }
94 
100  inline void SetTemplateData(const Aws::String& value) { m_templateDataHasBeenSet = true; m_templateData = value; }
101 
107  inline void SetTemplateData(Aws::String&& value) { m_templateDataHasBeenSet = true; m_templateData = std::move(value); }
108 
114  inline void SetTemplateData(const char* value) { m_templateDataHasBeenSet = true; m_templateData.assign(value); }
115 
121  inline TestRenderEmailTemplateRequest& WithTemplateData(const Aws::String& value) { SetTemplateData(value); return *this;}
122 
128  inline TestRenderEmailTemplateRequest& WithTemplateData(Aws::String&& value) { SetTemplateData(std::move(value)); return *this;}
129 
135  inline TestRenderEmailTemplateRequest& WithTemplateData(const char* value) { SetTemplateData(value); return *this;}
136 
137  private:
138 
139  Aws::String m_templateName;
140  bool m_templateNameHasBeenSet;
141 
142  Aws::String m_templateData;
143  bool m_templateDataHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace SESV2
148 } // namespace Aws
TestRenderEmailTemplateRequest & WithTemplateData(const char *value)
TestRenderEmailTemplateRequest & WithTemplateData(Aws::String &&value)
TestRenderEmailTemplateRequest & WithTemplateName(const char *value)
TestRenderEmailTemplateRequest & WithTemplateName(Aws::String &&value)
TestRenderEmailTemplateRequest & WithTemplateName(const Aws::String &value)
TestRenderEmailTemplateRequest & WithTemplateData(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28