AWS SDK for C++  1.9.20
AWS SDK for C++
ModelScores.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace FraudDetector
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const ModelVersion& GetModelVersion() const{ return m_modelVersion; }
46 
50  inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
51 
55  inline void SetModelVersion(const ModelVersion& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
56 
60  inline void SetModelVersion(ModelVersion&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
61 
65  inline ModelScores& WithModelVersion(const ModelVersion& value) { SetModelVersion(value); return *this;}
66 
70  inline ModelScores& WithModelVersion(ModelVersion&& value) { SetModelVersion(std::move(value)); return *this;}
71 
72 
76  inline const Aws::Map<Aws::String, double>& GetScores() const{ return m_scores; }
77 
81  inline bool ScoresHasBeenSet() const { return m_scoresHasBeenSet; }
82 
86  inline void SetScores(const Aws::Map<Aws::String, double>& value) { m_scoresHasBeenSet = true; m_scores = value; }
87 
91  inline void SetScores(Aws::Map<Aws::String, double>&& value) { m_scoresHasBeenSet = true; m_scores = std::move(value); }
92 
96  inline ModelScores& WithScores(const Aws::Map<Aws::String, double>& value) { SetScores(value); return *this;}
97 
101  inline ModelScores& WithScores(Aws::Map<Aws::String, double>&& value) { SetScores(std::move(value)); return *this;}
102 
106  inline ModelScores& AddScores(const Aws::String& key, double value) { m_scoresHasBeenSet = true; m_scores.emplace(key, value); return *this; }
107 
111  inline ModelScores& AddScores(Aws::String&& key, double value) { m_scoresHasBeenSet = true; m_scores.emplace(std::move(key), value); return *this; }
112 
116  inline ModelScores& AddScores(const char* key, double value) { m_scoresHasBeenSet = true; m_scores.emplace(key, value); return *this; }
117 
118  private:
119 
120  ModelVersion m_modelVersion;
121  bool m_modelVersionHasBeenSet;
122 
124  bool m_scoresHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace FraudDetector
129 } // namespace Aws
Aws::FraudDetector::Model::ModelScores::ModelScores
ModelScores(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::ModelScores
Definition: ModelScores.h:34
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::ModelScores::AddScores
ModelScores & AddScores(const char *key, double value)
Definition: ModelScores.h:116
ModelVersion.h
Aws::FraudDetector::Model::ModelScores::operator=
ModelScores & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::ModelScores::SetModelVersion
void SetModelVersion(ModelVersion &&value)
Definition: ModelScores.h:60
Aws::FraudDetector::Model::ModelScores::AddScores
ModelScores & AddScores(Aws::String &&key, double value)
Definition: ModelScores.h:111
Aws::FraudDetector::Model::ModelScores::ModelScores
ModelScores()
Aws::FraudDetector::Model::ModelScores::WithScores
ModelScores & WithScores(Aws::Map< Aws::String, double > &&value)
Definition: ModelScores.h:101
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::ModelScores::WithModelVersion
ModelScores & WithModelVersion(ModelVersion &&value)
Definition: ModelScores.h:70
Aws::FraudDetector::Model::ModelScores::ModelVersionHasBeenSet
bool ModelVersionHasBeenSet() const
Definition: ModelScores.h:50
Aws::FraudDetector::Model::ModelScores::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::FraudDetector::Model::ModelScores::AddScores
ModelScores & AddScores(const Aws::String &key, double value)
Definition: ModelScores.h:106
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::FraudDetector::Model::ModelScores::ScoresHasBeenSet
bool ScoresHasBeenSet() const
Definition: ModelScores.h:81
Aws::FraudDetector::Model::ModelScores::SetScores
void SetScores(Aws::Map< Aws::String, double > &&value)
Definition: ModelScores.h:91
Aws::FraudDetector::Model::ModelScores::GetScores
const Aws::Map< Aws::String, double > & GetScores() const
Definition: ModelScores.h:76
Aws::FraudDetector::Model::ModelScores::WithModelVersion
ModelScores & WithModelVersion(const ModelVersion &value)
Definition: ModelScores.h:65
Aws::FraudDetector::Model::ModelScores::SetScores
void SetScores(const Aws::Map< Aws::String, double > &value)
Definition: ModelScores.h:86
Aws::FraudDetector::Model::ModelScores::GetModelVersion
const ModelVersion & GetModelVersion() const
Definition: ModelScores.h:45
Aws::FraudDetector::Model::ModelScores::SetModelVersion
void SetModelVersion(const ModelVersion &value)
Definition: ModelScores.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::ModelVersion
Definition: ModelVersion.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::FraudDetector::Model::ModelScores::WithScores
ModelScores & WithScores(const Aws::Map< Aws::String, double > &value)
Definition: ModelScores.h:96