AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ModelLatencyThreshold.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SAGEMAKER_API ModelLatencyThreshold() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
46 inline const Aws::String& GetPercentile() const { return m_percentile; }
47 inline bool PercentileHasBeenSet() const { return m_percentileHasBeenSet; }
48 template<typename PercentileT = Aws::String>
49 void SetPercentile(PercentileT&& value) { m_percentileHasBeenSet = true; m_percentile = std::forward<PercentileT>(value); }
50 template<typename PercentileT = Aws::String>
51 ModelLatencyThreshold& WithPercentile(PercentileT&& value) { SetPercentile(std::forward<PercentileT>(value)); return *this;}
53
55
58 inline int GetValueInMilliseconds() const { return m_valueInMilliseconds; }
59 inline bool ValueInMillisecondsHasBeenSet() const { return m_valueInMillisecondsHasBeenSet; }
60 inline void SetValueInMilliseconds(int value) { m_valueInMillisecondsHasBeenSet = true; m_valueInMilliseconds = value; }
61 inline ModelLatencyThreshold& WithValueInMilliseconds(int value) { SetValueInMilliseconds(value); return *this;}
63 private:
64
65 Aws::String m_percentile;
66 bool m_percentileHasBeenSet = false;
67
68 int m_valueInMilliseconds{0};
69 bool m_valueInMillisecondsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace SageMaker
74} // namespace Aws
AWS_SAGEMAKER_API ModelLatencyThreshold()=default
ModelLatencyThreshold & WithPercentile(PercentileT &&value)
ModelLatencyThreshold & WithValueInMilliseconds(int value)
AWS_SAGEMAKER_API ModelLatencyThreshold(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ModelLatencyThreshold & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue