AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
RecommendationJobStoppingConditions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/FlatInvocations.h>
10#include <aws/sagemaker/model/ModelLatencyThreshold.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API RecommendationJobStoppingConditions() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetMaxInvocations() const { return m_maxInvocations; }
42 inline bool MaxInvocationsHasBeenSet() const { return m_maxInvocationsHasBeenSet; }
43 inline void SetMaxInvocations(int value) {
44 m_maxInvocationsHasBeenSet = true;
45 m_maxInvocations = value;
46 }
48 SetMaxInvocations(value);
49 return *this;
50 }
52
54
60 inline const Aws::Vector<ModelLatencyThreshold>& GetModelLatencyThresholds() const { return m_modelLatencyThresholds; }
61 inline bool ModelLatencyThresholdsHasBeenSet() const { return m_modelLatencyThresholdsHasBeenSet; }
62 template <typename ModelLatencyThresholdsT = Aws::Vector<ModelLatencyThreshold>>
63 void SetModelLatencyThresholds(ModelLatencyThresholdsT&& value) {
64 m_modelLatencyThresholdsHasBeenSet = true;
65 m_modelLatencyThresholds = std::forward<ModelLatencyThresholdsT>(value);
66 }
67 template <typename ModelLatencyThresholdsT = Aws::Vector<ModelLatencyThreshold>>
69 SetModelLatencyThresholds(std::forward<ModelLatencyThresholdsT>(value));
70 return *this;
71 }
72 template <typename ModelLatencyThresholdsT = ModelLatencyThreshold>
74 m_modelLatencyThresholdsHasBeenSet = true;
75 m_modelLatencyThresholds.emplace_back(std::forward<ModelLatencyThresholdsT>(value));
76 return *this;
77 }
79
81
87 inline FlatInvocations GetFlatInvocations() const { return m_flatInvocations; }
88 inline bool FlatInvocationsHasBeenSet() const { return m_flatInvocationsHasBeenSet; }
90 m_flatInvocationsHasBeenSet = true;
91 m_flatInvocations = value;
92 }
94 SetFlatInvocations(value);
95 return *this;
96 }
98 private:
99 int m_maxInvocations{0};
100
101 Aws::Vector<ModelLatencyThreshold> m_modelLatencyThresholds;
102
103 FlatInvocations m_flatInvocations{FlatInvocations::NOT_SET};
104 bool m_maxInvocationsHasBeenSet = false;
105 bool m_modelLatencyThresholdsHasBeenSet = false;
106 bool m_flatInvocationsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace SageMaker
111} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API RecommendationJobStoppingConditions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ModelLatencyThreshold > & GetModelLatencyThresholds() const
AWS_SAGEMAKER_API RecommendationJobStoppingConditions(Aws::Utils::Json::JsonView jsonValue)
RecommendationJobStoppingConditions & AddModelLatencyThresholds(ModelLatencyThresholdsT &&value)
RecommendationJobStoppingConditions & WithFlatInvocations(FlatInvocations value)
RecommendationJobStoppingConditions & WithModelLatencyThresholds(ModelLatencyThresholdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue