AWS SDK for C++  1.8.129
AWS SDK for C++
DeleteTemplateRequest.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 "DeleteTemplate"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
49 
53  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
54 
58  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
59 
63  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
64 
68  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
69 
73  inline DeleteTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
74 
78  inline DeleteTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
79 
83  inline DeleteTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
84 
85  private:
86 
87  Aws::String m_templateName;
88  bool m_templateNameHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace SES
93 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::DeleteTemplateRequest::WithTemplateName
DeleteTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: DeleteTemplateRequest.h:73
Aws::SES::Model::DeleteTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: DeleteTemplateRequest.h:53
Aws::SES::Model::DeleteTemplateRequest::WithTemplateName
DeleteTemplateRequest & WithTemplateName(const char *value)
Definition: DeleteTemplateRequest.h:83
Aws::SES::Model::DeleteTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: DeleteTemplateRequest.h:58
Aws::SES::Model::DeleteTemplateRequest::DeleteTemplateRequest
DeleteTemplateRequest()
Aws::SES::Model::DeleteTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: DeleteTemplateRequest.h:63
Aws::SES::Model::DeleteTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: DeleteTemplateRequest.h:68
SESRequest.h
Aws::SES::Model::DeleteTemplateRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SES::Model::DeleteTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: DeleteTemplateRequest.h:48
Aws::SES::Model::DeleteTemplateRequest::WithTemplateName
DeleteTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: DeleteTemplateRequest.h:78
AWSString.h
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::DeleteTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTemplateRequest.h:36
Aws::SES::Model::DeleteTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SES::SESRequest
Definition: SESRequest.h:17
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::DeleteTemplateRequest
Definition: DeleteTemplateRequest.h:28