AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetScalingConfigurationRecommendationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/DynamicScalingConfiguration.h>
10#include <aws/sagemaker/model/ScalingPolicyMetric.h>
11#include <aws/sagemaker/model/ScalingPolicyObjective.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
27 public:
28 AWS_SAGEMAKER_API GetScalingConfigurationRecommendationResult() = default;
32
34
37 inline const Aws::String& GetInferenceRecommendationsJobName() const { return m_inferenceRecommendationsJobName; }
38 template <typename InferenceRecommendationsJobNameT = Aws::String>
39 void SetInferenceRecommendationsJobName(InferenceRecommendationsJobNameT&& value) {
40 m_inferenceRecommendationsJobNameHasBeenSet = true;
41 m_inferenceRecommendationsJobName = std::forward<InferenceRecommendationsJobNameT>(value);
42 }
43 template <typename InferenceRecommendationsJobNameT = Aws::String>
45 SetInferenceRecommendationsJobName(std::forward<InferenceRecommendationsJobNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
55 template <typename RecommendationIdT = Aws::String>
56 void SetRecommendationId(RecommendationIdT&& value) {
57 m_recommendationIdHasBeenSet = true;
58 m_recommendationId = std::forward<RecommendationIdT>(value);
59 }
60 template <typename RecommendationIdT = Aws::String>
62 SetRecommendationId(std::forward<RecommendationIdT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
73 template <typename EndpointNameT = Aws::String>
74 void SetEndpointName(EndpointNameT&& value) {
75 m_endpointNameHasBeenSet = true;
76 m_endpointName = std::forward<EndpointNameT>(value);
77 }
78 template <typename EndpointNameT = Aws::String>
80 SetEndpointName(std::forward<EndpointNameT>(value));
81 return *this;
82 }
84
86
90 inline int GetTargetCpuUtilizationPerCore() const { return m_targetCpuUtilizationPerCore; }
91 inline void SetTargetCpuUtilizationPerCore(int value) {
92 m_targetCpuUtilizationPerCoreHasBeenSet = true;
93 m_targetCpuUtilizationPerCore = value;
94 }
97 return *this;
98 }
100
102
106 inline const ScalingPolicyObjective& GetScalingPolicyObjective() const { return m_scalingPolicyObjective; }
107 template <typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
108 void SetScalingPolicyObjective(ScalingPolicyObjectiveT&& value) {
109 m_scalingPolicyObjectiveHasBeenSet = true;
110 m_scalingPolicyObjective = std::forward<ScalingPolicyObjectiveT>(value);
111 }
112 template <typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
114 SetScalingPolicyObjective(std::forward<ScalingPolicyObjectiveT>(value));
115 return *this;
116 }
118
120
124 inline const ScalingPolicyMetric& GetMetric() const { return m_metric; }
125 template <typename MetricT = ScalingPolicyMetric>
126 void SetMetric(MetricT&& value) {
127 m_metricHasBeenSet = true;
128 m_metric = std::forward<MetricT>(value);
129 }
130 template <typename MetricT = ScalingPolicyMetric>
132 SetMetric(std::forward<MetricT>(value));
133 return *this;
134 }
136
138
142 inline const DynamicScalingConfiguration& GetDynamicScalingConfiguration() const { return m_dynamicScalingConfiguration; }
143 template <typename DynamicScalingConfigurationT = DynamicScalingConfiguration>
144 void SetDynamicScalingConfiguration(DynamicScalingConfigurationT&& value) {
145 m_dynamicScalingConfigurationHasBeenSet = true;
146 m_dynamicScalingConfiguration = std::forward<DynamicScalingConfigurationT>(value);
147 }
148 template <typename DynamicScalingConfigurationT = DynamicScalingConfiguration>
150 SetDynamicScalingConfiguration(std::forward<DynamicScalingConfigurationT>(value));
151 return *this;
152 }
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template <typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) {
160 m_requestIdHasBeenSet = true;
161 m_requestId = std::forward<RequestIdT>(value);
162 }
163 template <typename RequestIdT = Aws::String>
165 SetRequestId(std::forward<RequestIdT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_inferenceRecommendationsJobName;
171
172 Aws::String m_recommendationId;
173
174 Aws::String m_endpointName;
175
176 int m_targetCpuUtilizationPerCore{0};
177
178 ScalingPolicyObjective m_scalingPolicyObjective;
179
180 ScalingPolicyMetric m_metric;
181
182 DynamicScalingConfiguration m_dynamicScalingConfiguration;
183
184 Aws::String m_requestId;
185 bool m_inferenceRecommendationsJobNameHasBeenSet = false;
186 bool m_recommendationIdHasBeenSet = false;
187 bool m_endpointNameHasBeenSet = false;
188 bool m_targetCpuUtilizationPerCoreHasBeenSet = false;
189 bool m_scalingPolicyObjectiveHasBeenSet = false;
190 bool m_metricHasBeenSet = false;
191 bool m_dynamicScalingConfigurationHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace SageMaker
197} // namespace Aws
GetScalingConfigurationRecommendationResult & WithDynamicScalingConfiguration(DynamicScalingConfigurationT &&value)
GetScalingConfigurationRecommendationResult & WithRequestId(RequestIdT &&value)
GetScalingConfigurationRecommendationResult & WithTargetCpuUtilizationPerCore(int value)
AWS_SAGEMAKER_API GetScalingConfigurationRecommendationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScalingConfigurationRecommendationResult & WithEndpointName(EndpointNameT &&value)
AWS_SAGEMAKER_API GetScalingConfigurationRecommendationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScalingConfigurationRecommendationResult & WithInferenceRecommendationsJobName(InferenceRecommendationsJobNameT &&value)
GetScalingConfigurationRecommendationResult & WithScalingPolicyObjective(ScalingPolicyObjectiveT &&value)
GetScalingConfigurationRecommendationResult & WithRecommendationId(RecommendationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue