AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateComputeQuotaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ActivationState.h>
12#include <aws/sagemaker/model/ComputeQuotaConfig.h>
13#include <aws/sagemaker/model/ComputeQuotaTarget.h>
14#include <aws/sagemaker/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API CreateComputeQuotaRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateComputeQuota"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
79 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
80 template <typename ClusterArnT = Aws::String>
81 void SetClusterArn(ClusterArnT&& value) {
82 m_clusterArnHasBeenSet = true;
83 m_clusterArn = std::forward<ClusterArnT>(value);
84 }
85 template <typename ClusterArnT = Aws::String>
87 SetClusterArn(std::forward<ClusterArnT>(value));
88 return *this;
89 }
91
93
97 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
98 inline bool ComputeQuotaConfigHasBeenSet() const { return m_computeQuotaConfigHasBeenSet; }
99 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
100 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) {
101 m_computeQuotaConfigHasBeenSet = true;
102 m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value);
103 }
104 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
105 CreateComputeQuotaRequest& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) {
106 SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value));
107 return *this;
108 }
110
112
115 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
116 inline bool ComputeQuotaTargetHasBeenSet() const { return m_computeQuotaTargetHasBeenSet; }
117 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
118 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) {
119 m_computeQuotaTargetHasBeenSet = true;
120 m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value);
121 }
122 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
123 CreateComputeQuotaRequest& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) {
124 SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value));
125 return *this;
126 }
128
130
134 inline ActivationState GetActivationState() const { return m_activationState; }
135 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
137 m_activationStateHasBeenSet = true;
138 m_activationState = value;
139 }
141 SetActivationState(value);
142 return *this;
143 }
145
147
150 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template <typename TagsT = Aws::Vector<Tag>>
153 void SetTags(TagsT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags = std::forward<TagsT>(value);
156 }
157 template <typename TagsT = Aws::Vector<Tag>>
159 SetTags(std::forward<TagsT>(value));
160 return *this;
161 }
162 template <typename TagsT = Tag>
164 m_tagsHasBeenSet = true;
165 m_tags.emplace_back(std::forward<TagsT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_name;
171
172 Aws::String m_description;
173
174 Aws::String m_clusterArn;
175
176 ComputeQuotaConfig m_computeQuotaConfig;
177
178 ComputeQuotaTarget m_computeQuotaTarget;
179
180 ActivationState m_activationState{ActivationState::NOT_SET};
181
182 Aws::Vector<Tag> m_tags;
183 bool m_nameHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_clusterArnHasBeenSet = false;
186 bool m_computeQuotaConfigHasBeenSet = false;
187 bool m_computeQuotaTargetHasBeenSet = false;
188 bool m_activationStateHasBeenSet = false;
189 bool m_tagsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace SageMaker
194} // namespace Aws
CreateComputeQuotaRequest & WithComputeQuotaTarget(ComputeQuotaTargetT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateComputeQuotaRequest & WithClusterArn(ClusterArnT &&value)
AWS_SAGEMAKER_API CreateComputeQuotaRequest()=default
CreateComputeQuotaRequest & WithDescription(DescriptionT &&value)
CreateComputeQuotaRequest & WithActivationState(ActivationState value)
virtual const char * GetServiceRequestName() const override
CreateComputeQuotaRequest & WithTags(TagsT &&value)
CreateComputeQuotaRequest & AddTags(TagsT &&value)
CreateComputeQuotaRequest & WithComputeQuotaConfig(ComputeQuotaConfigT &&value)
CreateComputeQuotaRequest & WithName(NameT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector