AWS SDK for C++  1.9.153
AWS SDK for C++
GetEmailTemplateRequest.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 "GetEmailTemplate"; }
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 GetEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
69 
73  inline GetEmailTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
74 
78  inline GetEmailTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
79 
80  private:
81 
82  Aws::String m_templateName;
83  bool m_templateNameHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace SESV2
88 } // namespace Aws
Aws::SESV2::Model::GetEmailTemplateRequest
Definition: GetEmailTemplateRequest.h:27
Aws::SESV2::Model::GetEmailTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: GetEmailTemplateRequest.h:53
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::GetEmailTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetEmailTemplateRequest.h:35
Aws::SESV2::Model::GetEmailTemplateRequest::GetEmailTemplateRequest
GetEmailTemplateRequest()
Aws::SESV2::Model::GetEmailTemplateRequest::WithTemplateName
GetEmailTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: GetEmailTemplateRequest.h:68
Aws::SESV2::Model::GetEmailTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: GetEmailTemplateRequest.h:48
Aws::SESV2::Model::GetEmailTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: GetEmailTemplateRequest.h:43
Aws::SESV2::Model::GetEmailTemplateRequest::WithTemplateName
GetEmailTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: GetEmailTemplateRequest.h:73
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
AWSString.h
Aws::SESV2::Model::GetEmailTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: GetEmailTemplateRequest.h:58
SESV2_EXPORTS.h
Aws::SESV2::Model::GetEmailTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: GetEmailTemplateRequest.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::GetEmailTemplateRequest::WithTemplateName
GetEmailTemplateRequest & WithTemplateName(const char *value)
Definition: GetEmailTemplateRequest.h:78
SESV2Request.h
Aws::SESV2::Model::GetEmailTemplateRequest::SerializePayload
Aws::String SerializePayload() const override