AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteSmsTemplateRequest.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 "DeleteSmsTemplate"; }
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 DeleteSmsTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
88 
95  inline DeleteSmsTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
96 
103  inline DeleteSmsTemplateRequest& 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 DeleteSmsTemplateRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
219 
237  inline DeleteSmsTemplateRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
238 
256  inline DeleteSmsTemplateRequest& 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
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::WithVersion
DeleteSmsTemplateRequest & WithVersion(const char *value)
Definition: DeleteSmsTemplateRequest.h:256
Aws::Http::URI
Definition: URI.h:32
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::DeleteSmsTemplateRequest
DeleteSmsTemplateRequest()
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::WithTemplateName
DeleteSmsTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: DeleteSmsTemplateRequest.h:87
AWS_PINPOINT_API
#define AWS_PINPOINT_API
Definition: Pinpoint_EXPORTS.h:28
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::WithTemplateName
DeleteSmsTemplateRequest & WithTemplateName(const char *value)
Definition: DeleteSmsTemplateRequest.h:103
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: DeleteSmsTemplateRequest.h:79
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteSmsTemplateRequest.h:34
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::SetVersion
void SetVersion(const char *value)
Definition: DeleteSmsTemplateRequest.h:199
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::WithTemplateName
DeleteSmsTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: DeleteSmsTemplateRequest.h:95
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: DeleteSmsTemplateRequest.h:142
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::GetVersion
const Aws::String & GetVersion() const
Definition: DeleteSmsTemplateRequest.h:123
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: DeleteSmsTemplateRequest.h:161
Pinpoint_EXPORTS.h
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: DeleteSmsTemplateRequest.h:71
AWSString.h
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::WithVersion
DeleteSmsTemplateRequest & WithVersion(Aws::String &&value)
Definition: DeleteSmsTemplateRequest.h:237
Aws::Pinpoint::PinpointRequest
Definition: PinpointRequest.h:17
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: DeleteSmsTemplateRequest.h:180
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::WithVersion
DeleteSmsTemplateRequest & WithVersion(const Aws::String &value)
Definition: DeleteSmsTemplateRequest.h:218
Aws
Definition: AccessManagementClient.h:15
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: DeleteSmsTemplateRequest.h:55
Aws::Pinpoint::Model::DeleteSmsTemplateRequest
Definition: DeleteSmsTemplateRequest.h:26
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: DeleteSmsTemplateRequest.h:63
Aws::Pinpoint::Model::DeleteSmsTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: DeleteSmsTemplateRequest.h:47
PinpointRequest.h