AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StoppingCondition.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
44 {
45 public:
46 AWS_SAGEMAKER_API StoppingCondition();
47 AWS_SAGEMAKER_API StoppingCondition(Aws::Utils::Json::JsonView jsonValue);
49 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
67 inline int GetMaxRuntimeInSeconds() const{ return m_maxRuntimeInSeconds; }
68 inline bool MaxRuntimeInSecondsHasBeenSet() const { return m_maxRuntimeInSecondsHasBeenSet; }
69 inline void SetMaxRuntimeInSeconds(int value) { m_maxRuntimeInSecondsHasBeenSet = true; m_maxRuntimeInSeconds = value; }
70 inline StoppingCondition& WithMaxRuntimeInSeconds(int value) { SetMaxRuntimeInSeconds(value); return *this;}
72
74
83 inline int GetMaxWaitTimeInSeconds() const{ return m_maxWaitTimeInSeconds; }
84 inline bool MaxWaitTimeInSecondsHasBeenSet() const { return m_maxWaitTimeInSecondsHasBeenSet; }
85 inline void SetMaxWaitTimeInSeconds(int value) { m_maxWaitTimeInSecondsHasBeenSet = true; m_maxWaitTimeInSeconds = value; }
86 inline StoppingCondition& WithMaxWaitTimeInSeconds(int value) { SetMaxWaitTimeInSeconds(value); return *this;}
88
90
94 inline int GetMaxPendingTimeInSeconds() const{ return m_maxPendingTimeInSeconds; }
95 inline bool MaxPendingTimeInSecondsHasBeenSet() const { return m_maxPendingTimeInSecondsHasBeenSet; }
96 inline void SetMaxPendingTimeInSeconds(int value) { m_maxPendingTimeInSecondsHasBeenSet = true; m_maxPendingTimeInSeconds = value; }
99 private:
100
101 int m_maxRuntimeInSeconds;
102 bool m_maxRuntimeInSecondsHasBeenSet = false;
103
104 int m_maxWaitTimeInSeconds;
105 bool m_maxWaitTimeInSecondsHasBeenSet = false;
106
107 int m_maxPendingTimeInSeconds;
108 bool m_maxPendingTimeInSecondsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SageMaker
113} // namespace Aws
AWS_SAGEMAKER_API StoppingCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API StoppingCondition(Aws::Utils::Json::JsonView jsonValue)
StoppingCondition & WithMaxWaitTimeInSeconds(int value)
StoppingCondition & WithMaxRuntimeInSeconds(int value)
StoppingCondition & WithMaxPendingTimeInSeconds(int value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue