AWS SDK for C++  1.9.159
AWS SDK for C++
StoppingCondition.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace SageMaker
20 {
21 namespace Model
22 {
23 
46  {
47  public:
52 
53 
65  inline int GetMaxRuntimeInSeconds() const{ return m_maxRuntimeInSeconds; }
66 
78  inline bool MaxRuntimeInSecondsHasBeenSet() const { return m_maxRuntimeInSecondsHasBeenSet; }
79 
91  inline void SetMaxRuntimeInSeconds(int value) { m_maxRuntimeInSecondsHasBeenSet = true; m_maxRuntimeInSeconds = value; }
92 
104  inline StoppingCondition& WithMaxRuntimeInSeconds(int value) { SetMaxRuntimeInSeconds(value); return *this;}
105 
106 
116  inline int GetMaxWaitTimeInSeconds() const{ return m_maxWaitTimeInSeconds; }
117 
127  inline bool MaxWaitTimeInSecondsHasBeenSet() const { return m_maxWaitTimeInSecondsHasBeenSet; }
128 
138  inline void SetMaxWaitTimeInSeconds(int value) { m_maxWaitTimeInSecondsHasBeenSet = true; m_maxWaitTimeInSeconds = value; }
139 
149  inline StoppingCondition& WithMaxWaitTimeInSeconds(int value) { SetMaxWaitTimeInSeconds(value); return *this;}
150 
151  private:
152 
153  int m_maxRuntimeInSeconds;
154  bool m_maxRuntimeInSecondsHasBeenSet;
155 
156  int m_maxWaitTimeInSeconds;
157  bool m_maxWaitTimeInSecondsHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace SageMaker
162 } // namespace Aws
Aws::SageMaker::Model::StoppingCondition::SetMaxWaitTimeInSeconds
void SetMaxWaitTimeInSeconds(int value)
Definition: StoppingCondition.h:138
Aws::SageMaker::Model::StoppingCondition::GetMaxWaitTimeInSeconds
int GetMaxWaitTimeInSeconds() const
Definition: StoppingCondition.h:116
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::StoppingCondition::operator=
StoppingCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::StoppingCondition::WithMaxRuntimeInSeconds
StoppingCondition & WithMaxRuntimeInSeconds(int value)
Definition: StoppingCondition.h:104
Aws::SageMaker::Model::StoppingCondition::StoppingCondition
StoppingCondition(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::StoppingCondition::GetMaxRuntimeInSeconds
int GetMaxRuntimeInSeconds() const
Definition: StoppingCondition.h:65
Aws::SageMaker::Model::StoppingCondition::MaxWaitTimeInSecondsHasBeenSet
bool MaxWaitTimeInSecondsHasBeenSet() const
Definition: StoppingCondition.h:127
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::StoppingCondition::MaxRuntimeInSecondsHasBeenSet
bool MaxRuntimeInSecondsHasBeenSet() const
Definition: StoppingCondition.h:78
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::StoppingCondition::WithMaxWaitTimeInSeconds
StoppingCondition & WithMaxWaitTimeInSeconds(int value)
Definition: StoppingCondition.h:149
Aws::SageMaker::Model::StoppingCondition::StoppingCondition
StoppingCondition()
Aws::SageMaker::Model::StoppingCondition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::StoppingCondition::SetMaxRuntimeInSeconds
void SetMaxRuntimeInSeconds(int value)
Definition: StoppingCondition.h:91
Aws::SageMaker::Model::StoppingCondition
Definition: StoppingCondition.h:46