AWS SDK for C++

AWS SDK for C++ Version 1.11.909

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
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
81 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
82 template <typename ClusterArnT = Aws::String>
83 void SetClusterArn(ClusterArnT&& value) {
84 m_clusterArnHasBeenSet = true;
85 m_clusterArn = std::forward<ClusterArnT>(value);
86 }
87 template <typename ClusterArnT = Aws::String>
89 SetClusterArn(std::forward<ClusterArnT>(value));
90 return *this;
91 }
93
95
99 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
100 inline bool ComputeQuotaConfigHasBeenSet() const { return m_computeQuotaConfigHasBeenSet; }
101 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
102 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) {
103 m_computeQuotaConfigHasBeenSet = true;
104 m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value);
105 }
106 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
107 CreateComputeQuotaRequest& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) {
108 SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value));
109 return *this;
110 }
112
114
117 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
118 inline bool ComputeQuotaTargetHasBeenSet() const { return m_computeQuotaTargetHasBeenSet; }
119 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
120 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) {
121 m_computeQuotaTargetHasBeenSet = true;
122 m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value);
123 }
124 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
125 CreateComputeQuotaRequest& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) {
126 SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value));
127 return *this;
128 }
130
132
136 inline ActivationState GetActivationState() const { return m_activationState; }
137 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
139 m_activationStateHasBeenSet = true;
140 m_activationState = value;
141 }
143 SetActivationState(value);
144 return *this;
145 }
147
149
152 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Vector<Tag>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Vector<Tag>>
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsT = Tag>
166 m_tagsHasBeenSet = true;
167 m_tags.emplace_back(std::forward<TagsT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_name;
173
174 Aws::String m_description;
175
176 Aws::String m_clusterArn;
177
178 ComputeQuotaConfig m_computeQuotaConfig;
179
180 ComputeQuotaTarget m_computeQuotaTarget;
181
182 ActivationState m_activationState{ActivationState::NOT_SET};
183
184 Aws::Vector<Tag> m_tags;
185 bool m_nameHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187 bool m_clusterArnHasBeenSet = false;
188 bool m_computeQuotaConfigHasBeenSet = false;
189 bool m_computeQuotaTargetHasBeenSet = false;
190 bool m_activationStateHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace SageMaker
196} // 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