AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateComputeQuotaRequest.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/ActivationState.h>
11#include <aws/sagemaker/model/ComputeQuotaConfig.h>
12#include <aws/sagemaker/model/ComputeQuotaTarget.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API UpdateComputeQuotaRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateComputeQuota"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetComputeQuotaId() const { return m_computeQuotaId; }
41 inline bool ComputeQuotaIdHasBeenSet() const { return m_computeQuotaIdHasBeenSet; }
42 template <typename ComputeQuotaIdT = Aws::String>
43 void SetComputeQuotaId(ComputeQuotaIdT&& value) {
44 m_computeQuotaIdHasBeenSet = true;
45 m_computeQuotaId = std::forward<ComputeQuotaIdT>(value);
46 }
47 template <typename ComputeQuotaIdT = Aws::String>
49 SetComputeQuotaId(std::forward<ComputeQuotaIdT>(value));
50 return *this;
51 }
53
55
58 inline int GetTargetVersion() const { return m_targetVersion; }
59 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
60 inline void SetTargetVersion(int value) {
61 m_targetVersionHasBeenSet = true;
62 m_targetVersion = value;
63 }
65 SetTargetVersion(value);
66 return *this;
67 }
69
71
75 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
76 inline bool ComputeQuotaConfigHasBeenSet() const { return m_computeQuotaConfigHasBeenSet; }
77 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
78 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) {
79 m_computeQuotaConfigHasBeenSet = true;
80 m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value);
81 }
82 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
83 UpdateComputeQuotaRequest& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) {
84 SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value));
85 return *this;
86 }
88
90
93 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
94 inline bool ComputeQuotaTargetHasBeenSet() const { return m_computeQuotaTargetHasBeenSet; }
95 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
96 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) {
97 m_computeQuotaTargetHasBeenSet = true;
98 m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value);
99 }
100 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
101 UpdateComputeQuotaRequest& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) {
102 SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value));
103 return *this;
104 }
106
108
112 inline ActivationState GetActivationState() const { return m_activationState; }
113 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
115 m_activationStateHasBeenSet = true;
116 m_activationState = value;
117 }
119 SetActivationState(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetDescription() const { return m_description; }
129 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 template <typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) {
132 m_descriptionHasBeenSet = true;
133 m_description = std::forward<DescriptionT>(value);
134 }
135 template <typename DescriptionT = Aws::String>
137 SetDescription(std::forward<DescriptionT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_computeQuotaId;
143
144 int m_targetVersion{0};
145
146 ComputeQuotaConfig m_computeQuotaConfig;
147
148 ComputeQuotaTarget m_computeQuotaTarget;
149
150 ActivationState m_activationState{ActivationState::NOT_SET};
151
152 Aws::String m_description;
153 bool m_computeQuotaIdHasBeenSet = false;
154 bool m_targetVersionHasBeenSet = false;
155 bool m_computeQuotaConfigHasBeenSet = false;
156 bool m_computeQuotaTargetHasBeenSet = false;
157 bool m_activationStateHasBeenSet = false;
158 bool m_descriptionHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace SageMaker
163} // namespace Aws
AWS_SAGEMAKER_API UpdateComputeQuotaRequest()=default
UpdateComputeQuotaRequest & WithDescription(DescriptionT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateComputeQuotaRequest & WithComputeQuotaTarget(ComputeQuotaTargetT &&value)
virtual const char * GetServiceRequestName() const override
UpdateComputeQuotaRequest & WithComputeQuotaId(ComputeQuotaIdT &&value)
UpdateComputeQuotaRequest & WithActivationState(ActivationState value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateComputeQuotaRequest & WithComputeQuotaConfig(ComputeQuotaConfigT &&value)
UpdateComputeQuotaRequest & WithTargetVersion(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String