AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetSolutionMetricsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Personalize {
24namespace Model {
26 public:
27 AWS_PERSONALIZE_API GetSolutionMetricsResult() = default;
30
32
35 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
36 template <typename SolutionVersionArnT = Aws::String>
37 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
38 m_solutionVersionArnHasBeenSet = true;
39 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
40 }
41 template <typename SolutionVersionArnT = Aws::String>
42 GetSolutionMetricsResult& WithSolutionVersionArn(SolutionVersionArnT&& value) {
43 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
44 return *this;
45 }
47
49
54 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
55 template <typename MetricsT = Aws::Map<Aws::String, double>>
56 void SetMetrics(MetricsT&& value) {
57 m_metricsHasBeenSet = true;
58 m_metrics = std::forward<MetricsT>(value);
59 }
60 template <typename MetricsT = Aws::Map<Aws::String, double>>
62 SetMetrics(std::forward<MetricsT>(value));
63 return *this;
64 }
65 inline GetSolutionMetricsResult& AddMetrics(Aws::String key, double value) {
66 m_metricsHasBeenSet = true;
67 m_metrics.emplace(key, value);
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 Aws::String m_solutionVersionArn;
90
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_solutionVersionArnHasBeenSet = false;
96 bool m_metricsHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Personalize
102} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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