AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetScalingConfigurationRecommendationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ScalingPolicyObjective.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMaker {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKER_API GetScalingConfigurationRecommendationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetScalingConfigurationRecommendation"; }
29
30 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetInferenceRecommendationsJobName() const { return m_inferenceRecommendationsJobName; }
39 inline bool InferenceRecommendationsJobNameHasBeenSet() const { return m_inferenceRecommendationsJobNameHasBeenSet; }
40 template <typename InferenceRecommendationsJobNameT = Aws::String>
41 void SetInferenceRecommendationsJobName(InferenceRecommendationsJobNameT&& value) {
42 m_inferenceRecommendationsJobNameHasBeenSet = true;
43 m_inferenceRecommendationsJobName = std::forward<InferenceRecommendationsJobNameT>(value);
44 }
45 template <typename InferenceRecommendationsJobNameT = Aws::String>
47 SetInferenceRecommendationsJobName(std::forward<InferenceRecommendationsJobNameT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
60 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
61 template <typename RecommendationIdT = Aws::String>
62 void SetRecommendationId(RecommendationIdT&& value) {
63 m_recommendationIdHasBeenSet = true;
64 m_recommendationId = std::forward<RecommendationIdT>(value);
65 }
66 template <typename RecommendationIdT = Aws::String>
68 SetRecommendationId(std::forward<RecommendationIdT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
82 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
83 template <typename EndpointNameT = Aws::String>
84 void SetEndpointName(EndpointNameT&& value) {
85 m_endpointNameHasBeenSet = true;
86 m_endpointName = std::forward<EndpointNameT>(value);
87 }
88 template <typename EndpointNameT = Aws::String>
90 SetEndpointName(std::forward<EndpointNameT>(value));
91 return *this;
92 }
94
96
100 inline int GetTargetCpuUtilizationPerCore() const { return m_targetCpuUtilizationPerCore; }
101 inline bool TargetCpuUtilizationPerCoreHasBeenSet() const { return m_targetCpuUtilizationPerCoreHasBeenSet; }
102 inline void SetTargetCpuUtilizationPerCore(int value) {
103 m_targetCpuUtilizationPerCoreHasBeenSet = true;
104 m_targetCpuUtilizationPerCore = value;
105 }
108 return *this;
109 }
111
113
117 inline const ScalingPolicyObjective& GetScalingPolicyObjective() const { return m_scalingPolicyObjective; }
118 inline bool ScalingPolicyObjectiveHasBeenSet() const { return m_scalingPolicyObjectiveHasBeenSet; }
119 template <typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
120 void SetScalingPolicyObjective(ScalingPolicyObjectiveT&& value) {
121 m_scalingPolicyObjectiveHasBeenSet = true;
122 m_scalingPolicyObjective = std::forward<ScalingPolicyObjectiveT>(value);
123 }
124 template <typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
126 SetScalingPolicyObjective(std::forward<ScalingPolicyObjectiveT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_inferenceRecommendationsJobName;
132
133 Aws::String m_recommendationId;
134
135 Aws::String m_endpointName;
136
137 int m_targetCpuUtilizationPerCore{0};
138
139 ScalingPolicyObjective m_scalingPolicyObjective;
140 bool m_inferenceRecommendationsJobNameHasBeenSet = false;
141 bool m_recommendationIdHasBeenSet = false;
142 bool m_endpointNameHasBeenSet = false;
143 bool m_targetCpuUtilizationPerCoreHasBeenSet = false;
144 bool m_scalingPolicyObjectiveHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace SageMaker
149} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetScalingConfigurationRecommendationRequest & WithInferenceRecommendationsJobName(InferenceRecommendationsJobNameT &&value)
GetScalingConfigurationRecommendationRequest & WithTargetCpuUtilizationPerCore(int value)
GetScalingConfigurationRecommendationRequest & WithRecommendationId(RecommendationIdT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
GetScalingConfigurationRecommendationRequest & WithScalingPolicyObjective(ScalingPolicyObjectiveT &&value)
GetScalingConfigurationRecommendationRequest & WithEndpointName(EndpointNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String