AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ResourceLimits.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMaker {
17namespace Model {
18
26 public:
27 AWS_SAGEMAKER_API ResourceLimits() = default;
28 AWS_SAGEMAKER_API ResourceLimits(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline int GetMaxNumberOfTrainingJobs() const { return m_maxNumberOfTrainingJobs; }
38 inline bool MaxNumberOfTrainingJobsHasBeenSet() const { return m_maxNumberOfTrainingJobsHasBeenSet; }
39 inline void SetMaxNumberOfTrainingJobs(int value) {
40 m_maxNumberOfTrainingJobsHasBeenSet = true;
41 m_maxNumberOfTrainingJobs = value;
42 }
45 return *this;
46 }
48
50
54 inline int GetMaxParallelTrainingJobs() const { return m_maxParallelTrainingJobs; }
55 inline bool MaxParallelTrainingJobsHasBeenSet() const { return m_maxParallelTrainingJobsHasBeenSet; }
56 inline void SetMaxParallelTrainingJobs(int value) {
57 m_maxParallelTrainingJobsHasBeenSet = true;
58 m_maxParallelTrainingJobs = value;
59 }
62 return *this;
63 }
65
67
70 inline int GetMaxRuntimeInSeconds() const { return m_maxRuntimeInSeconds; }
71 inline bool MaxRuntimeInSecondsHasBeenSet() const { return m_maxRuntimeInSecondsHasBeenSet; }
72 inline void SetMaxRuntimeInSeconds(int value) {
73 m_maxRuntimeInSecondsHasBeenSet = true;
74 m_maxRuntimeInSeconds = value;
75 }
78 return *this;
79 }
81 private:
82 int m_maxNumberOfTrainingJobs{0};
83
84 int m_maxParallelTrainingJobs{0};
85
86 int m_maxRuntimeInSeconds{0};
87 bool m_maxNumberOfTrainingJobsHasBeenSet = false;
88 bool m_maxParallelTrainingJobsHasBeenSet = false;
89 bool m_maxRuntimeInSecondsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace SageMaker
94} // 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_SAGEMAKER_API ResourceLimits()=default
Aws::Utils::Json::JsonValue JsonValue