AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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
105 inline int GetMaxPendingTimeInSeconds() const { return m_maxPendingTimeInSeconds; }
106 inline bool MaxPendingTimeInSecondsHasBeenSet() const { return m_maxPendingTimeInSecondsHasBeenSet; }
107 inline void SetMaxPendingTimeInSeconds(int value) { m_maxPendingTimeInSecondsHasBeenSet = true; m_maxPendingTimeInSeconds = value; }
110 private:
111
112 int m_maxRuntimeInSeconds{0};
113 bool m_maxRuntimeInSecondsHasBeenSet = false;
114
115 int m_maxWaitTimeInSeconds{0};
116 bool m_maxWaitTimeInSecondsHasBeenSet = false;
117
118 int m_maxPendingTimeInSeconds{0};
119 bool m_maxPendingTimeInSecondsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SageMaker
124} // 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)
AWS_SAGEMAKER_API StoppingCondition()=default
StoppingCondition & WithMaxPendingTimeInSeconds(int value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue