AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ClusterAutoPatchConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClusterDrainPolicy.h>
9#include <aws/sagemaker/model/ClusterPatchSchedule.h>
10#include <aws/sagemaker/model/ClusterPatchingStrategy.h>
11#include <aws/sagemaker/model/DeploymentConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
33 public:
34 AWS_SAGEMAKER_API ClusterAutoPatchConfig() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
59 inline ClusterPatchingStrategy GetPatchingStrategy() const { return m_patchingStrategy; }
60 inline bool PatchingStrategyHasBeenSet() const { return m_patchingStrategyHasBeenSet; }
62 m_patchingStrategyHasBeenSet = true;
63 m_patchingStrategy = value;
64 }
70
72
75 inline const ClusterPatchSchedule& GetPatchSchedule() const { return m_patchSchedule; }
76 inline bool PatchScheduleHasBeenSet() const { return m_patchScheduleHasBeenSet; }
77 template <typename PatchScheduleT = ClusterPatchSchedule>
78 void SetPatchSchedule(PatchScheduleT&& value) {
79 m_patchScheduleHasBeenSet = true;
80 m_patchSchedule = std::forward<PatchScheduleT>(value);
81 }
82 template <typename PatchScheduleT = ClusterPatchSchedule>
83 ClusterAutoPatchConfig& WithPatchSchedule(PatchScheduleT&& value) {
84 SetPatchSchedule(std::forward<PatchScheduleT>(value));
85 return *this;
86 }
88
90
95 inline const DeploymentConfiguration& GetDeploymentConfig() const { return m_deploymentConfig; }
96 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
97 template <typename DeploymentConfigT = DeploymentConfiguration>
98 void SetDeploymentConfig(DeploymentConfigT&& value) {
99 m_deploymentConfigHasBeenSet = true;
100 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
101 }
102 template <typename DeploymentConfigT = DeploymentConfiguration>
103 ClusterAutoPatchConfig& WithDeploymentConfig(DeploymentConfigT&& value) {
104 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
105 return *this;
106 }
108
110
118 inline int GetIdleWaitWindowInSeconds() const { return m_idleWaitWindowInSeconds; }
119 inline bool IdleWaitWindowInSecondsHasBeenSet() const { return m_idleWaitWindowInSecondsHasBeenSet; }
120 inline void SetIdleWaitWindowInSeconds(int value) {
121 m_idleWaitWindowInSecondsHasBeenSet = true;
122 m_idleWaitWindowInSeconds = value;
123 }
126 return *this;
127 }
129
131
136 inline const ClusterDrainPolicy& GetDrainPolicy() const { return m_drainPolicy; }
137 inline bool DrainPolicyHasBeenSet() const { return m_drainPolicyHasBeenSet; }
138 template <typename DrainPolicyT = ClusterDrainPolicy>
139 void SetDrainPolicy(DrainPolicyT&& value) {
140 m_drainPolicyHasBeenSet = true;
141 m_drainPolicy = std::forward<DrainPolicyT>(value);
142 }
143 template <typename DrainPolicyT = ClusterDrainPolicy>
145 SetDrainPolicy(std::forward<DrainPolicyT>(value));
146 return *this;
147 }
149 private:
151
152 ClusterPatchSchedule m_patchSchedule;
153
154 DeploymentConfiguration m_deploymentConfig;
155
156 int m_idleWaitWindowInSeconds{0};
157
158 ClusterDrainPolicy m_drainPolicy;
159 bool m_patchingStrategyHasBeenSet = false;
160 bool m_patchScheduleHasBeenSet = false;
161 bool m_deploymentConfigHasBeenSet = false;
162 bool m_idleWaitWindowInSecondsHasBeenSet = false;
163 bool m_drainPolicyHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace SageMaker
168} // namespace Aws
const DeploymentConfiguration & GetDeploymentConfig() const
ClusterAutoPatchConfig & WithDeploymentConfig(DeploymentConfigT &&value)
ClusterAutoPatchConfig & WithPatchSchedule(PatchScheduleT &&value)
const ClusterPatchSchedule & GetPatchSchedule() const
AWS_SAGEMAKER_API ClusterAutoPatchConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterAutoPatchConfig & WithDrainPolicy(DrainPolicyT &&value)
ClusterPatchingStrategy GetPatchingStrategy() const
const ClusterDrainPolicy & GetDrainPolicy() const
void SetPatchingStrategy(ClusterPatchingStrategy value)
void SetDeploymentConfig(DeploymentConfigT &&value)
AWS_SAGEMAKER_API ClusterAutoPatchConfig()=default
ClusterAutoPatchConfig & WithIdleWaitWindowInSeconds(int value)
ClusterAutoPatchConfig & WithPatchingStrategy(ClusterPatchingStrategy value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ClusterAutoPatchConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue