AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventParameters.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PERSONALIZE_API EventParameters() = default;
36 AWS_PERSONALIZE_API EventParameters(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PERSONALIZE_API EventParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetEventType() const { return m_eventType; }
46 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
47 template<typename EventTypeT = Aws::String>
48 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
49 template<typename EventTypeT = Aws::String>
50 EventParameters& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
52
54
58 inline double GetEventValueThreshold() const { return m_eventValueThreshold; }
59 inline bool EventValueThresholdHasBeenSet() const { return m_eventValueThresholdHasBeenSet; }
60 inline void SetEventValueThreshold(double value) { m_eventValueThresholdHasBeenSet = true; m_eventValueThreshold = value; }
61 inline EventParameters& WithEventValueThreshold(double value) { SetEventValueThreshold(value); return *this;}
63
65
69 inline double GetWeight() const { return m_weight; }
70 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
71 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
72 inline EventParameters& WithWeight(double value) { SetWeight(value); return *this;}
74 private:
75
76 Aws::String m_eventType;
77 bool m_eventTypeHasBeenSet = false;
78
79 double m_eventValueThreshold{0.0};
80 bool m_eventValueThresholdHasBeenSet = false;
81
82 double m_weight{0.0};
83 bool m_weightHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Personalize
88} // 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