AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingPolicyMetric.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 ScalingPolicyMetric();
33 AWS_SAGEMAKER_API ScalingPolicyMetric(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
46 inline int GetInvocationsPerInstance() const{ return m_invocationsPerInstance; }
47 inline bool InvocationsPerInstanceHasBeenSet() const { return m_invocationsPerInstanceHasBeenSet; }
48 inline void SetInvocationsPerInstance(int value) { m_invocationsPerInstanceHasBeenSet = true; m_invocationsPerInstance = value; }
51
53
59 inline int GetModelLatency() const{ return m_modelLatency; }
60 inline bool ModelLatencyHasBeenSet() const { return m_modelLatencyHasBeenSet; }
61 inline void SetModelLatency(int value) { m_modelLatencyHasBeenSet = true; m_modelLatency = value; }
62 inline ScalingPolicyMetric& WithModelLatency(int value) { SetModelLatency(value); return *this;}
64 private:
65
66 int m_invocationsPerInstance;
67 bool m_invocationsPerInstanceHasBeenSet = false;
68
69 int m_modelLatency;
70 bool m_modelLatencyHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SageMaker
75} // 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 & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingPolicyMetric & WithInvocationsPerInstance(int value)
Aws::Utils::Json::JsonValue JsonValue