AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceLimits.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_SAGEMAKER_API ResourceLimits();
34 AWS_SAGEMAKER_API ResourceLimits(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline int GetMaxNumberOfTrainingJobs() const{ return m_maxNumberOfTrainingJobs; }
45 inline bool MaxNumberOfTrainingJobsHasBeenSet() const { return m_maxNumberOfTrainingJobsHasBeenSet; }
46 inline void SetMaxNumberOfTrainingJobs(int value) { m_maxNumberOfTrainingJobsHasBeenSet = true; m_maxNumberOfTrainingJobs = value; }
47 inline ResourceLimits& WithMaxNumberOfTrainingJobs(int value) { SetMaxNumberOfTrainingJobs(value); return *this;}
49
51
55 inline int GetMaxParallelTrainingJobs() const{ return m_maxParallelTrainingJobs; }
56 inline bool MaxParallelTrainingJobsHasBeenSet() const { return m_maxParallelTrainingJobsHasBeenSet; }
57 inline void SetMaxParallelTrainingJobs(int value) { m_maxParallelTrainingJobsHasBeenSet = true; m_maxParallelTrainingJobs = value; }
58 inline ResourceLimits& WithMaxParallelTrainingJobs(int value) { SetMaxParallelTrainingJobs(value); return *this;}
60
62
65 inline int GetMaxRuntimeInSeconds() const{ return m_maxRuntimeInSeconds; }
66 inline bool MaxRuntimeInSecondsHasBeenSet() const { return m_maxRuntimeInSecondsHasBeenSet; }
67 inline void SetMaxRuntimeInSeconds(int value) { m_maxRuntimeInSecondsHasBeenSet = true; m_maxRuntimeInSeconds = value; }
68 inline ResourceLimits& WithMaxRuntimeInSeconds(int value) { SetMaxRuntimeInSeconds(value); return *this;}
70 private:
71
72 int m_maxNumberOfTrainingJobs;
73 bool m_maxNumberOfTrainingJobsHasBeenSet = false;
74
75 int m_maxParallelTrainingJobs;
76 bool m_maxParallelTrainingJobsHasBeenSet = false;
77
78 int m_maxRuntimeInSeconds;
79 bool m_maxRuntimeInSecondsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace SageMaker
84} // namespace Aws
ResourceLimits & WithMaxNumberOfTrainingJobs(int value)
ResourceLimits & WithMaxRuntimeInSeconds(int value)
AWS_SAGEMAKER_API ResourceLimits(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ResourceLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceLimits & WithMaxParallelTrainingJobs(int value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue