AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModelScores.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/frauddetector/model/ModelVersion.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FraudDetector
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_FRAUDDETECTOR_API ModelScores();
37 AWS_FRAUDDETECTOR_API ModelScores(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FRAUDDETECTOR_API ModelScores& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ModelVersion& GetModelVersion() const{ return m_modelVersion; }
47 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
48 inline void SetModelVersion(const ModelVersion& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
49 inline void SetModelVersion(ModelVersion&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
50 inline ModelScores& WithModelVersion(const ModelVersion& value) { SetModelVersion(value); return *this;}
51 inline ModelScores& WithModelVersion(ModelVersion&& value) { SetModelVersion(std::move(value)); return *this;}
53
55
58 inline const Aws::Map<Aws::String, double>& GetScores() const{ return m_scores; }
59 inline bool ScoresHasBeenSet() const { return m_scoresHasBeenSet; }
60 inline void SetScores(const Aws::Map<Aws::String, double>& value) { m_scoresHasBeenSet = true; m_scores = value; }
61 inline void SetScores(Aws::Map<Aws::String, double>&& value) { m_scoresHasBeenSet = true; m_scores = std::move(value); }
62 inline ModelScores& WithScores(const Aws::Map<Aws::String, double>& value) { SetScores(value); return *this;}
63 inline ModelScores& WithScores(Aws::Map<Aws::String, double>&& value) { SetScores(std::move(value)); return *this;}
64 inline ModelScores& AddScores(const Aws::String& key, double value) { m_scoresHasBeenSet = true; m_scores.emplace(key, value); return *this; }
65 inline ModelScores& AddScores(Aws::String&& key, double value) { m_scoresHasBeenSet = true; m_scores.emplace(std::move(key), value); return *this; }
66 inline ModelScores& AddScores(const char* key, double value) { m_scoresHasBeenSet = true; m_scores.emplace(key, value); return *this; }
68 private:
69
70 ModelVersion m_modelVersion;
71 bool m_modelVersionHasBeenSet = false;
72
74 bool m_scoresHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace FraudDetector
79} // namespace Aws
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModelVersion(const ModelVersion &value)
Definition ModelScores.h:48
void SetScores(const Aws::Map< Aws::String, double > &value)
Definition ModelScores.h:60
const Aws::Map< Aws::String, double > & GetScores() const
Definition ModelScores.h:58
void SetScores(Aws::Map< Aws::String, double > &&value)
Definition ModelScores.h:61
ModelScores & WithModelVersion(const ModelVersion &value)
Definition ModelScores.h:50
ModelScores & AddScores(const Aws::String &key, double value)
Definition ModelScores.h:64
void SetModelVersion(ModelVersion &&value)
Definition ModelScores.h:49
AWS_FRAUDDETECTOR_API ModelScores(Aws::Utils::Json::JsonView jsonValue)
ModelScores & WithScores(Aws::Map< Aws::String, double > &&value)
Definition ModelScores.h:63
ModelScores & WithScores(const Aws::Map< Aws::String, double > &value)
Definition ModelScores.h:62
AWS_FRAUDDETECTOR_API ModelScores & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelScores & AddScores(const char *key, double value)
Definition ModelScores.h:66
const ModelVersion & GetModelVersion() const
Definition ModelScores.h:46
AWS_FRAUDDETECTOR_API ModelScores()
ModelScores & WithModelVersion(ModelVersion &&value)
Definition ModelScores.h:51
ModelScores & AddScores(Aws::String &&key, double value)
Definition ModelScores.h:65
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue