1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/email/SES_EXPORTS.h> 8 #include <aws/email/SESRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace SES 15 { 16 namespace Model 17 { 18 19 /** 20 * <p>Represents a request to delete an email template. For more information, see 21 * the <a 22 * href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html">Amazon 23 * SES Developer Guide</a>.</p><p><h3>See Also:</h3> <a 24 * href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteTemplateRequest">AWS 25 * API Reference</a></p> 26 */ 27 class AWS_SES_API DeleteTemplateRequest : public SESRequest 28 { 29 public: 30 DeleteTemplateRequest(); 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. GetServiceRequestName()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 45 /** 46 * <p>The name of the template to be deleted.</p> 47 */ GetTemplateName()48 inline const Aws::String& GetTemplateName() const{ return m_templateName; } 49 50 /** 51 * <p>The name of the template to be deleted.</p> 52 */ TemplateNameHasBeenSet()53 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } 54 55 /** 56 * <p>The name of the template to be deleted.</p> 57 */ SetTemplateName(const Aws::String & value)58 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } 59 60 /** 61 * <p>The name of the template to be deleted.</p> 62 */ SetTemplateName(Aws::String && value)63 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } 64 65 /** 66 * <p>The name of the template to be deleted.</p> 67 */ SetTemplateName(const char * value)68 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } 69 70 /** 71 * <p>The name of the template to be deleted.</p> 72 */ WithTemplateName(const Aws::String & value)73 inline DeleteTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} 74 75 /** 76 * <p>The name of the template to be deleted.</p> 77 */ WithTemplateName(Aws::String && value)78 inline DeleteTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} 79 80 /** 81 * <p>The name of the template to be deleted.</p> 82 */ WithTemplateName(const char * value)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 94