AWS SDK for C++

AWS SDK for C++ Version 1.11.888

Loading...
Searching...
No Matches
StoppingCondition.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
39 public:
40 AWS_SAGEMAKER_API StoppingCondition() = default;
41 AWS_SAGEMAKER_API StoppingCondition(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
60 inline int GetMaxRuntimeInSeconds() const { return m_maxRuntimeInSeconds; }
61 inline bool MaxRuntimeInSecondsHasBeenSet() const { return m_maxRuntimeInSecondsHasBeenSet; }
62 inline void SetMaxRuntimeInSeconds(int value) {
63 m_maxRuntimeInSecondsHasBeenSet = true;
64 m_maxRuntimeInSeconds = value;
65 }
68 return *this;
69 }
71
73
82 inline int GetMaxWaitTimeInSeconds() const { return m_maxWaitTimeInSeconds; }
83 inline bool MaxWaitTimeInSecondsHasBeenSet() const { return m_maxWaitTimeInSecondsHasBeenSet; }
84 inline void SetMaxWaitTimeInSeconds(int value) {
85 m_maxWaitTimeInSecondsHasBeenSet = true;
86 m_maxWaitTimeInSeconds = value;
87 }
90 return *this;
91 }
93
95
119 inline int GetMaxPendingTimeInSeconds() const { return m_maxPendingTimeInSeconds; }
120 inline bool MaxPendingTimeInSecondsHasBeenSet() const { return m_maxPendingTimeInSecondsHasBeenSet; }
121 inline void SetMaxPendingTimeInSeconds(int value) {
122 m_maxPendingTimeInSecondsHasBeenSet = true;
123 m_maxPendingTimeInSeconds = value;
124 }
127 return *this;
128 }
130 private:
131 int m_maxRuntimeInSeconds{0};
132
133 int m_maxWaitTimeInSeconds{0};
134
135 int m_maxPendingTimeInSeconds{0};
136 bool m_maxRuntimeInSecondsHasBeenSet = false;
137 bool m_maxWaitTimeInSecondsHasBeenSet = false;
138 bool m_maxPendingTimeInSecondsHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace SageMaker
143} // 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