AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ModelLatencyThreshold.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
28 public:
29 AWS_SAGEMAKER_API ModelLatencyThreshold() = default;
32 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::String& GetPercentile() const { return m_percentile; }
41 inline bool PercentileHasBeenSet() const { return m_percentileHasBeenSet; }
42 template <typename PercentileT = Aws::String>
43 void SetPercentile(PercentileT&& value) {
44 m_percentileHasBeenSet = true;
45 m_percentile = std::forward<PercentileT>(value);
46 }
47 template <typename PercentileT = Aws::String>
48 ModelLatencyThreshold& WithPercentile(PercentileT&& value) {
49 SetPercentile(std::forward<PercentileT>(value));
50 return *this;
51 }
53
55
58 inline int GetValueInMilliseconds() const { return m_valueInMilliseconds; }
59 inline bool ValueInMillisecondsHasBeenSet() const { return m_valueInMillisecondsHasBeenSet; }
60 inline void SetValueInMilliseconds(int value) {
61 m_valueInMillisecondsHasBeenSet = true;
62 m_valueInMilliseconds = value;
63 }
66 return *this;
67 }
69 private:
70 Aws::String m_percentile;
71
72 int m_valueInMilliseconds{0};
73 bool m_percentileHasBeenSet = false;
74 bool m_valueInMillisecondsHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SageMaker
79} // 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