AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PushMessageActivity.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/JourneyPushMessage.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PINPOINT_API PushMessageActivity();
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const JourneyPushMessage& GetMessageConfig() const{ return m_messageConfig; }
49 inline bool MessageConfigHasBeenSet() const { return m_messageConfigHasBeenSet; }
50 inline void SetMessageConfig(const JourneyPushMessage& value) { m_messageConfigHasBeenSet = true; m_messageConfig = value; }
51 inline void SetMessageConfig(JourneyPushMessage&& value) { m_messageConfigHasBeenSet = true; m_messageConfig = std::move(value); }
52 inline PushMessageActivity& WithMessageConfig(const JourneyPushMessage& value) { SetMessageConfig(value); return *this;}
53 inline PushMessageActivity& WithMessageConfig(JourneyPushMessage&& value) { SetMessageConfig(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetNextActivity() const{ return m_nextActivity; }
62 inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
63 inline void SetNextActivity(const Aws::String& value) { m_nextActivityHasBeenSet = true; m_nextActivity = value; }
64 inline void SetNextActivity(Aws::String&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::move(value); }
65 inline void SetNextActivity(const char* value) { m_nextActivityHasBeenSet = true; m_nextActivity.assign(value); }
66 inline PushMessageActivity& WithNextActivity(const Aws::String& value) { SetNextActivity(value); return *this;}
67 inline PushMessageActivity& WithNextActivity(Aws::String&& value) { SetNextActivity(std::move(value)); return *this;}
68 inline PushMessageActivity& WithNextActivity(const char* value) { SetNextActivity(value); return *this;}
70
72
76 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
77 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
78 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
79 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
80 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
81 inline PushMessageActivity& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
82 inline PushMessageActivity& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
83 inline PushMessageActivity& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
85
87
99 inline const Aws::String& GetTemplateVersion() const{ return m_templateVersion; }
100 inline bool TemplateVersionHasBeenSet() const { return m_templateVersionHasBeenSet; }
101 inline void SetTemplateVersion(const Aws::String& value) { m_templateVersionHasBeenSet = true; m_templateVersion = value; }
102 inline void SetTemplateVersion(Aws::String&& value) { m_templateVersionHasBeenSet = true; m_templateVersion = std::move(value); }
103 inline void SetTemplateVersion(const char* value) { m_templateVersionHasBeenSet = true; m_templateVersion.assign(value); }
104 inline PushMessageActivity& WithTemplateVersion(const Aws::String& value) { SetTemplateVersion(value); return *this;}
105 inline PushMessageActivity& WithTemplateVersion(Aws::String&& value) { SetTemplateVersion(std::move(value)); return *this;}
106 inline PushMessageActivity& WithTemplateVersion(const char* value) { SetTemplateVersion(value); return *this;}
108 private:
109
110 JourneyPushMessage m_messageConfig;
111 bool m_messageConfigHasBeenSet = false;
112
113 Aws::String m_nextActivity;
114 bool m_nextActivityHasBeenSet = false;
115
116 Aws::String m_templateName;
117 bool m_templateNameHasBeenSet = false;
118
119 Aws::String m_templateVersion;
120 bool m_templateVersionHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Pinpoint
125} // namespace Aws
PushMessageActivity & WithTemplateName(const Aws::String &value)
PushMessageActivity & WithTemplateName(Aws::String &&value)
void SetTemplateVersion(const Aws::String &value)
PushMessageActivity & WithMessageConfig(JourneyPushMessage &&value)
PushMessageActivity & WithTemplateVersion(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
PushMessageActivity & WithTemplateVersion(const char *value)
void SetNextActivity(const Aws::String &value)
PushMessageActivity & WithNextActivity(const char *value)
PushMessageActivity & WithTemplateName(const char *value)
PushMessageActivity & WithTemplateVersion(Aws::String &&value)
AWS_PINPOINT_API PushMessageActivity(Aws::Utils::Json::JsonView jsonValue)
PushMessageActivity & WithMessageConfig(const JourneyPushMessage &value)
void SetTemplateName(const Aws::String &value)
PushMessageActivity & WithNextActivity(const Aws::String &value)
const Aws::String & GetTemplateVersion() const
void SetMessageConfig(JourneyPushMessage &&value)
void SetMessageConfig(const JourneyPushMessage &value)
PushMessageActivity & WithNextActivity(Aws::String &&value)
const JourneyPushMessage & GetMessageConfig() const
AWS_PINPOINT_API PushMessageActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue