AWS SDK for C++  1.8.71
AWS SDK for C++
DeleteEmailTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Pinpoint
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DeleteEmailTemplate"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
47  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
48 
55  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
56 
63  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
64 
71  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
72 
79  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
80 
87  inline DeleteEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
88 
95  inline DeleteEmailTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
96 
103  inline DeleteEmailTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
104 
105 
123  inline const Aws::String& GetVersion() const{ return m_version; }
124 
142  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
143 
161  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
162 
180  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
181 
199  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
200 
218  inline DeleteEmailTemplateRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
219 
237  inline DeleteEmailTemplateRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
238 
256  inline DeleteEmailTemplateRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
257 
258  private:
259 
260  Aws::String m_templateName;
261  bool m_templateNameHasBeenSet;
262 
263  Aws::String m_version;
264  bool m_versionHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace Pinpoint
269 } // namespace Aws
DeleteEmailTemplateRequest & WithVersion(const char *value)
DeleteEmailTemplateRequest & WithVersion(const Aws::String &value)
DeleteEmailTemplateRequest & WithTemplateName(const char *value)
virtual const char * GetServiceRequestName() const override
#define AWS_PINPOINT_API
DeleteEmailTemplateRequest & WithTemplateName(const Aws::String &value)
DeleteEmailTemplateRequest & WithTemplateName(Aws::String &&value)
DeleteEmailTemplateRequest & WithVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97