AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateInAppTemplateRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/PinpointRequest.h>
9#include <aws/pinpoint/model/InAppTemplateRequest.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 UpdateInAppTemplateRequest();
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 "UpdateInAppTemplate"; }
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 UpdateInAppTemplateRequest& WithCreateNewVersion(bool value) { SetCreateNewVersion(value); return *this;}
57
59
60 inline const InAppTemplateRequest& GetInAppTemplateRequest() const{ return m_inAppTemplateRequest; }
61 inline bool InAppTemplateRequestHasBeenSet() const { return m_inAppTemplateRequestHasBeenSet; }
62 inline void SetInAppTemplateRequest(const InAppTemplateRequest& value) { m_inAppTemplateRequestHasBeenSet = true; m_inAppTemplateRequest = value; }
63 inline void SetInAppTemplateRequest(InAppTemplateRequest&& value) { m_inAppTemplateRequestHasBeenSet = true; m_inAppTemplateRequest = 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 UpdateInAppTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
81 inline UpdateInAppTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
82 inline UpdateInAppTemplateRequest& 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 UpdateInAppTemplateRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
109 inline UpdateInAppTemplateRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
110 inline UpdateInAppTemplateRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
112 private:
113
114 bool m_createNewVersion;
115 bool m_createNewVersionHasBeenSet = false;
116
117 InAppTemplateRequest m_inAppTemplateRequest;
118 bool m_inAppTemplateRequestHasBeenSet = 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
UpdateInAppTemplateRequest & WithInAppTemplateRequest(InAppTemplateRequest &&value)
UpdateInAppTemplateRequest & WithCreateNewVersion(bool value)
UpdateInAppTemplateRequest & WithVersion(const char *value)
void SetInAppTemplateRequest(const InAppTemplateRequest &value)
virtual const char * GetServiceRequestName() const override
const InAppTemplateRequest & GetInAppTemplateRequest() const
UpdateInAppTemplateRequest & WithInAppTemplateRequest(const InAppTemplateRequest &value)
UpdateInAppTemplateRequest & WithTemplateName(const char *value)
AWS_PINPOINT_API Aws::String SerializePayload() const override
UpdateInAppTemplateRequest & WithVersion(Aws::String &&value)
AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateInAppTemplateRequest & WithVersion(const Aws::String &value)
UpdateInAppTemplateRequest & WithTemplateName(Aws::String &&value)
UpdateInAppTemplateRequest & WithTemplateName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String