AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateComputeQuotaRequest.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 <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API UpdateComputeQuotaRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateComputeQuota"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetComputeQuotaId() const { return m_computeQuotaId; }
45 inline bool ComputeQuotaIdHasBeenSet() const { return m_computeQuotaIdHasBeenSet; }
46 template<typename ComputeQuotaIdT = Aws::String>
47 void SetComputeQuotaId(ComputeQuotaIdT&& value) { m_computeQuotaIdHasBeenSet = true; m_computeQuotaId = std::forward<ComputeQuotaIdT>(value); }
48 template<typename ComputeQuotaIdT = Aws::String>
49 UpdateComputeQuotaRequest& WithComputeQuotaId(ComputeQuotaIdT&& value) { SetComputeQuotaId(std::forward<ComputeQuotaIdT>(value)); return *this;}
51
53
56 inline int GetTargetVersion() const { return m_targetVersion; }
57 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
58 inline void SetTargetVersion(int value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; }
59 inline UpdateComputeQuotaRequest& WithTargetVersion(int value) { SetTargetVersion(value); return *this;}
61
63
67 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
68 inline bool ComputeQuotaConfigHasBeenSet() const { return m_computeQuotaConfigHasBeenSet; }
69 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
70 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) { m_computeQuotaConfigHasBeenSet = true; m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value); }
71 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
72 UpdateComputeQuotaRequest& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) { SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value)); return *this;}
74
76
79 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
80 inline bool ComputeQuotaTargetHasBeenSet() const { return m_computeQuotaTargetHasBeenSet; }
81 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
82 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) { m_computeQuotaTargetHasBeenSet = true; m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value); }
83 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
84 UpdateComputeQuotaRequest& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) { SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value)); return *this;}
86
88
92 inline ActivationState GetActivationState() const { return m_activationState; }
93 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
94 inline void SetActivationState(ActivationState value) { m_activationStateHasBeenSet = true; m_activationState = value; }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 UpdateComputeQuotaRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109 private:
110
111 Aws::String m_computeQuotaId;
112 bool m_computeQuotaIdHasBeenSet = false;
113
114 int m_targetVersion{0};
115 bool m_targetVersionHasBeenSet = false;
116
117 ComputeQuotaConfig m_computeQuotaConfig;
118 bool m_computeQuotaConfigHasBeenSet = false;
119
120 ComputeQuotaTarget m_computeQuotaTarget;
121 bool m_computeQuotaTargetHasBeenSet = false;
122
123 ActivationState m_activationState{ActivationState::NOT_SET};
124 bool m_activationStateHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace SageMaker
132} // 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