AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RecommendationJobStoppingConditions.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/FlatInvocations.h>
10#include <aws/sagemaker/model/ModelLatencyThreshold.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API RecommendationJobStoppingConditions() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetMaxInvocations() const { return m_maxInvocations; }
48 inline bool MaxInvocationsHasBeenSet() const { return m_maxInvocationsHasBeenSet; }
49 inline void SetMaxInvocations(int value) { m_maxInvocationsHasBeenSet = true; m_maxInvocations = value; }
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) { m_modelLatencyThresholdsHasBeenSet = true; m_modelLatencyThresholds = std::forward<ModelLatencyThresholdsT>(value); }
64 template<typename ModelLatencyThresholdsT = Aws::Vector<ModelLatencyThreshold>>
65 RecommendationJobStoppingConditions& WithModelLatencyThresholds(ModelLatencyThresholdsT&& value) { SetModelLatencyThresholds(std::forward<ModelLatencyThresholdsT>(value)); return *this;}
66 template<typename ModelLatencyThresholdsT = ModelLatencyThreshold>
67 RecommendationJobStoppingConditions& AddModelLatencyThresholds(ModelLatencyThresholdsT&& value) { m_modelLatencyThresholdsHasBeenSet = true; m_modelLatencyThresholds.emplace_back(std::forward<ModelLatencyThresholdsT>(value)); return *this; }
69
71
77 inline FlatInvocations GetFlatInvocations() const { return m_flatInvocations; }
78 inline bool FlatInvocationsHasBeenSet() const { return m_flatInvocationsHasBeenSet; }
79 inline void SetFlatInvocations(FlatInvocations value) { m_flatInvocationsHasBeenSet = true; m_flatInvocations = value; }
82 private:
83
84 int m_maxInvocations{0};
85 bool m_maxInvocationsHasBeenSet = false;
86
87 Aws::Vector<ModelLatencyThreshold> m_modelLatencyThresholds;
88 bool m_modelLatencyThresholdsHasBeenSet = false;
89
91 bool m_flatInvocationsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SageMaker
96} // 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