AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
RecommendationMetrics.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMaker {
17namespace Model {
18
25 public:
26 AWS_SAGEMAKER_API RecommendationMetrics() = default;
29 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline double GetCostPerHour() const { return m_costPerHour; }
36 inline bool CostPerHourHasBeenSet() const { return m_costPerHourHasBeenSet; }
37 inline void SetCostPerHour(double value) {
38 m_costPerHourHasBeenSet = true;
39 m_costPerHour = value;
40 }
41 inline RecommendationMetrics& WithCostPerHour(double value) {
42 SetCostPerHour(value);
43 return *this;
44 }
46
48
51 inline double GetCostPerInference() const { return m_costPerInference; }
52 inline bool CostPerInferenceHasBeenSet() const { return m_costPerInferenceHasBeenSet; }
53 inline void SetCostPerInference(double value) {
54 m_costPerInferenceHasBeenSet = true;
55 m_costPerInference = value;
56 }
59 return *this;
60 }
62
64
67 inline int GetMaxInvocations() const { return m_maxInvocations; }
68 inline bool MaxInvocationsHasBeenSet() const { return m_maxInvocationsHasBeenSet; }
69 inline void SetMaxInvocations(int value) {
70 m_maxInvocationsHasBeenSet = true;
71 m_maxInvocations = value;
72 }
74 SetMaxInvocations(value);
75 return *this;
76 }
78
80
84 inline int GetModelLatency() const { return m_modelLatency; }
85 inline bool ModelLatencyHasBeenSet() const { return m_modelLatencyHasBeenSet; }
86 inline void SetModelLatency(int value) {
87 m_modelLatencyHasBeenSet = true;
88 m_modelLatency = value;
89 }
91 SetModelLatency(value);
92 return *this;
93 }
95
97
102 inline double GetCpuUtilization() const { return m_cpuUtilization; }
103 inline bool CpuUtilizationHasBeenSet() const { return m_cpuUtilizationHasBeenSet; }
104 inline void SetCpuUtilization(double value) {
105 m_cpuUtilizationHasBeenSet = true;
106 m_cpuUtilization = value;
107 }
109 SetCpuUtilization(value);
110 return *this;
111 }
113
115
120 inline double GetMemoryUtilization() const { return m_memoryUtilization; }
121 inline bool MemoryUtilizationHasBeenSet() const { return m_memoryUtilizationHasBeenSet; }
122 inline void SetMemoryUtilization(double value) {
123 m_memoryUtilizationHasBeenSet = true;
124 m_memoryUtilization = value;
125 }
128 return *this;
129 }
131
133
139 inline int GetModelSetupTime() const { return m_modelSetupTime; }
140 inline bool ModelSetupTimeHasBeenSet() const { return m_modelSetupTimeHasBeenSet; }
141 inline void SetModelSetupTime(int value) {
142 m_modelSetupTimeHasBeenSet = true;
143 m_modelSetupTime = value;
144 }
146 SetModelSetupTime(value);
147 return *this;
148 }
150 private:
151 double m_costPerHour{0.0};
152
153 double m_costPerInference{0.0};
154
155 int m_maxInvocations{0};
156
157 int m_modelLatency{0};
158
159 double m_cpuUtilization{0.0};
160
161 double m_memoryUtilization{0.0};
162
163 int m_modelSetupTime{0};
164 bool m_costPerHourHasBeenSet = false;
165 bool m_costPerInferenceHasBeenSet = false;
166 bool m_maxInvocationsHasBeenSet = false;
167 bool m_modelLatencyHasBeenSet = false;
168 bool m_cpuUtilizationHasBeenSet = false;
169 bool m_memoryUtilizationHasBeenSet = false;
170 bool m_modelSetupTimeHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace SageMaker
175} // namespace Aws
RecommendationMetrics & WithModelSetupTime(int value)
AWS_SAGEMAKER_API RecommendationMetrics(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationMetrics & WithCpuUtilization(double value)
RecommendationMetrics & WithMaxInvocations(int value)
AWS_SAGEMAKER_API RecommendationMetrics()=default
RecommendationMetrics & WithMemoryUtilization(double value)
RecommendationMetrics & WithCostPerHour(double value)
AWS_SAGEMAKER_API RecommendationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationMetrics & WithCostPerInference(double value)
RecommendationMetrics & WithModelLatency(int value)
Aws::Utils::Json::JsonValue JsonValue