AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEmailTemplateRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/PinpointRequest.h>
9#include <aws/pinpoint/model/EmailTemplateRequest.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Pinpoint
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_PINPOINT_API CreateEmailTemplateRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateEmailTemplate"; }
32
33 AWS_PINPOINT_API Aws::String SerializePayload() const override;
34
35
37
38 inline const EmailTemplateRequest& GetEmailTemplateRequest() const{ return m_emailTemplateRequest; }
39 inline bool EmailTemplateRequestHasBeenSet() const { return m_emailTemplateRequestHasBeenSet; }
40 inline void SetEmailTemplateRequest(const EmailTemplateRequest& value) { m_emailTemplateRequestHasBeenSet = true; m_emailTemplateRequest = value; }
41 inline void SetEmailTemplateRequest(EmailTemplateRequest&& value) { m_emailTemplateRequestHasBeenSet = true; m_emailTemplateRequest = std::move(value); }
45
47
53 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
54 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
55 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
56 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
57 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
58 inline CreateEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
59 inline CreateEmailTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
60 inline CreateEmailTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
62 private:
63
64 EmailTemplateRequest m_emailTemplateRequest;
65 bool m_emailTemplateRequestHasBeenSet = false;
66
67 Aws::String m_templateName;
68 bool m_templateNameHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Pinpoint
73} // namespace Aws
CreateEmailTemplateRequest & WithTemplateName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateEmailTemplateRequest & WithTemplateName(const char *value)
CreateEmailTemplateRequest & WithEmailTemplateRequest(EmailTemplateRequest &&value)
const EmailTemplateRequest & GetEmailTemplateRequest() const
CreateEmailTemplateRequest & WithEmailTemplateRequest(const EmailTemplateRequest &value)
void SetEmailTemplateRequest(const EmailTemplateRequest &value)
CreateEmailTemplateRequest & WithTemplateName(Aws::String &&value)
AWS_PINPOINT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String