AWS SDK for C++  1.9.155
AWS SDK for C++
CreateEmailTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SESV2
16 {
17 namespace 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 "CreateEmailTemplate"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
45  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
46 
50  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
51 
55  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
56 
60  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
61 
65  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
66 
70  inline CreateEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
71 
75  inline CreateEmailTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
76 
80  inline CreateEmailTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
81 
82 
87  inline const EmailTemplateContent& GetTemplateContent() const{ return m_templateContent; }
88 
93  inline bool TemplateContentHasBeenSet() const { return m_templateContentHasBeenSet; }
94 
99  inline void SetTemplateContent(const EmailTemplateContent& value) { m_templateContentHasBeenSet = true; m_templateContent = value; }
100 
105  inline void SetTemplateContent(EmailTemplateContent&& value) { m_templateContentHasBeenSet = true; m_templateContent = std::move(value); }
106 
111  inline CreateEmailTemplateRequest& WithTemplateContent(const EmailTemplateContent& value) { SetTemplateContent(value); return *this;}
112 
117  inline CreateEmailTemplateRequest& WithTemplateContent(EmailTemplateContent&& value) { SetTemplateContent(std::move(value)); return *this;}
118 
119  private:
120 
121  Aws::String m_templateName;
122  bool m_templateNameHasBeenSet;
123 
124  EmailTemplateContent m_templateContent;
125  bool m_templateContentHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace SESV2
130 } // namespace Aws
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::EmailTemplateContent
Definition: EmailTemplateContent.h:33
Aws::SESV2::Model::CreateEmailTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEmailTemplateRequest.h:37
Aws::SESV2::Model::CreateEmailTemplateRequest::SetTemplateContent
void SetTemplateContent(EmailTemplateContent &&value)
Definition: CreateEmailTemplateRequest.h:105
Aws::SESV2::Model::CreateEmailTemplateRequest::CreateEmailTemplateRequest
CreateEmailTemplateRequest()
Aws::SESV2::Model::CreateEmailTemplateRequest::WithTemplateName
CreateEmailTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: CreateEmailTemplateRequest.h:75
Aws::SESV2::Model::CreateEmailTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: CreateEmailTemplateRequest.h:65
Aws::SESV2::Model::CreateEmailTemplateRequest::WithTemplateContent
CreateEmailTemplateRequest & WithTemplateContent(const EmailTemplateContent &value)
Definition: CreateEmailTemplateRequest.h:111
Aws::SESV2::Model::CreateEmailTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::CreateEmailTemplateRequest::WithTemplateName
CreateEmailTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: CreateEmailTemplateRequest.h:70
Aws::SESV2::Model::CreateEmailTemplateRequest
Definition: CreateEmailTemplateRequest.h:29
Aws::SESV2::Model::CreateEmailTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: CreateEmailTemplateRequest.h:45
Aws::SESV2::Model::CreateEmailTemplateRequest::WithTemplateContent
CreateEmailTemplateRequest & WithTemplateContent(EmailTemplateContent &&value)
Definition: CreateEmailTemplateRequest.h:117
Aws::SESV2::Model::CreateEmailTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: CreateEmailTemplateRequest.h:50
EmailTemplateContent.h
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::CreateEmailTemplateRequest::TemplateContentHasBeenSet
bool TemplateContentHasBeenSet() const
Definition: CreateEmailTemplateRequest.h:93
AWSString.h
Aws::SESV2::Model::CreateEmailTemplateRequest::SetTemplateContent
void SetTemplateContent(const EmailTemplateContent &value)
Definition: CreateEmailTemplateRequest.h:99
Aws::SESV2::Model::CreateEmailTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: CreateEmailTemplateRequest.h:55
SESV2_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SESV2Request.h
Aws::SESV2::Model::CreateEmailTemplateRequest::GetTemplateContent
const EmailTemplateContent & GetTemplateContent() const
Definition: CreateEmailTemplateRequest.h:87
Aws::SESV2::Model::CreateEmailTemplateRequest::WithTemplateName
CreateEmailTemplateRequest & WithTemplateName(const char *value)
Definition: CreateEmailTemplateRequest.h:80
Aws::SESV2::Model::CreateEmailTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: CreateEmailTemplateRequest.h:60