AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EndpointPerformance.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/EndpointInfo.h>
9#include <aws/sagemaker/model/InferenceMetrics.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API EndpointPerformance() = default;
32 AWS_SAGEMAKER_API EndpointPerformance(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const InferenceMetrics& GetMetrics() const { return m_metrics; }
41 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
42 template <typename MetricsT = InferenceMetrics>
43 void SetMetrics(MetricsT&& value) {
44 m_metricsHasBeenSet = true;
45 m_metrics = std::forward<MetricsT>(value);
46 }
47 template <typename MetricsT = InferenceMetrics>
48 EndpointPerformance& WithMetrics(MetricsT&& value) {
49 SetMetrics(std::forward<MetricsT>(value));
50 return *this;
51 }
53
55
56 inline const EndpointInfo& GetEndpointInfo() const { return m_endpointInfo; }
57 inline bool EndpointInfoHasBeenSet() const { return m_endpointInfoHasBeenSet; }
58 template <typename EndpointInfoT = EndpointInfo>
59 void SetEndpointInfo(EndpointInfoT&& value) {
60 m_endpointInfoHasBeenSet = true;
61 m_endpointInfo = std::forward<EndpointInfoT>(value);
62 }
63 template <typename EndpointInfoT = EndpointInfo>
64 EndpointPerformance& WithEndpointInfo(EndpointInfoT&& value) {
65 SetEndpointInfo(std::forward<EndpointInfoT>(value));
66 return *this;
67 }
69 private:
70 InferenceMetrics m_metrics;
71
72 EndpointInfo m_endpointInfo;
73 bool m_metricsHasBeenSet = false;
74 bool m_endpointInfoHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SageMaker
79} // namespace Aws
EndpointPerformance & WithMetrics(MetricsT &&value)
EndpointPerformance & WithEndpointInfo(EndpointInfoT &&value)
AWS_SAGEMAKER_API EndpointPerformance()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API EndpointPerformance & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API EndpointPerformance(Aws::Utils::Json::JsonView jsonValue)
const InferenceMetrics & GetMetrics() const
Aws::Utils::Json::JsonValue JsonValue