AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
GetSolutionMetricsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Personalize {
23namespace Model {
25 public:
26 AWS_PERSONALIZE_API GetSolutionMetricsResult() = default;
29
31
34 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
35 template <typename SolutionVersionArnT = Aws::String>
36 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
37 m_solutionVersionArnHasBeenSet = true;
38 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
39 }
40 template <typename SolutionVersionArnT = Aws::String>
41 GetSolutionMetricsResult& WithSolutionVersionArn(SolutionVersionArnT&& value) {
42 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
43 return *this;
44 }
46
48
53 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
54 template <typename MetricsT = Aws::Map<Aws::String, double>>
55 void SetMetrics(MetricsT&& value) {
56 m_metricsHasBeenSet = true;
57 m_metrics = std::forward<MetricsT>(value);
58 }
59 template <typename MetricsT = Aws::Map<Aws::String, double>>
61 SetMetrics(std::forward<MetricsT>(value));
62 return *this;
63 }
64 inline GetSolutionMetricsResult& AddMetrics(Aws::String key, double value) {
65 m_metricsHasBeenSet = true;
66 m_metrics.emplace(key, value);
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_solutionVersionArn;
87
89
90 Aws::String m_requestId;
91 bool m_solutionVersionArnHasBeenSet = false;
92 bool m_metricsHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Personalize
98} // namespace Aws
const Aws::Map< Aws::String, double > & GetMetrics() const
AWS_PERSONALIZE_API GetSolutionMetricsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PERSONALIZE_API GetSolutionMetricsResult()=default
GetSolutionMetricsResult & WithMetrics(MetricsT &&value)
GetSolutionMetricsResult & AddMetrics(Aws::String key, double value)
GetSolutionMetricsResult & WithRequestId(RequestIdT &&value)
GetSolutionMetricsResult & WithSolutionVersionArn(SolutionVersionArnT &&value)
AWS_PERSONALIZE_API GetSolutionMetricsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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