AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationMetrics.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_SAGEMAKER_API RecommendationMetrics();
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
42 inline double GetCostPerHour() const{ return m_costPerHour; }
43 inline bool CostPerHourHasBeenSet() const { return m_costPerHourHasBeenSet; }
44 inline void SetCostPerHour(double value) { m_costPerHourHasBeenSet = true; m_costPerHour = value; }
45 inline RecommendationMetrics& WithCostPerHour(double value) { SetCostPerHour(value); return *this;}
47
49
52 inline double GetCostPerInference() const{ return m_costPerInference; }
53 inline bool CostPerInferenceHasBeenSet() const { return m_costPerInferenceHasBeenSet; }
54 inline void SetCostPerInference(double value) { m_costPerInferenceHasBeenSet = true; m_costPerInference = value; }
55 inline RecommendationMetrics& WithCostPerInference(double value) { SetCostPerInference(value); return *this;}
57
59
62 inline int GetMaxInvocations() const{ return m_maxInvocations; }
63 inline bool MaxInvocationsHasBeenSet() const { return m_maxInvocationsHasBeenSet; }
64 inline void SetMaxInvocations(int value) { m_maxInvocationsHasBeenSet = true; m_maxInvocations = value; }
65 inline RecommendationMetrics& WithMaxInvocations(int value) { SetMaxInvocations(value); return *this;}
67
69
73 inline int GetModelLatency() const{ return m_modelLatency; }
74 inline bool ModelLatencyHasBeenSet() const { return m_modelLatencyHasBeenSet; }
75 inline void SetModelLatency(int value) { m_modelLatencyHasBeenSet = true; m_modelLatency = value; }
76 inline RecommendationMetrics& WithModelLatency(int value) { SetModelLatency(value); return *this;}
78
80
85 inline double GetCpuUtilization() const{ return m_cpuUtilization; }
86 inline bool CpuUtilizationHasBeenSet() const { return m_cpuUtilizationHasBeenSet; }
87 inline void SetCpuUtilization(double value) { m_cpuUtilizationHasBeenSet = true; m_cpuUtilization = value; }
88 inline RecommendationMetrics& WithCpuUtilization(double value) { SetCpuUtilization(value); return *this;}
90
92
97 inline double GetMemoryUtilization() const{ return m_memoryUtilization; }
98 inline bool MemoryUtilizationHasBeenSet() const { return m_memoryUtilizationHasBeenSet; }
99 inline void SetMemoryUtilization(double value) { m_memoryUtilizationHasBeenSet = true; m_memoryUtilization = value; }
100 inline RecommendationMetrics& WithMemoryUtilization(double value) { SetMemoryUtilization(value); return *this;}
102
104
110 inline int GetModelSetupTime() const{ return m_modelSetupTime; }
111 inline bool ModelSetupTimeHasBeenSet() const { return m_modelSetupTimeHasBeenSet; }
112 inline void SetModelSetupTime(int value) { m_modelSetupTimeHasBeenSet = true; m_modelSetupTime = value; }
113 inline RecommendationMetrics& WithModelSetupTime(int value) { SetModelSetupTime(value); return *this;}
115 private:
116
117 double m_costPerHour;
118 bool m_costPerHourHasBeenSet = false;
119
120 double m_costPerInference;
121 bool m_costPerInferenceHasBeenSet = false;
122
123 int m_maxInvocations;
124 bool m_maxInvocationsHasBeenSet = false;
125
126 int m_modelLatency;
127 bool m_modelLatencyHasBeenSet = false;
128
129 double m_cpuUtilization;
130 bool m_cpuUtilizationHasBeenSet = false;
131
132 double m_memoryUtilization;
133 bool m_memoryUtilizationHasBeenSet = false;
134
135 int m_modelSetupTime;
136 bool m_modelSetupTimeHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SageMaker
141} // 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)
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