AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ComputeQuotaConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ComputeQuotaResourceConfig.h>
10#include <aws/sagemaker/model/PreemptTeamTasks.h>
11#include <aws/sagemaker/model/ResourceSharingConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
33 public:
34 AWS_SAGEMAKER_API ComputeQuotaConfig() = default;
35 AWS_SAGEMAKER_API ComputeQuotaConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<ComputeQuotaResourceConfig>& GetComputeQuotaResources() const { return m_computeQuotaResources; }
44 inline bool ComputeQuotaResourcesHasBeenSet() const { return m_computeQuotaResourcesHasBeenSet; }
45 template <typename ComputeQuotaResourcesT = Aws::Vector<ComputeQuotaResourceConfig>>
46 void SetComputeQuotaResources(ComputeQuotaResourcesT&& value) {
47 m_computeQuotaResourcesHasBeenSet = true;
48 m_computeQuotaResources = std::forward<ComputeQuotaResourcesT>(value);
49 }
50 template <typename ComputeQuotaResourcesT = Aws::Vector<ComputeQuotaResourceConfig>>
51 ComputeQuotaConfig& WithComputeQuotaResources(ComputeQuotaResourcesT&& value) {
52 SetComputeQuotaResources(std::forward<ComputeQuotaResourcesT>(value));
53 return *this;
54 }
55 template <typename ComputeQuotaResourcesT = ComputeQuotaResourceConfig>
56 ComputeQuotaConfig& AddComputeQuotaResources(ComputeQuotaResourcesT&& value) {
57 m_computeQuotaResourcesHasBeenSet = true;
58 m_computeQuotaResources.emplace_back(std::forward<ComputeQuotaResourcesT>(value));
59 return *this;
60 }
62
64
68 inline const ResourceSharingConfig& GetResourceSharingConfig() const { return m_resourceSharingConfig; }
69 inline bool ResourceSharingConfigHasBeenSet() const { return m_resourceSharingConfigHasBeenSet; }
70 template <typename ResourceSharingConfigT = ResourceSharingConfig>
71 void SetResourceSharingConfig(ResourceSharingConfigT&& value) {
72 m_resourceSharingConfigHasBeenSet = true;
73 m_resourceSharingConfig = std::forward<ResourceSharingConfigT>(value);
74 }
75 template <typename ResourceSharingConfigT = ResourceSharingConfig>
76 ComputeQuotaConfig& WithResourceSharingConfig(ResourceSharingConfigT&& value) {
77 SetResourceSharingConfig(std::forward<ResourceSharingConfigT>(value));
78 return *this;
79 }
81
83
89 inline PreemptTeamTasks GetPreemptTeamTasks() const { return m_preemptTeamTasks; }
90 inline bool PreemptTeamTasksHasBeenSet() const { return m_preemptTeamTasksHasBeenSet; }
92 m_preemptTeamTasksHasBeenSet = true;
93 m_preemptTeamTasks = value;
94 }
97 return *this;
98 }
100 private:
101 Aws::Vector<ComputeQuotaResourceConfig> m_computeQuotaResources;
102
103 ResourceSharingConfig m_resourceSharingConfig;
104
106 bool m_computeQuotaResourcesHasBeenSet = false;
107 bool m_resourceSharingConfigHasBeenSet = false;
108 bool m_preemptTeamTasksHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SageMaker
113} // namespace Aws
ComputeQuotaConfig & WithComputeQuotaResources(ComputeQuotaResourcesT &&value)
const Aws::Vector< ComputeQuotaResourceConfig > & GetComputeQuotaResources() const
void SetPreemptTeamTasks(PreemptTeamTasks value)
ComputeQuotaConfig & WithPreemptTeamTasks(PreemptTeamTasks value)
AWS_SAGEMAKER_API ComputeQuotaConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComputeQuotaResources(ComputeQuotaResourcesT &&value)
ComputeQuotaConfig & AddComputeQuotaResources(ComputeQuotaResourcesT &&value)
AWS_SAGEMAKER_API ComputeQuotaConfig()=default
ComputeQuotaConfig & WithResourceSharingConfig(ResourceSharingConfigT &&value)
const ResourceSharingConfig & GetResourceSharingConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ComputeQuotaConfig(Aws::Utils::Json::JsonView jsonValue)
void SetResourceSharingConfig(ResourceSharingConfigT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue