AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPercentile(const Aws::String& value) { m_percentileHasBeenSet = true; m_percentile = value; }
49 inline void SetPercentile(Aws::String&& value) { m_percentileHasBeenSet = true; m_percentile = std::move(value); }
50 inline void SetPercentile(const char* value) { m_percentileHasBeenSet = true; m_percentile.assign(value); }
51 inline ModelLatencyThreshold& WithPercentile(const Aws::String& value) { SetPercentile(value); return *this;}
52 inline ModelLatencyThreshold& WithPercentile(Aws::String&& value) { SetPercentile(std::move(value)); return *this;}
53 inline ModelLatencyThreshold& WithPercentile(const char* value) { SetPercentile(value); return *this;}
55
57
60 inline int GetValueInMilliseconds() const{ return m_valueInMilliseconds; }
61 inline bool ValueInMillisecondsHasBeenSet() const { return m_valueInMillisecondsHasBeenSet; }
62 inline void SetValueInMilliseconds(int value) { m_valueInMillisecondsHasBeenSet = true; m_valueInMilliseconds = value; }
63 inline ModelLatencyThreshold& WithValueInMilliseconds(int value) { SetValueInMilliseconds(value); return *this;}
65 private:
66
67 Aws::String m_percentile;
68 bool m_percentileHasBeenSet = false;
69
70 int m_valueInMilliseconds;
71 bool m_valueInMillisecondsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
ModelLatencyThreshold & WithPercentile(const char *value)
ModelLatencyThreshold & WithValueInMilliseconds(int value)
ModelLatencyThreshold & WithPercentile(const Aws::String &value)
AWS_SAGEMAKER_API ModelLatencyThreshold(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ModelLatencyThreshold & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelLatencyThreshold & WithPercentile(Aws::String &&value)
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