AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RollingUpdatePolicy.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/CapacitySize.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKER_API RollingUpdatePolicy();
36 AWS_SAGEMAKER_API RollingUpdatePolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const CapacitySize& GetMaximumBatchSize() const{ return m_maximumBatchSize; }
48 inline bool MaximumBatchSizeHasBeenSet() const { return m_maximumBatchSizeHasBeenSet; }
49 inline void SetMaximumBatchSize(const CapacitySize& value) { m_maximumBatchSizeHasBeenSet = true; m_maximumBatchSize = value; }
50 inline void SetMaximumBatchSize(CapacitySize&& value) { m_maximumBatchSizeHasBeenSet = true; m_maximumBatchSize = std::move(value); }
51 inline RollingUpdatePolicy& WithMaximumBatchSize(const CapacitySize& value) { SetMaximumBatchSize(value); return *this;}
52 inline RollingUpdatePolicy& WithMaximumBatchSize(CapacitySize&& value) { SetMaximumBatchSize(std::move(value)); return *this;}
54
56
60 inline int GetWaitIntervalInSeconds() const{ return m_waitIntervalInSeconds; }
61 inline bool WaitIntervalInSecondsHasBeenSet() const { return m_waitIntervalInSecondsHasBeenSet; }
62 inline void SetWaitIntervalInSeconds(int value) { m_waitIntervalInSecondsHasBeenSet = true; m_waitIntervalInSeconds = value; }
65
67
71 inline int GetMaximumExecutionTimeoutInSeconds() const{ return m_maximumExecutionTimeoutInSeconds; }
72 inline bool MaximumExecutionTimeoutInSecondsHasBeenSet() const { return m_maximumExecutionTimeoutInSecondsHasBeenSet; }
73 inline void SetMaximumExecutionTimeoutInSeconds(int value) { m_maximumExecutionTimeoutInSecondsHasBeenSet = true; m_maximumExecutionTimeoutInSeconds = value; }
76
78
85 inline const CapacitySize& GetRollbackMaximumBatchSize() const{ return m_rollbackMaximumBatchSize; }
86 inline bool RollbackMaximumBatchSizeHasBeenSet() const { return m_rollbackMaximumBatchSizeHasBeenSet; }
87 inline void SetRollbackMaximumBatchSize(const CapacitySize& value) { m_rollbackMaximumBatchSizeHasBeenSet = true; m_rollbackMaximumBatchSize = value; }
88 inline void SetRollbackMaximumBatchSize(CapacitySize&& value) { m_rollbackMaximumBatchSizeHasBeenSet = true; m_rollbackMaximumBatchSize = std::move(value); }
92 private:
93
94 CapacitySize m_maximumBatchSize;
95 bool m_maximumBatchSizeHasBeenSet = false;
96
97 int m_waitIntervalInSeconds;
98 bool m_waitIntervalInSecondsHasBeenSet = false;
99
100 int m_maximumExecutionTimeoutInSeconds;
101 bool m_maximumExecutionTimeoutInSecondsHasBeenSet = false;
102
103 CapacitySize m_rollbackMaximumBatchSize;
104 bool m_rollbackMaximumBatchSizeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SageMaker
109} // namespace Aws
RollingUpdatePolicy & WithMaximumBatchSize(CapacitySize &&value)
void SetRollbackMaximumBatchSize(const CapacitySize &value)
void SetMaximumBatchSize(const CapacitySize &value)
RollingUpdatePolicy & WithRollbackMaximumBatchSize(CapacitySize &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRollbackMaximumBatchSize(CapacitySize &&value)
RollingUpdatePolicy & WithMaximumExecutionTimeoutInSeconds(int value)
RollingUpdatePolicy & WithWaitIntervalInSeconds(int value)
const CapacitySize & GetRollbackMaximumBatchSize() const
AWS_SAGEMAKER_API RollingUpdatePolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API RollingUpdatePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RollingUpdatePolicy & WithMaximumBatchSize(const CapacitySize &value)
const CapacitySize & GetMaximumBatchSize() const
RollingUpdatePolicy & WithRollbackMaximumBatchSize(const CapacitySize &value)
Aws::Utils::Json::JsonValue JsonValue