AWS SDK for C++  1.8.129
AWS SDK for C++
CreateTemplateRequest.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 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateTemplate"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
49  inline const Template& GetTemplate() const{ return m_template; }
50 
55  inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
56 
61  inline void SetTemplate(const Template& value) { m_templateHasBeenSet = true; m_template = value; }
62 
67  inline void SetTemplate(Template&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
68 
73  inline CreateTemplateRequest& WithTemplate(const Template& value) { SetTemplate(value); return *this;}
74 
79  inline CreateTemplateRequest& WithTemplate(Template&& value) { SetTemplate(std::move(value)); return *this;}
80 
81  private:
82 
83  Template m_template;
84  bool m_templateHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace SES
89 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::CreateTemplateRequest::SetTemplate
void SetTemplate(Template &&value)
Definition: CreateTemplateRequest.h:67
Aws::SES::Model::CreateTemplateRequest
Definition: CreateTemplateRequest.h:28
Aws::SES::Model::Template
Definition: Template.h:33
Aws::SES::Model::CreateTemplateRequest::CreateTemplateRequest
CreateTemplateRequest()
Aws::SES::Model::CreateTemplateRequest::GetTemplate
const Template & GetTemplate() const
Definition: CreateTemplateRequest.h:49
Aws::SES::Model::CreateTemplateRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SES::Model::CreateTemplateRequest::WithTemplate
CreateTemplateRequest & WithTemplate(Template &&value)
Definition: CreateTemplateRequest.h:79
Aws::SES::Model::CreateTemplateRequest::SetTemplate
void SetTemplate(const Template &value)
Definition: CreateTemplateRequest.h:61
SESRequest.h
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::CreateTemplateRequest::TemplateHasBeenSet
bool TemplateHasBeenSet() const
Definition: CreateTemplateRequest.h:55
Aws::SES::SESRequest
Definition: SESRequest.h:17
Template.h
Aws::SES::Model::CreateTemplateRequest::WithTemplate
CreateTemplateRequest & WithTemplate(const Template &value)
Definition: CreateTemplateRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::CreateTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SES::Model::CreateTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTemplateRequest.h:36