AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PredictedAction.h
1
6#pragma once
7#include <aws/personalize-runtime/PersonalizeRuntime_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 PersonalizeRuntime
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PERSONALIZERUNTIME_API PredictedAction();
36 AWS_PERSONALIZERUNTIME_API PredictedAction(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PERSONALIZERUNTIME_API PredictedAction& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZERUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetActionId() const{ return m_actionId; }
46 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
47 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
48 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
49 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
50 inline PredictedAction& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
51 inline PredictedAction& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
52 inline PredictedAction& WithActionId(const char* value) { SetActionId(value); return *this;}
54
56
62 inline double GetScore() const{ return m_score; }
63 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
64 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
65 inline PredictedAction& WithScore(double value) { SetScore(value); return *this;}
67 private:
68
69 Aws::String m_actionId;
70 bool m_actionIdHasBeenSet = false;
71
72 double m_score;
73 bool m_scoreHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace PersonalizeRuntime
78} // namespace Aws
AWS_PERSONALIZERUNTIME_API PredictedAction(Aws::Utils::Json::JsonView jsonValue)
PredictedAction & WithActionId(Aws::String &&value)
AWS_PERSONALIZERUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
PredictedAction & WithActionId(const char *value)
PredictedAction & WithActionId(const Aws::String &value)
AWS_PERSONALIZERUNTIME_API PredictedAction()
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