AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomMessageActivity.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/model/JourneyCustomMessage.h>
11#include <aws/pinpoint/model/__EndpointTypesElement.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_PINPOINT_API CustomMessageActivity();
42 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
54 inline const Aws::String& GetDeliveryUri() const{ return m_deliveryUri; }
55 inline bool DeliveryUriHasBeenSet() const { return m_deliveryUriHasBeenSet; }
56 inline void SetDeliveryUri(const Aws::String& value) { m_deliveryUriHasBeenSet = true; m_deliveryUri = value; }
57 inline void SetDeliveryUri(Aws::String&& value) { m_deliveryUriHasBeenSet = true; m_deliveryUri = std::move(value); }
58 inline void SetDeliveryUri(const char* value) { m_deliveryUriHasBeenSet = true; m_deliveryUri.assign(value); }
59 inline CustomMessageActivity& WithDeliveryUri(const Aws::String& value) { SetDeliveryUri(value); return *this;}
60 inline CustomMessageActivity& WithDeliveryUri(Aws::String&& value) { SetDeliveryUri(std::move(value)); return *this;}
61 inline CustomMessageActivity& WithDeliveryUri(const char* value) { SetDeliveryUri(value); return *this;}
63
65
70 inline const Aws::Vector<__EndpointTypesElement>& GetEndpointTypes() const{ return m_endpointTypes; }
71 inline bool EndpointTypesHasBeenSet() const { return m_endpointTypesHasBeenSet; }
72 inline void SetEndpointTypes(const Aws::Vector<__EndpointTypesElement>& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes = value; }
73 inline void SetEndpointTypes(Aws::Vector<__EndpointTypesElement>&& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes = std::move(value); }
76 inline CustomMessageActivity& AddEndpointTypes(const __EndpointTypesElement& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes.push_back(value); return *this; }
77 inline CustomMessageActivity& AddEndpointTypes(__EndpointTypesElement&& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes.push_back(std::move(value)); return *this; }
79
81
85 inline const JourneyCustomMessage& GetMessageConfig() const{ return m_messageConfig; }
86 inline bool MessageConfigHasBeenSet() const { return m_messageConfigHasBeenSet; }
87 inline void SetMessageConfig(const JourneyCustomMessage& value) { m_messageConfigHasBeenSet = true; m_messageConfig = value; }
88 inline void SetMessageConfig(JourneyCustomMessage&& value) { m_messageConfigHasBeenSet = true; m_messageConfig = std::move(value); }
90 inline CustomMessageActivity& WithMessageConfig(JourneyCustomMessage&& value) { SetMessageConfig(std::move(value)); return *this;}
92
94
98 inline const Aws::String& GetNextActivity() const{ return m_nextActivity; }
99 inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
100 inline void SetNextActivity(const Aws::String& value) { m_nextActivityHasBeenSet = true; m_nextActivity = value; }
101 inline void SetNextActivity(Aws::String&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::move(value); }
102 inline void SetNextActivity(const char* value) { m_nextActivityHasBeenSet = true; m_nextActivity.assign(value); }
103 inline CustomMessageActivity& WithNextActivity(const Aws::String& value) { SetNextActivity(value); return *this;}
104 inline CustomMessageActivity& WithNextActivity(Aws::String&& value) { SetNextActivity(std::move(value)); return *this;}
105 inline CustomMessageActivity& WithNextActivity(const char* value) { SetNextActivity(value); return *this;}
107
109
113 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
114 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
115 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
116 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
117 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
118 inline CustomMessageActivity& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
119 inline CustomMessageActivity& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
120 inline CustomMessageActivity& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
122
124
136 inline const Aws::String& GetTemplateVersion() const{ return m_templateVersion; }
137 inline bool TemplateVersionHasBeenSet() const { return m_templateVersionHasBeenSet; }
138 inline void SetTemplateVersion(const Aws::String& value) { m_templateVersionHasBeenSet = true; m_templateVersion = value; }
139 inline void SetTemplateVersion(Aws::String&& value) { m_templateVersionHasBeenSet = true; m_templateVersion = std::move(value); }
140 inline void SetTemplateVersion(const char* value) { m_templateVersionHasBeenSet = true; m_templateVersion.assign(value); }
141 inline CustomMessageActivity& WithTemplateVersion(const Aws::String& value) { SetTemplateVersion(value); return *this;}
142 inline CustomMessageActivity& WithTemplateVersion(Aws::String&& value) { SetTemplateVersion(std::move(value)); return *this;}
143 inline CustomMessageActivity& WithTemplateVersion(const char* value) { SetTemplateVersion(value); return *this;}
145 private:
146
147 Aws::String m_deliveryUri;
148 bool m_deliveryUriHasBeenSet = false;
149
151 bool m_endpointTypesHasBeenSet = false;
152
153 JourneyCustomMessage m_messageConfig;
154 bool m_messageConfigHasBeenSet = false;
155
156 Aws::String m_nextActivity;
157 bool m_nextActivityHasBeenSet = false;
158
159 Aws::String m_templateName;
160 bool m_templateNameHasBeenSet = false;
161
162 Aws::String m_templateVersion;
163 bool m_templateVersionHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Pinpoint
168} // namespace Aws
CustomMessageActivity & WithNextActivity(const char *value)
CustomMessageActivity & WithTemplateVersion(const Aws::String &value)
const JourneyCustomMessage & GetMessageConfig() const
CustomMessageActivity & WithTemplateVersion(const char *value)
CustomMessageActivity & WithTemplateName(Aws::String &&value)
CustomMessageActivity & WithDeliveryUri(Aws::String &&value)
CustomMessageActivity & WithTemplateVersion(Aws::String &&value)
void SetTemplateVersion(const Aws::String &value)
void SetEndpointTypes(const Aws::Vector< __EndpointTypesElement > &value)
CustomMessageActivity & WithEndpointTypes(const Aws::Vector< __EndpointTypesElement > &value)
CustomMessageActivity & WithTemplateName(const Aws::String &value)
CustomMessageActivity & WithDeliveryUri(const Aws::String &value)
CustomMessageActivity & WithEndpointTypes(Aws::Vector< __EndpointTypesElement > &&value)
CustomMessageActivity & WithTemplateName(const char *value)
void SetMessageConfig(const JourneyCustomMessage &value)
CustomMessageActivity & WithDeliveryUri(const char *value)
const Aws::Vector< __EndpointTypesElement > & GetEndpointTypes() const
CustomMessageActivity & WithMessageConfig(JourneyCustomMessage &&value)
CustomMessageActivity & WithMessageConfig(const JourneyCustomMessage &value)
void SetEndpointTypes(Aws::Vector< __EndpointTypesElement > &&value)
CustomMessageActivity & AddEndpointTypes(__EndpointTypesElement &&value)
CustomMessageActivity & WithNextActivity(const Aws::String &value)
void SetMessageConfig(JourneyCustomMessage &&value)
AWS_PINPOINT_API CustomMessageActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomMessageActivity & WithNextActivity(Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API CustomMessageActivity(Aws::Utils::Json::JsonView jsonValue)
CustomMessageActivity & AddEndpointTypes(const __EndpointTypesElement &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue