AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetScalingConfigurationRecommendationResult.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ScalingPolicyObjective.h>
10#include <aws/sagemaker/model/ScalingPolicyMetric.h>
11#include <aws/sagemaker/model/DynamicScalingConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
31 {
32 public:
33 AWS_SAGEMAKER_API GetScalingConfigurationRecommendationResult() = default;
36
37
39
42 inline const Aws::String& GetInferenceRecommendationsJobName() const { return m_inferenceRecommendationsJobName; }
43 template<typename InferenceRecommendationsJobNameT = Aws::String>
44 void SetInferenceRecommendationsJobName(InferenceRecommendationsJobNameT&& value) { m_inferenceRecommendationsJobNameHasBeenSet = true; m_inferenceRecommendationsJobName = std::forward<InferenceRecommendationsJobNameT>(value); }
45 template<typename InferenceRecommendationsJobNameT = Aws::String>
46 GetScalingConfigurationRecommendationResult& WithInferenceRecommendationsJobName(InferenceRecommendationsJobNameT&& value) { SetInferenceRecommendationsJobName(std::forward<InferenceRecommendationsJobNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
54 template<typename RecommendationIdT = Aws::String>
55 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
56 template<typename RecommendationIdT = Aws::String>
57 GetScalingConfigurationRecommendationResult& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
59
61
65 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
66 template<typename EndpointNameT = Aws::String>
67 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
68 template<typename EndpointNameT = Aws::String>
69 GetScalingConfigurationRecommendationResult& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
71
73
77 inline int GetTargetCpuUtilizationPerCore() const { return m_targetCpuUtilizationPerCore; }
78 inline void SetTargetCpuUtilizationPerCore(int value) { m_targetCpuUtilizationPerCoreHasBeenSet = true; m_targetCpuUtilizationPerCore = value; }
81
83
87 inline const ScalingPolicyObjective& GetScalingPolicyObjective() const { return m_scalingPolicyObjective; }
88 template<typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
89 void SetScalingPolicyObjective(ScalingPolicyObjectiveT&& value) { m_scalingPolicyObjectiveHasBeenSet = true; m_scalingPolicyObjective = std::forward<ScalingPolicyObjectiveT>(value); }
90 template<typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
91 GetScalingConfigurationRecommendationResult& WithScalingPolicyObjective(ScalingPolicyObjectiveT&& value) { SetScalingPolicyObjective(std::forward<ScalingPolicyObjectiveT>(value)); return *this;}
93
95
99 inline const ScalingPolicyMetric& GetMetric() const { return m_metric; }
100 template<typename MetricT = ScalingPolicyMetric>
101 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
102 template<typename MetricT = ScalingPolicyMetric>
103 GetScalingConfigurationRecommendationResult& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
105
107
111 inline const DynamicScalingConfiguration& GetDynamicScalingConfiguration() const { return m_dynamicScalingConfiguration; }
112 template<typename DynamicScalingConfigurationT = DynamicScalingConfiguration>
113 void SetDynamicScalingConfiguration(DynamicScalingConfigurationT&& value) { m_dynamicScalingConfigurationHasBeenSet = true; m_dynamicScalingConfiguration = std::forward<DynamicScalingConfigurationT>(value); }
114 template<typename DynamicScalingConfigurationT = DynamicScalingConfiguration>
115 GetScalingConfigurationRecommendationResult& WithDynamicScalingConfiguration(DynamicScalingConfigurationT&& value) { SetDynamicScalingConfiguration(std::forward<DynamicScalingConfigurationT>(value)); return *this;}
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template<typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
123 template<typename RequestIdT = Aws::String>
124 GetScalingConfigurationRecommendationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
126 private:
127
128 Aws::String m_inferenceRecommendationsJobName;
129 bool m_inferenceRecommendationsJobNameHasBeenSet = false;
130
131 Aws::String m_recommendationId;
132 bool m_recommendationIdHasBeenSet = false;
133
134 Aws::String m_endpointName;
135 bool m_endpointNameHasBeenSet = false;
136
137 int m_targetCpuUtilizationPerCore{0};
138 bool m_targetCpuUtilizationPerCoreHasBeenSet = false;
139
140 ScalingPolicyObjective m_scalingPolicyObjective;
141 bool m_scalingPolicyObjectiveHasBeenSet = false;
142
143 ScalingPolicyMetric m_metric;
144 bool m_metricHasBeenSet = false;
145
146 DynamicScalingConfiguration m_dynamicScalingConfiguration;
147 bool m_dynamicScalingConfigurationHasBeenSet = false;
148
149 Aws::String m_requestId;
150 bool m_requestIdHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SageMaker
155} // 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