AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetScalingConfigurationRecommendationRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/ScalingPolicyObjective.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SageMaker
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SAGEMAKER_API GetScalingConfigurationRecommendationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetScalingConfigurationRecommendation"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetInferenceRecommendationsJobName() const { return m_inferenceRecommendationsJobName; }
43 inline bool InferenceRecommendationsJobNameHasBeenSet() const { return m_inferenceRecommendationsJobNameHasBeenSet; }
44 template<typename InferenceRecommendationsJobNameT = Aws::String>
45 void SetInferenceRecommendationsJobName(InferenceRecommendationsJobNameT&& value) { m_inferenceRecommendationsJobNameHasBeenSet = true; m_inferenceRecommendationsJobName = std::forward<InferenceRecommendationsJobNameT>(value); }
46 template<typename InferenceRecommendationsJobNameT = Aws::String>
47 GetScalingConfigurationRecommendationRequest& WithInferenceRecommendationsJobName(InferenceRecommendationsJobNameT&& value) { SetInferenceRecommendationsJobName(std::forward<InferenceRecommendationsJobNameT>(value)); return *this;}
49
51
57 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
58 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
59 template<typename RecommendationIdT = Aws::String>
60 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
61 template<typename RecommendationIdT = Aws::String>
62 GetScalingConfigurationRecommendationRequest& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
64
66
73 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
74 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
75 template<typename EndpointNameT = Aws::String>
76 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
77 template<typename EndpointNameT = Aws::String>
78 GetScalingConfigurationRecommendationRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
80
82
86 inline int GetTargetCpuUtilizationPerCore() const { return m_targetCpuUtilizationPerCore; }
87 inline bool TargetCpuUtilizationPerCoreHasBeenSet() const { return m_targetCpuUtilizationPerCoreHasBeenSet; }
88 inline void SetTargetCpuUtilizationPerCore(int value) { m_targetCpuUtilizationPerCoreHasBeenSet = true; m_targetCpuUtilizationPerCore = value; }
91
93
97 inline const ScalingPolicyObjective& GetScalingPolicyObjective() const { return m_scalingPolicyObjective; }
98 inline bool ScalingPolicyObjectiveHasBeenSet() const { return m_scalingPolicyObjectiveHasBeenSet; }
99 template<typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
100 void SetScalingPolicyObjective(ScalingPolicyObjectiveT&& value) { m_scalingPolicyObjectiveHasBeenSet = true; m_scalingPolicyObjective = std::forward<ScalingPolicyObjectiveT>(value); }
101 template<typename ScalingPolicyObjectiveT = ScalingPolicyObjective>
102 GetScalingConfigurationRecommendationRequest& WithScalingPolicyObjective(ScalingPolicyObjectiveT&& value) { SetScalingPolicyObjective(std::forward<ScalingPolicyObjectiveT>(value)); return *this;}
104 private:
105
106 Aws::String m_inferenceRecommendationsJobName;
107 bool m_inferenceRecommendationsJobNameHasBeenSet = false;
108
109 Aws::String m_recommendationId;
110 bool m_recommendationIdHasBeenSet = false;
111
112 Aws::String m_endpointName;
113 bool m_endpointNameHasBeenSet = false;
114
115 int m_targetCpuUtilizationPerCore{0};
116 bool m_targetCpuUtilizationPerCoreHasBeenSet = false;
117
118 ScalingPolicyObjective m_scalingPolicyObjective;
119 bool m_scalingPolicyObjectiveHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SageMaker
124} // 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