AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InferenceMetrics.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
26 public:
27 AWS_SAGEMAKER_API InferenceMetrics() = default;
28 AWS_SAGEMAKER_API InferenceMetrics(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetMaxInvocations() const { return m_maxInvocations; }
37 inline bool MaxInvocationsHasBeenSet() const { return m_maxInvocationsHasBeenSet; }
38 inline void SetMaxInvocations(int value) {
39 m_maxInvocationsHasBeenSet = true;
40 m_maxInvocations = value;
41 }
43 SetMaxInvocations(value);
44 return *this;
45 }
47
49
53 inline int GetModelLatency() const { return m_modelLatency; }
54 inline bool ModelLatencyHasBeenSet() const { return m_modelLatencyHasBeenSet; }
55 inline void SetModelLatency(int value) {
56 m_modelLatencyHasBeenSet = true;
57 m_modelLatency = value;
58 }
60 SetModelLatency(value);
61 return *this;
62 }
64 private:
65 int m_maxInvocations{0};
66
67 int m_modelLatency{0};
68 bool m_maxInvocationsHasBeenSet = false;
69 bool m_modelLatencyHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace SageMaker
74} // namespace Aws
AWS_SAGEMAKER_API InferenceMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceMetrics & WithModelLatency(int value)
AWS_SAGEMAKER_API InferenceMetrics()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API InferenceMetrics(Aws::Utils::Json::JsonView jsonValue)
InferenceMetrics & WithMaxInvocations(int value)
Aws::Utils::Json::JsonValue JsonValue