AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CustomMessageActivity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/JourneyCustomMessage.h>
11#include <aws/pinpoint/model/__EndpointTypesElement.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
33 public:
34 AWS_PINPOINT_API CustomMessageActivity() = default;
37 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
48 inline const Aws::String& GetDeliveryUri() const { return m_deliveryUri; }
49 inline bool DeliveryUriHasBeenSet() const { return m_deliveryUriHasBeenSet; }
50 template <typename DeliveryUriT = Aws::String>
51 void SetDeliveryUri(DeliveryUriT&& value) {
52 m_deliveryUriHasBeenSet = true;
53 m_deliveryUri = std::forward<DeliveryUriT>(value);
54 }
55 template <typename DeliveryUriT = Aws::String>
56 CustomMessageActivity& WithDeliveryUri(DeliveryUriT&& value) {
57 SetDeliveryUri(std::forward<DeliveryUriT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::Vector<__EndpointTypesElement>& GetEndpointTypes() const { return m_endpointTypes; }
69 inline bool EndpointTypesHasBeenSet() const { return m_endpointTypesHasBeenSet; }
70 template <typename EndpointTypesT = Aws::Vector<__EndpointTypesElement>>
71 void SetEndpointTypes(EndpointTypesT&& value) {
72 m_endpointTypesHasBeenSet = true;
73 m_endpointTypes = std::forward<EndpointTypesT>(value);
74 }
75 template <typename EndpointTypesT = Aws::Vector<__EndpointTypesElement>>
76 CustomMessageActivity& WithEndpointTypes(EndpointTypesT&& value) {
77 SetEndpointTypes(std::forward<EndpointTypesT>(value));
78 return *this;
79 }
81 m_endpointTypesHasBeenSet = true;
82 m_endpointTypes.push_back(value);
83 return *this;
84 }
86
88
92 inline const JourneyCustomMessage& GetMessageConfig() const { return m_messageConfig; }
93 inline bool MessageConfigHasBeenSet() const { return m_messageConfigHasBeenSet; }
94 template <typename MessageConfigT = JourneyCustomMessage>
95 void SetMessageConfig(MessageConfigT&& value) {
96 m_messageConfigHasBeenSet = true;
97 m_messageConfig = std::forward<MessageConfigT>(value);
98 }
99 template <typename MessageConfigT = JourneyCustomMessage>
100 CustomMessageActivity& WithMessageConfig(MessageConfigT&& value) {
101 SetMessageConfig(std::forward<MessageConfigT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetNextActivity() const { return m_nextActivity; }
112 inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
113 template <typename NextActivityT = Aws::String>
114 void SetNextActivity(NextActivityT&& value) {
115 m_nextActivityHasBeenSet = true;
116 m_nextActivity = std::forward<NextActivityT>(value);
117 }
118 template <typename NextActivityT = Aws::String>
119 CustomMessageActivity& WithNextActivity(NextActivityT&& value) {
120 SetNextActivity(std::forward<NextActivityT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetTemplateName() const { return m_templateName; }
131 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
132 template <typename TemplateNameT = Aws::String>
133 void SetTemplateName(TemplateNameT&& value) {
134 m_templateNameHasBeenSet = true;
135 m_templateName = std::forward<TemplateNameT>(value);
136 }
137 template <typename TemplateNameT = Aws::String>
138 CustomMessageActivity& WithTemplateName(TemplateNameT&& value) {
139 SetTemplateName(std::forward<TemplateNameT>(value));
140 return *this;
141 }
143
145
157 inline const Aws::String& GetTemplateVersion() const { return m_templateVersion; }
158 inline bool TemplateVersionHasBeenSet() const { return m_templateVersionHasBeenSet; }
159 template <typename TemplateVersionT = Aws::String>
160 void SetTemplateVersion(TemplateVersionT&& value) {
161 m_templateVersionHasBeenSet = true;
162 m_templateVersion = std::forward<TemplateVersionT>(value);
163 }
164 template <typename TemplateVersionT = Aws::String>
165 CustomMessageActivity& WithTemplateVersion(TemplateVersionT&& value) {
166 SetTemplateVersion(std::forward<TemplateVersionT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_deliveryUri;
172
174
175 JourneyCustomMessage m_messageConfig;
176
177 Aws::String m_nextActivity;
178
179 Aws::String m_templateName;
180
181 Aws::String m_templateVersion;
182 bool m_deliveryUriHasBeenSet = false;
183 bool m_endpointTypesHasBeenSet = false;
184 bool m_messageConfigHasBeenSet = false;
185 bool m_nextActivityHasBeenSet = false;
186 bool m_templateNameHasBeenSet = false;
187 bool m_templateVersionHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace Pinpoint
192} // namespace Aws
const JourneyCustomMessage & GetMessageConfig() const
CustomMessageActivity & AddEndpointTypes(__EndpointTypesElement value)
CustomMessageActivity & WithTemplateVersion(TemplateVersionT &&value)
CustomMessageActivity & WithTemplateName(TemplateNameT &&value)
CustomMessageActivity & WithEndpointTypes(EndpointTypesT &&value)
CustomMessageActivity & WithMessageConfig(MessageConfigT &&value)
const Aws::Vector< __EndpointTypesElement > & GetEndpointTypes() const
CustomMessageActivity & WithNextActivity(NextActivityT &&value)
CustomMessageActivity & WithDeliveryUri(DeliveryUriT &&value)
AWS_PINPOINT_API CustomMessageActivity()=default
AWS_PINPOINT_API CustomMessageActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateVersion(TemplateVersionT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API CustomMessageActivity(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue