AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EventParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize/Personalize_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Personalize {
20namespace Model {
21
29 public:
30 AWS_PERSONALIZE_API EventParameters() = default;
31 AWS_PERSONALIZE_API EventParameters(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PERSONALIZE_API EventParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetEventType() const { return m_eventType; }
40 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
41 template <typename EventTypeT = Aws::String>
42 void SetEventType(EventTypeT&& value) {
43 m_eventTypeHasBeenSet = true;
44 m_eventType = std::forward<EventTypeT>(value);
45 }
46 template <typename EventTypeT = Aws::String>
47 EventParameters& WithEventType(EventTypeT&& value) {
48 SetEventType(std::forward<EventTypeT>(value));
49 return *this;
50 }
52
54
58 inline double GetEventValueThreshold() const { return m_eventValueThreshold; }
59 inline bool EventValueThresholdHasBeenSet() const { return m_eventValueThresholdHasBeenSet; }
60 inline void SetEventValueThreshold(double value) {
61 m_eventValueThresholdHasBeenSet = true;
62 m_eventValueThreshold = value;
63 }
66 return *this;
67 }
69
71
75 inline double GetWeight() const { return m_weight; }
76 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
77 inline void SetWeight(double value) {
78 m_weightHasBeenSet = true;
79 m_weight = value;
80 }
81 inline EventParameters& WithWeight(double value) {
82 SetWeight(value);
83 return *this;
84 }
86 private:
87 Aws::String m_eventType;
88
89 double m_eventValueThreshold{0.0};
90
91 double m_weight{0.0};
92 bool m_eventTypeHasBeenSet = false;
93 bool m_eventValueThresholdHasBeenSet = false;
94 bool m_weightHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Personalize
99} // namespace Aws
AWS_PERSONALIZE_API EventParameters(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
EventParameters & WithEventValueThreshold(double value)
EventParameters & WithEventType(EventTypeT &&value)
AWS_PERSONALIZE_API EventParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
EventParameters & WithWeight(double value)
AWS_PERSONALIZE_API EventParameters()=default
const Aws::String & GetEventType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue