AWS SDK for C++  1.8.182
AWS SDK for C++
UpdateTemplateRequest.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 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateTemplate"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
39 
40  inline const Template& GetTemplate() const{ return m_template; }
41 
42 
43  inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
44 
45 
46  inline void SetTemplate(const Template& value) { m_templateHasBeenSet = true; m_template = value; }
47 
48 
49  inline void SetTemplate(Template&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
50 
51 
52  inline UpdateTemplateRequest& WithTemplate(const Template& value) { SetTemplate(value); return *this;}
53 
54 
55  inline UpdateTemplateRequest& WithTemplate(Template&& value) { SetTemplate(std::move(value)); return *this;}
56 
57  private:
58 
59  Template m_template;
60  bool m_templateHasBeenSet;
61  };
62 
63 } // namespace Model
64 } // namespace SES
65 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::UpdateTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SES::Model::Template
Definition: Template.h:33
Aws::SES::Model::UpdateTemplateRequest::TemplateHasBeenSet
bool TemplateHasBeenSet() const
Definition: UpdateTemplateRequest.h:43
Aws::SES::Model::UpdateTemplateRequest::SetTemplate
void SetTemplate(Template &&value)
Definition: UpdateTemplateRequest.h:49
Aws::SES::Model::UpdateTemplateRequest::WithTemplate
UpdateTemplateRequest & WithTemplate(Template &&value)
Definition: UpdateTemplateRequest.h:55
Aws::SES::Model::UpdateTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTemplateRequest.h:30
Aws::SES::Model::UpdateTemplateRequest::WithTemplate
UpdateTemplateRequest & WithTemplate(const Template &value)
Definition: UpdateTemplateRequest.h:52
SESRequest.h
Aws::SES::Model::UpdateTemplateRequest::UpdateTemplateRequest
UpdateTemplateRequest()
Aws::SES::Model::UpdateTemplateRequest::SetTemplate
void SetTemplate(const Template &value)
Definition: UpdateTemplateRequest.h:46
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::UpdateTemplateRequest::GetTemplate
const Template & GetTemplate() const
Definition: UpdateTemplateRequest.h:40
Aws::SES::SESRequest
Definition: SESRequest.h:17
Template.h
Aws::SES::Model::UpdateTemplateRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SES::Model::UpdateTemplateRequest
Definition: UpdateTemplateRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97