AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ComputeQuotaConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/ResourceSharingConfig.h>
10#include <aws/sagemaker/model/PreemptTeamTasks.h>
11#include <aws/sagemaker/model/ComputeQuotaResourceConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SAGEMAKER_API ComputeQuotaConfig() = default;
40 AWS_SAGEMAKER_API ComputeQuotaConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<ComputeQuotaResourceConfig>& GetComputeQuotaResources() const { return m_computeQuotaResources; }
50 inline bool ComputeQuotaResourcesHasBeenSet() const { return m_computeQuotaResourcesHasBeenSet; }
51 template<typename ComputeQuotaResourcesT = Aws::Vector<ComputeQuotaResourceConfig>>
52 void SetComputeQuotaResources(ComputeQuotaResourcesT&& value) { m_computeQuotaResourcesHasBeenSet = true; m_computeQuotaResources = std::forward<ComputeQuotaResourcesT>(value); }
53 template<typename ComputeQuotaResourcesT = Aws::Vector<ComputeQuotaResourceConfig>>
54 ComputeQuotaConfig& WithComputeQuotaResources(ComputeQuotaResourcesT&& value) { SetComputeQuotaResources(std::forward<ComputeQuotaResourcesT>(value)); return *this;}
55 template<typename ComputeQuotaResourcesT = ComputeQuotaResourceConfig>
56 ComputeQuotaConfig& AddComputeQuotaResources(ComputeQuotaResourcesT&& value) { m_computeQuotaResourcesHasBeenSet = true; m_computeQuotaResources.emplace_back(std::forward<ComputeQuotaResourcesT>(value)); return *this; }
58
60
64 inline const ResourceSharingConfig& GetResourceSharingConfig() const { return m_resourceSharingConfig; }
65 inline bool ResourceSharingConfigHasBeenSet() const { return m_resourceSharingConfigHasBeenSet; }
66 template<typename ResourceSharingConfigT = ResourceSharingConfig>
67 void SetResourceSharingConfig(ResourceSharingConfigT&& value) { m_resourceSharingConfigHasBeenSet = true; m_resourceSharingConfig = std::forward<ResourceSharingConfigT>(value); }
68 template<typename ResourceSharingConfigT = ResourceSharingConfig>
69 ComputeQuotaConfig& WithResourceSharingConfig(ResourceSharingConfigT&& value) { SetResourceSharingConfig(std::forward<ResourceSharingConfigT>(value)); return *this;}
71
73
79 inline PreemptTeamTasks GetPreemptTeamTasks() const { return m_preemptTeamTasks; }
80 inline bool PreemptTeamTasksHasBeenSet() const { return m_preemptTeamTasksHasBeenSet; }
81 inline void SetPreemptTeamTasks(PreemptTeamTasks value) { m_preemptTeamTasksHasBeenSet = true; m_preemptTeamTasks = value; }
84 private:
85
86 Aws::Vector<ComputeQuotaResourceConfig> m_computeQuotaResources;
87 bool m_computeQuotaResourcesHasBeenSet = false;
88
89 ResourceSharingConfig m_resourceSharingConfig;
90 bool m_resourceSharingConfigHasBeenSet = false;
91
93 bool m_preemptTeamTasksHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SageMaker
98} // 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