AWS SDK for C++  1.8.71
AWS SDK for C++
TestRenderTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SES
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "TestRenderTemplate"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
43 
47  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
48 
52  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
53 
57  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
58 
62  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
63 
67  inline TestRenderTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
68 
72  inline TestRenderTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
73 
77  inline TestRenderTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
78 
79 
85  inline const Aws::String& GetTemplateData() const{ return m_templateData; }
86 
92  inline bool TemplateDataHasBeenSet() const { return m_templateDataHasBeenSet; }
93 
99  inline void SetTemplateData(const Aws::String& value) { m_templateDataHasBeenSet = true; m_templateData = value; }
100 
106  inline void SetTemplateData(Aws::String&& value) { m_templateDataHasBeenSet = true; m_templateData = std::move(value); }
107 
113  inline void SetTemplateData(const char* value) { m_templateDataHasBeenSet = true; m_templateData.assign(value); }
114 
120  inline TestRenderTemplateRequest& WithTemplateData(const Aws::String& value) { SetTemplateData(value); return *this;}
121 
127  inline TestRenderTemplateRequest& WithTemplateData(Aws::String&& value) { SetTemplateData(std::move(value)); return *this;}
128 
134  inline TestRenderTemplateRequest& WithTemplateData(const char* value) { SetTemplateData(value); return *this;}
135 
136  private:
137 
138  Aws::String m_templateName;
139  bool m_templateNameHasBeenSet;
140 
141  Aws::String m_templateData;
142  bool m_templateDataHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace SES
147 } // namespace Aws
TestRenderTemplateRequest & WithTemplateName(const Aws::String &value)
TestRenderTemplateRequest & WithTemplateData(const char *value)
TestRenderTemplateRequest & WithTemplateData(Aws::String &&value)
TestRenderTemplateRequest & WithTemplateName(const char *value)
TestRenderTemplateRequest & WithTemplateName(Aws::String &&value)
TestRenderTemplateRequest & WithTemplateData(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
virtual const char * GetServiceRequestName() const override