AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PredictedAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PersonalizeRuntime {
20namespace Model {
21
29 public:
30 AWS_PERSONALIZERUNTIME_API PredictedAction() = default;
31 AWS_PERSONALIZERUNTIME_API PredictedAction(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PERSONALIZERUNTIME_API PredictedAction& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PERSONALIZERUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetActionId() const { return m_actionId; }
40 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
41 template <typename ActionIdT = Aws::String>
42 void SetActionId(ActionIdT&& value) {
43 m_actionIdHasBeenSet = true;
44 m_actionId = std::forward<ActionIdT>(value);
45 }
46 template <typename ActionIdT = Aws::String>
47 PredictedAction& WithActionId(ActionIdT&& value) {
48 SetActionId(std::forward<ActionIdT>(value));
49 return *this;
50 }
52
54
60 inline double GetScore() const { return m_score; }
61 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
62 inline void SetScore(double value) {
63 m_scoreHasBeenSet = true;
64 m_score = value;
65 }
66 inline PredictedAction& WithScore(double value) {
67 SetScore(value);
68 return *this;
69 }
71 private:
72 Aws::String m_actionId;
73
74 double m_score{0.0};
75 bool m_actionIdHasBeenSet = false;
76 bool m_scoreHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace PersonalizeRuntime
81} // namespace Aws
AWS_PERSONALIZERUNTIME_API PredictedAction(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZERUNTIME_API PredictedAction()=default
AWS_PERSONALIZERUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
PredictedAction & WithActionId(ActionIdT &&value)
AWS_PERSONALIZERUNTIME_API PredictedAction & operator=(Aws::Utils::Json::JsonView jsonValue)
PredictedAction & WithScore(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue