AWS SDK for C++  1.9.107
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
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::TestRenderEmailTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: TestRenderEmailTemplateRequest.h:53
Aws::SESV2::Model::TestRenderEmailTemplateRequest::WithTemplateName
TestRenderEmailTemplateRequest & WithTemplateName(const char *value)
Definition: TestRenderEmailTemplateRequest.h:78
Aws::SESV2::Model::TestRenderEmailTemplateRequest::TemplateDataHasBeenSet
bool TemplateDataHasBeenSet() const
Definition: TestRenderEmailTemplateRequest.h:93
Aws::SESV2::Model::TestRenderEmailTemplateRequest::SetTemplateData
void SetTemplateData(Aws::String &&value)
Definition: TestRenderEmailTemplateRequest.h:107
Aws::SESV2::Model::TestRenderEmailTemplateRequest
Definition: TestRenderEmailTemplateRequest.h:27
Aws::SESV2::Model::TestRenderEmailTemplateRequest::GetTemplateData
const Aws::String & GetTemplateData() const
Definition: TestRenderEmailTemplateRequest.h:86
Aws::SESV2::Model::TestRenderEmailTemplateRequest::SetTemplateData
void SetTemplateData(const char *value)
Definition: TestRenderEmailTemplateRequest.h:114
Aws::SESV2::Model::TestRenderEmailTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::TestRenderEmailTemplateRequest::WithTemplateData
TestRenderEmailTemplateRequest & WithTemplateData(Aws::String &&value)
Definition: TestRenderEmailTemplateRequest.h:128
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::TestRenderEmailTemplateRequest::WithTemplateData
TestRenderEmailTemplateRequest & WithTemplateData(const char *value)
Definition: TestRenderEmailTemplateRequest.h:135
AWSString.h
Aws::SESV2::Model::TestRenderEmailTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: TestRenderEmailTemplateRequest.h:43
Aws::SESV2::Model::TestRenderEmailTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TestRenderEmailTemplateRequest.h:35
SESV2_EXPORTS.h
Aws::SESV2::Model::TestRenderEmailTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: TestRenderEmailTemplateRequest.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::TestRenderEmailTemplateRequest::WithTemplateName
TestRenderEmailTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: TestRenderEmailTemplateRequest.h:73
Aws::SESV2::Model::TestRenderEmailTemplateRequest::WithTemplateName
TestRenderEmailTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: TestRenderEmailTemplateRequest.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::TestRenderEmailTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: TestRenderEmailTemplateRequest.h:48
Aws::SESV2::Model::TestRenderEmailTemplateRequest::TestRenderEmailTemplateRequest
TestRenderEmailTemplateRequest()
SESV2Request.h
Aws::SESV2::Model::TestRenderEmailTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: TestRenderEmailTemplateRequest.h:63
Aws::SESV2::Model::TestRenderEmailTemplateRequest::WithTemplateData
TestRenderEmailTemplateRequest & WithTemplateData(const Aws::String &value)
Definition: TestRenderEmailTemplateRequest.h:121
Aws::SESV2::Model::TestRenderEmailTemplateRequest::SetTemplateData
void SetTemplateData(const Aws::String &value)
Definition: TestRenderEmailTemplateRequest.h:100