AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ScalingPolicyMetric.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 ScalingPolicyMetric() = default;
27 AWS_SAGEMAKER_API ScalingPolicyMetric(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
39 inline int GetInvocationsPerInstance() const { return m_invocationsPerInstance; }
40 inline bool InvocationsPerInstanceHasBeenSet() const { return m_invocationsPerInstanceHasBeenSet; }
41 inline void SetInvocationsPerInstance(int value) {
42 m_invocationsPerInstanceHasBeenSet = true;
43 m_invocationsPerInstance = value;
44 }
47 return *this;
48 }
50
52
58 inline int GetModelLatency() const { return m_modelLatency; }
59 inline bool ModelLatencyHasBeenSet() const { return m_modelLatencyHasBeenSet; }
60 inline void SetModelLatency(int value) {
61 m_modelLatencyHasBeenSet = true;
62 m_modelLatency = value;
63 }
65 SetModelLatency(value);
66 return *this;
67 }
69 private:
70 int m_invocationsPerInstance{0};
71
72 int m_modelLatency{0};
73 bool m_invocationsPerInstanceHasBeenSet = false;
74 bool m_modelLatencyHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SageMaker
79} // namespace Aws
AWS_SAGEMAKER_API ScalingPolicyMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingPolicyMetric & WithModelLatency(int value)
AWS_SAGEMAKER_API ScalingPolicyMetric()=default
AWS_SAGEMAKER_API ScalingPolicyMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingPolicyMetric & WithInvocationsPerInstance(int value)
Aws::Utils::Json::JsonValue JsonValue