AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetScalingConfigurationRecommendationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/DynamicScalingConfiguration.h>
11#include <aws/sagemaker/model/ScalingPolicyMetric.h>
12#include <aws/sagemaker/model/ScalingPolicyObjective.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker {
26namespace Model {
28 public:
29 AWS_SAGEMAKER_API GetScalingConfigurationRecommendationResult() = default;
33
35
38 inline const Aws::String& GetInferenceRecommendationsJobName() const { return m_inferenceRecommendationsJobName; }
39 template <typename InferenceRecommendationsJobNameT = Aws::String>
40 void SetInferenceRecommendationsJobName(InferenceRecommendationsJobNameT&& value) {
41 m_inferenceRecommendationsJobNameHasBeenSet = true;
42 m_inferenceRecommendationsJobName = std::forward<InferenceRecommendationsJobNameT>(value);
43 }
44 template <typename InferenceRecommendationsJobNameT = Aws::String>
46 SetInferenceRecommendationsJobName(std::forward<InferenceRecommendationsJobNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
56 template <typename RecommendationIdT = Aws::String>
57 void SetRecommendationId(RecommendationIdT&& value) {
58 m_recommendationIdHasBeenSet = true;
59 m_recommendationId = std::forward<RecommendationIdT>(value);
60 }
61 template <typename RecommendationIdT = Aws::String>
63 SetRecommendationId(std::forward<RecommendationIdT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
74 template <typename EndpointNameT = Aws::String>
75 void SetEndpointName(EndpointNameT&& value) {
76 m_endpointNameHasBeenSet = true;
77 m_endpointName = std::forward<EndpointNameT>(value);
78 }
79 template <typename EndpointNameT = Aws::String>
81 SetEndpointName(std::forward<EndpointNameT>(value));
82 return *this;
83 }
85
87
91 inline int GetTargetCpuUtilizationPerCore() const { return m_targetCpuUtilizationPerCore; }
92 inline void SetTargetCpuUtilizationPerCore(int value) {
93 m_targetCpuUtilizationPerCoreHasBeenSet = true;
94 m_targetCpuUtilizationPerCore = value;
95 }
98 return *this;
99 }
101
103
107 inline const ScalingPolicyObjective& GetScalingPolicyObjective() const { return m_scalingPolicyObjective; }
108 template <typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
109 void SetScalingPolicyObjective(ScalingPolicyObjectiveT&& value) {
110 m_scalingPolicyObjectiveHasBeenSet = true;
111 m_scalingPolicyObjective = std::forward<ScalingPolicyObjectiveT>(value);
112 }
113 template <typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
115 SetScalingPolicyObjective(std::forward<ScalingPolicyObjectiveT>(value));
116 return *this;
117 }
119
121
125 inline const ScalingPolicyMetric& GetMetric() const { return m_metric; }
126 template <typename MetricT = ScalingPolicyMetric>
127 void SetMetric(MetricT&& value) {
128 m_metricHasBeenSet = true;
129 m_metric = std::forward<MetricT>(value);
130 }
131 template <typename MetricT = ScalingPolicyMetric>
133 SetMetric(std::forward<MetricT>(value));
134 return *this;
135 }
137
139
143 inline const DynamicScalingConfiguration& GetDynamicScalingConfiguration() const { return m_dynamicScalingConfiguration; }
144 template <typename DynamicScalingConfigurationT = DynamicScalingConfiguration>
145 void SetDynamicScalingConfiguration(DynamicScalingConfigurationT&& value) {
146 m_dynamicScalingConfigurationHasBeenSet = true;
147 m_dynamicScalingConfiguration = std::forward<DynamicScalingConfigurationT>(value);
148 }
149 template <typename DynamicScalingConfigurationT = DynamicScalingConfiguration>
151 SetDynamicScalingConfiguration(std::forward<DynamicScalingConfigurationT>(value));
152 return *this;
153 }
155
157
158 inline const Aws::String& GetRequestId() const { return m_requestId; }
159 template <typename RequestIdT = Aws::String>
160 void SetRequestId(RequestIdT&& value) {
161 m_requestIdHasBeenSet = true;
162 m_requestId = std::forward<RequestIdT>(value);
163 }
164 template <typename RequestIdT = Aws::String>
166 SetRequestId(std::forward<RequestIdT>(value));
167 return *this;
168 }
170 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
171
172 private:
173 Aws::String m_inferenceRecommendationsJobName;
174
175 Aws::String m_recommendationId;
176
177 Aws::String m_endpointName;
178
179 int m_targetCpuUtilizationPerCore{0};
180
181 ScalingPolicyObjective m_scalingPolicyObjective;
182
183 ScalingPolicyMetric m_metric;
184
185 DynamicScalingConfiguration m_dynamicScalingConfiguration;
186
187 Aws::String m_requestId;
188 Aws::Http::HttpResponseCode m_HttpResponseCode;
189 bool m_inferenceRecommendationsJobNameHasBeenSet = false;
190 bool m_recommendationIdHasBeenSet = false;
191 bool m_endpointNameHasBeenSet = false;
192 bool m_targetCpuUtilizationPerCoreHasBeenSet = false;
193 bool m_scalingPolicyObjectiveHasBeenSet = false;
194 bool m_metricHasBeenSet = false;
195 bool m_dynamicScalingConfigurationHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace SageMaker
201} // 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