AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
FeatureScores.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMonetization {
21namespace Model {
22
30 public:
31 AWS_APPMONETIZATION_API FeatureScores() = default;
32 AWS_APPMONETIZATION_API FeatureScores(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API FeatureScores& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Map<Aws::String, double>& GetAppScores() const { return m_appScores; }
42 inline bool AppScoresHasBeenSet() const { return m_appScoresHasBeenSet; }
43 template <typename AppScoresT = Aws::Map<Aws::String, double>>
44 void SetAppScores(AppScoresT&& value) {
45 m_appScoresHasBeenSet = true;
46 m_appScores = std::forward<AppScoresT>(value);
47 }
48 template <typename AppScoresT = Aws::Map<Aws::String, double>>
49 FeatureScores& WithAppScores(AppScoresT&& value) {
50 SetAppScores(std::forward<AppScoresT>(value));
51 return *this;
52 }
53 inline FeatureScores& AddAppScores(Aws::String key, double value) {
54 m_appScoresHasBeenSet = true;
55 m_appScores.emplace(key, value);
56 return *this;
57 }
59
61
66 inline const Aws::Map<Aws::String, double>& GetWeights() const { return m_weights; }
67 inline bool WeightsHasBeenSet() const { return m_weightsHasBeenSet; }
68 template <typename WeightsT = Aws::Map<Aws::String, double>>
69 void SetWeights(WeightsT&& value) {
70 m_weightsHasBeenSet = true;
71 m_weights = std::forward<WeightsT>(value);
72 }
73 template <typename WeightsT = Aws::Map<Aws::String, double>>
74 FeatureScores& WithWeights(WeightsT&& value) {
75 SetWeights(std::forward<WeightsT>(value));
76 return *this;
77 }
78 inline FeatureScores& AddWeights(Aws::String key, double value) {
79 m_weightsHasBeenSet = true;
80 m_weights.emplace(key, value);
81 return *this;
82 }
84 private:
86
88 bool m_appScoresHasBeenSet = false;
89 bool m_weightsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace AppMonetization
94} // namespace Aws
const Aws::Map< Aws::String, double > & GetWeights() const
AWS_APPMONETIZATION_API FeatureScores(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API FeatureScores & operator=(Aws::Utils::Json::JsonView jsonValue)
FeatureScores & AddWeights(Aws::String key, double value)
FeatureScores & WithAppScores(AppScoresT &&value)
const Aws::Map< Aws::String, double > & GetAppScores() const
AWS_APPMONETIZATION_API FeatureScores()=default
FeatureScores & WithWeights(WeightsT &&value)
FeatureScores & AddAppScores(Aws::String key, double value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
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