AWS SDK for C++  1.9.108
AWS SDK for C++
GetSolutionMetricsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Personalize
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
40 
44  inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArn = value; }
45 
49  inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArn = std::move(value); }
50 
54  inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArn.assign(value); }
55 
59  inline GetSolutionMetricsResult& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;}
60 
64  inline GetSolutionMetricsResult& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
65 
69  inline GetSolutionMetricsResult& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
70 
71 
75  inline const Aws::Map<Aws::String, double>& GetMetrics() const{ return m_metrics; }
76 
80  inline void SetMetrics(const Aws::Map<Aws::String, double>& value) { m_metrics = value; }
81 
85  inline void SetMetrics(Aws::Map<Aws::String, double>&& value) { m_metrics = std::move(value); }
86 
90  inline GetSolutionMetricsResult& WithMetrics(const Aws::Map<Aws::String, double>& value) { SetMetrics(value); return *this;}
91 
95  inline GetSolutionMetricsResult& WithMetrics(Aws::Map<Aws::String, double>&& value) { SetMetrics(std::move(value)); return *this;}
96 
100  inline GetSolutionMetricsResult& AddMetrics(const Aws::String& key, double value) { m_metrics.emplace(key, value); return *this; }
101 
105  inline GetSolutionMetricsResult& AddMetrics(Aws::String&& key, double value) { m_metrics.emplace(std::move(key), value); return *this; }
106 
110  inline GetSolutionMetricsResult& AddMetrics(const char* key, double value) { m_metrics.emplace(key, value); return *this; }
111 
112  private:
113 
114  Aws::String m_solutionVersionArn;
115 
117  };
118 
119 } // namespace Model
120 } // namespace Personalize
121 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Personalize::Model::GetSolutionMetricsResult::WithMetrics
GetSolutionMetricsResult & WithMetrics(Aws::Map< Aws::String, double > &&value)
Definition: GetSolutionMetricsResult.h:95
Aws::Personalize::Model::GetSolutionMetricsResult::GetSolutionMetricsResult
GetSolutionMetricsResult()
Aws::Personalize::Model::GetSolutionMetricsResult::AddMetrics
GetSolutionMetricsResult & AddMetrics(const Aws::String &key, double value)
Definition: GetSolutionMetricsResult.h:100
Aws::Personalize::Model::GetSolutionMetricsResult::WithSolutionVersionArn
GetSolutionMetricsResult & WithSolutionVersionArn(Aws::String &&value)
Definition: GetSolutionMetricsResult.h:64
Aws::Personalize::Model::GetSolutionMetricsResult::SetSolutionVersionArn
void SetSolutionVersionArn(const Aws::String &value)
Definition: GetSolutionMetricsResult.h:44
Aws::Personalize::Model::GetSolutionMetricsResult::AddMetrics
GetSolutionMetricsResult & AddMetrics(const char *key, double value)
Definition: GetSolutionMetricsResult.h:110
Aws::Personalize::Model::GetSolutionMetricsResult::GetMetrics
const Aws::Map< Aws::String, double > & GetMetrics() const
Definition: GetSolutionMetricsResult.h:75
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::GetSolutionMetricsResult::SetSolutionVersionArn
void SetSolutionVersionArn(Aws::String &&value)
Definition: GetSolutionMetricsResult.h:49
Aws::Personalize::Model::GetSolutionMetricsResult::WithSolutionVersionArn
GetSolutionMetricsResult & WithSolutionVersionArn(const char *value)
Definition: GetSolutionMetricsResult.h:69
Aws::Personalize::Model::GetSolutionMetricsResult::WithSolutionVersionArn
GetSolutionMetricsResult & WithSolutionVersionArn(const Aws::String &value)
Definition: GetSolutionMetricsResult.h:59
Aws::Personalize::Model::GetSolutionMetricsResult::operator=
GetSolutionMetricsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Personalize::Model::GetSolutionMetricsResult::SetSolutionVersionArn
void SetSolutionVersionArn(const char *value)
Definition: GetSolutionMetricsResult.h:54
AWSString.h
Aws::Personalize::Model::GetSolutionMetricsResult::AddMetrics
GetSolutionMetricsResult & AddMetrics(Aws::String &&key, double value)
Definition: GetSolutionMetricsResult.h:105
Aws::Personalize::Model::GetSolutionMetricsResult::SetMetrics
void SetMetrics(const Aws::Map< Aws::String, double > &value)
Definition: GetSolutionMetricsResult.h:80
Aws::Personalize::Model::GetSolutionMetricsResult::GetSolutionVersionArn
const Aws::String & GetSolutionVersionArn() const
Definition: GetSolutionMetricsResult.h:39
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::GetSolutionMetricsResult::SetMetrics
void SetMetrics(Aws::Map< Aws::String, double > &&value)
Definition: GetSolutionMetricsResult.h:85
Aws::Personalize::Model::GetSolutionMetricsResult::WithMetrics
GetSolutionMetricsResult & WithMetrics(const Aws::Map< Aws::String, double > &value)
Definition: GetSolutionMetricsResult.h:90
Aws::Personalize::Model::GetSolutionMetricsResult
Definition: GetSolutionMetricsResult.h:29
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Personalize_EXPORTS.h
Aws::Personalize::Model::GetSolutionMetricsResult::GetSolutionMetricsResult
GetSolutionMetricsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19