AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
CampaignHook.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/Mode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30 public:
31 AWS_PINPOINT_API CampaignHook() = default;
32 AWS_PINPOINT_API CampaignHook(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetLambdaFunctionName() const { return m_lambdaFunctionName; }
42 inline bool LambdaFunctionNameHasBeenSet() const { return m_lambdaFunctionNameHasBeenSet; }
43 template <typename LambdaFunctionNameT = Aws::String>
44 void SetLambdaFunctionName(LambdaFunctionNameT&& value) {
45 m_lambdaFunctionNameHasBeenSet = true;
46 m_lambdaFunctionName = std::forward<LambdaFunctionNameT>(value);
47 }
48 template <typename LambdaFunctionNameT = Aws::String>
49 CampaignHook& WithLambdaFunctionName(LambdaFunctionNameT&& value) {
50 SetLambdaFunctionName(std::forward<LambdaFunctionNameT>(value));
51 return *this;
52 }
54
56
65 inline Mode GetMode() const { return m_mode; }
66 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
67 inline void SetMode(Mode value) {
68 m_modeHasBeenSet = true;
69 m_mode = value;
70 }
71 inline CampaignHook& WithMode(Mode value) {
72 SetMode(value);
73 return *this;
74 }
76
78
82 inline const Aws::String& GetWebUrl() const { return m_webUrl; }
83 inline bool WebUrlHasBeenSet() const { return m_webUrlHasBeenSet; }
84 template <typename WebUrlT = Aws::String>
85 void SetWebUrl(WebUrlT&& value) {
86 m_webUrlHasBeenSet = true;
87 m_webUrl = std::forward<WebUrlT>(value);
88 }
89 template <typename WebUrlT = Aws::String>
90 CampaignHook& WithWebUrl(WebUrlT&& value) {
91 SetWebUrl(std::forward<WebUrlT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_lambdaFunctionName;
97 bool m_lambdaFunctionNameHasBeenSet = false;
98
99 Mode m_mode{Mode::NOT_SET};
100 bool m_modeHasBeenSet = false;
101
102 Aws::String m_webUrl;
103 bool m_webUrlHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Pinpoint
108} // namespace Aws
AWS_PINPOINT_API CampaignHook()=default
CampaignHook & WithMode(Mode value)
const Aws::String & GetWebUrl() const
void SetWebUrl(WebUrlT &&value)
CampaignHook & WithWebUrl(WebUrlT &&value)
AWS_PINPOINT_API CampaignHook & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
CampaignHook & WithLambdaFunctionName(LambdaFunctionNameT &&value)
void SetLambdaFunctionName(LambdaFunctionNameT &&value)
AWS_PINPOINT_API CampaignHook(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLambdaFunctionName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue