AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
110 inline int GetMaxPendingTimeInSeconds() const { return m_maxPendingTimeInSeconds; }
111 inline bool MaxPendingTimeInSecondsHasBeenSet() const { return m_maxPendingTimeInSecondsHasBeenSet; }
112 inline void SetMaxPendingTimeInSeconds(int value) {
113 m_maxPendingTimeInSecondsHasBeenSet = true;
114 m_maxPendingTimeInSeconds = value;
115 }
118 return *this;
119 }
121 private:
122 int m_maxRuntimeInSeconds{0};
123
124 int m_maxWaitTimeInSeconds{0};
125
126 int m_maxPendingTimeInSeconds{0};
127 bool m_maxRuntimeInSecondsHasBeenSet = false;
128 bool m_maxWaitTimeInSecondsHasBeenSet = false;
129 bool m_maxPendingTimeInSecondsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SageMaker
134} // 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