AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEmailTemplateRequest.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 Http
16{
17 class URI;
18} //namespace Http
19namespace Pinpoint
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_PINPOINT_API UpdateEmailTemplateRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateEmailTemplate"; }
36
37 AWS_PINPOINT_API Aws::String SerializePayload() const override;
38
39 AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
52 inline bool GetCreateNewVersion() const{ return m_createNewVersion; }
53 inline bool CreateNewVersionHasBeenSet() const { return m_createNewVersionHasBeenSet; }
54 inline void SetCreateNewVersion(bool value) { m_createNewVersionHasBeenSet = true; m_createNewVersion = value; }
55 inline UpdateEmailTemplateRequest& WithCreateNewVersion(bool value) { SetCreateNewVersion(value); return *this;}
57
59
60 inline const EmailTemplateRequest& GetEmailTemplateRequest() const{ return m_emailTemplateRequest; }
61 inline bool EmailTemplateRequestHasBeenSet() const { return m_emailTemplateRequestHasBeenSet; }
62 inline void SetEmailTemplateRequest(const EmailTemplateRequest& value) { m_emailTemplateRequestHasBeenSet = true; m_emailTemplateRequest = value; }
63 inline void SetEmailTemplateRequest(EmailTemplateRequest&& value) { m_emailTemplateRequestHasBeenSet = true; m_emailTemplateRequest = std::move(value); }
67
69
75 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
76 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
77 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
78 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
79 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
80 inline UpdateEmailTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
81 inline UpdateEmailTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
82 inline UpdateEmailTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
84
86
103 inline const Aws::String& GetVersion() const{ return m_version; }
104 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
105 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
106 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
107 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
108 inline UpdateEmailTemplateRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
109 inline UpdateEmailTemplateRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
110 inline UpdateEmailTemplateRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
112 private:
113
114 bool m_createNewVersion;
115 bool m_createNewVersionHasBeenSet = false;
116
117 EmailTemplateRequest m_emailTemplateRequest;
118 bool m_emailTemplateRequestHasBeenSet = false;
119
120 Aws::String m_templateName;
121 bool m_templateNameHasBeenSet = false;
122
123 Aws::String m_version;
124 bool m_versionHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Pinpoint
129} // namespace Aws
UpdateEmailTemplateRequest & WithTemplateName(const Aws::String &value)
UpdateEmailTemplateRequest & WithEmailTemplateRequest(const EmailTemplateRequest &value)
void SetEmailTemplateRequest(const EmailTemplateRequest &value)
UpdateEmailTemplateRequest & WithEmailTemplateRequest(EmailTemplateRequest &&value)
UpdateEmailTemplateRequest & WithVersion(const char *value)
UpdateEmailTemplateRequest & WithTemplateName(Aws::String &&value)
UpdateEmailTemplateRequest & WithCreateNewVersion(bool value)
UpdateEmailTemplateRequest & WithTemplateName(const char *value)
UpdateEmailTemplateRequest & WithVersion(const Aws::String &value)
const EmailTemplateRequest & GetEmailTemplateRequest() const
AWS_PINPOINT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateEmailTemplateRequest & WithVersion(Aws::String &&value)
AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String