AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetEmailTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SESV2 {
15namespace Model {
16
25 public:
26 AWS_SESV2_API GetEmailTemplateRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetEmailTemplate"; }
33
34 AWS_SESV2_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetTemplateName() const { return m_templateName; }
41 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
42 template <typename TemplateNameT = Aws::String>
43 void SetTemplateName(TemplateNameT&& value) {
44 m_templateNameHasBeenSet = true;
45 m_templateName = std::forward<TemplateNameT>(value);
46 }
47 template <typename TemplateNameT = Aws::String>
48 GetEmailTemplateRequest& WithTemplateName(TemplateNameT&& value) {
49 SetTemplateName(std::forward<TemplateNameT>(value));
50 return *this;
51 }
53 private:
54 Aws::String m_templateName;
55 bool m_templateNameHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace SESV2
60} // namespace Aws
GetEmailTemplateRequest & WithTemplateName(TemplateNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SESV2_API GetEmailTemplateRequest()=default
AWS_SESV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String