AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateComputeQuotaRequest.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/ComputeQuotaConfig.h>
11#include <aws/sagemaker/model/ComputeQuotaTarget.h>
12#include <aws/sagemaker/model/ActivationState.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API CreateComputeQuotaRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateComputeQuota"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CreateComputeQuotaRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 CreateComputeQuotaRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
71 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
72 template<typename ClusterArnT = Aws::String>
73 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
74 template<typename ClusterArnT = Aws::String>
75 CreateComputeQuotaRequest& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
77
79
83 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
84 inline bool ComputeQuotaConfigHasBeenSet() const { return m_computeQuotaConfigHasBeenSet; }
85 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
86 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) { m_computeQuotaConfigHasBeenSet = true; m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value); }
87 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
88 CreateComputeQuotaRequest& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) { SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value)); return *this;}
90
92
95 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
96 inline bool ComputeQuotaTargetHasBeenSet() const { return m_computeQuotaTargetHasBeenSet; }
97 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
98 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) { m_computeQuotaTargetHasBeenSet = true; m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value); }
99 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
100 CreateComputeQuotaRequest& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) { SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value)); return *this;}
102
104
108 inline ActivationState GetActivationState() const { return m_activationState; }
109 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
110 inline void SetActivationState(ActivationState value) { m_activationStateHasBeenSet = true; m_activationState = value; }
113
115
118 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Vector<Tag>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Vector<Tag>>
123 CreateComputeQuotaRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsT = Tag>
125 CreateComputeQuotaRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
127 private:
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 Aws::String m_clusterArn;
136 bool m_clusterArnHasBeenSet = false;
137
138 ComputeQuotaConfig m_computeQuotaConfig;
139 bool m_computeQuotaConfigHasBeenSet = false;
140
141 ComputeQuotaTarget m_computeQuotaTarget;
142 bool m_computeQuotaTargetHasBeenSet = false;
143
144 ActivationState m_activationState{ActivationState::NOT_SET};
145 bool m_activationStateHasBeenSet = false;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace SageMaker
153} // 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