AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InAppMessageButton.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/OverrideButtonConfiguration.h>
9#include <aws/pinpoint/model/DefaultButtonConfiguration.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
33 {
34 public:
35 AWS_PINPOINT_API InAppMessageButton();
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const OverrideButtonConfiguration& GetAndroid() const{ return m_android; }
46 inline bool AndroidHasBeenSet() const { return m_androidHasBeenSet; }
47 inline void SetAndroid(const OverrideButtonConfiguration& value) { m_androidHasBeenSet = true; m_android = value; }
48 inline void SetAndroid(OverrideButtonConfiguration&& value) { m_androidHasBeenSet = true; m_android = std::move(value); }
49 inline InAppMessageButton& WithAndroid(const OverrideButtonConfiguration& value) { SetAndroid(value); return *this;}
50 inline InAppMessageButton& WithAndroid(OverrideButtonConfiguration&& value) { SetAndroid(std::move(value)); return *this;}
52
54
57 inline const DefaultButtonConfiguration& GetDefaultConfig() const{ return m_defaultConfig; }
58 inline bool DefaultConfigHasBeenSet() const { return m_defaultConfigHasBeenSet; }
59 inline void SetDefaultConfig(const DefaultButtonConfiguration& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = value; }
60 inline void SetDefaultConfig(DefaultButtonConfiguration&& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = std::move(value); }
62 inline InAppMessageButton& WithDefaultConfig(DefaultButtonConfiguration&& value) { SetDefaultConfig(std::move(value)); return *this;}
64
66
69 inline const OverrideButtonConfiguration& GetIOS() const{ return m_iOS; }
70 inline bool IOSHasBeenSet() const { return m_iOSHasBeenSet; }
71 inline void SetIOS(const OverrideButtonConfiguration& value) { m_iOSHasBeenSet = true; m_iOS = value; }
72 inline void SetIOS(OverrideButtonConfiguration&& value) { m_iOSHasBeenSet = true; m_iOS = std::move(value); }
73 inline InAppMessageButton& WithIOS(const OverrideButtonConfiguration& value) { SetIOS(value); return *this;}
74 inline InAppMessageButton& WithIOS(OverrideButtonConfiguration&& value) { SetIOS(std::move(value)); return *this;}
76
78
81 inline const OverrideButtonConfiguration& GetWeb() const{ return m_web; }
82 inline bool WebHasBeenSet() const { return m_webHasBeenSet; }
83 inline void SetWeb(const OverrideButtonConfiguration& value) { m_webHasBeenSet = true; m_web = value; }
84 inline void SetWeb(OverrideButtonConfiguration&& value) { m_webHasBeenSet = true; m_web = std::move(value); }
85 inline InAppMessageButton& WithWeb(const OverrideButtonConfiguration& value) { SetWeb(value); return *this;}
86 inline InAppMessageButton& WithWeb(OverrideButtonConfiguration&& value) { SetWeb(std::move(value)); return *this;}
88 private:
89
91 bool m_androidHasBeenSet = false;
92
93 DefaultButtonConfiguration m_defaultConfig;
94 bool m_defaultConfigHasBeenSet = false;
95
97 bool m_iOSHasBeenSet = false;
98
100 bool m_webHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Pinpoint
105} // namespace Aws
void SetWeb(OverrideButtonConfiguration &&value)
InAppMessageButton & WithDefaultConfig(DefaultButtonConfiguration &&value)
const OverrideButtonConfiguration & GetIOS() const
void SetDefaultConfig(DefaultButtonConfiguration &&value)
AWS_PINPOINT_API InAppMessageButton & operator=(Aws::Utils::Json::JsonView jsonValue)
InAppMessageButton & WithDefaultConfig(const DefaultButtonConfiguration &value)
void SetIOS(OverrideButtonConfiguration &&value)
InAppMessageButton & WithAndroid(const OverrideButtonConfiguration &value)
const OverrideButtonConfiguration & GetWeb() const
void SetAndroid(const OverrideButtonConfiguration &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppMessageButton & WithWeb(OverrideButtonConfiguration &&value)
void SetIOS(const OverrideButtonConfiguration &value)
const DefaultButtonConfiguration & GetDefaultConfig() const
InAppMessageButton & WithIOS(const OverrideButtonConfiguration &value)
void SetDefaultConfig(const DefaultButtonConfiguration &value)
const OverrideButtonConfiguration & GetAndroid() const
InAppMessageButton & WithAndroid(OverrideButtonConfiguration &&value)
void SetWeb(const OverrideButtonConfiguration &value)
AWS_PINPOINT_API InAppMessageButton(Aws::Utils::Json::JsonView jsonValue)
InAppMessageButton & WithWeb(const OverrideButtonConfiguration &value)
InAppMessageButton & WithIOS(OverrideButtonConfiguration &&value)
void SetAndroid(OverrideButtonConfiguration &&value)
Aws::Utils::Json::JsonValue JsonValue