AWS SDK for C++

AWS SDK for C++ Version 1.11.853

Loading...
Searching...
No Matches
ClusterAutoPatchConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClusterPatchSchedule.h>
9#include <aws/sagemaker/model/ClusterPatchingStrategy.h>
10#include <aws/sagemaker/model/DeploymentConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
32 public:
33 AWS_SAGEMAKER_API ClusterAutoPatchConfig() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
51 inline ClusterPatchingStrategy GetPatchingStrategy() const { return m_patchingStrategy; }
52 inline bool PatchingStrategyHasBeenSet() const { return m_patchingStrategyHasBeenSet; }
54 m_patchingStrategyHasBeenSet = true;
55 m_patchingStrategy = value;
56 }
59 return *this;
60 }
62
64
67 inline const ClusterPatchSchedule& GetPatchSchedule() const { return m_patchSchedule; }
68 inline bool PatchScheduleHasBeenSet() const { return m_patchScheduleHasBeenSet; }
69 template <typename PatchScheduleT = ClusterPatchSchedule>
70 void SetPatchSchedule(PatchScheduleT&& value) {
71 m_patchScheduleHasBeenSet = true;
72 m_patchSchedule = std::forward<PatchScheduleT>(value);
73 }
74 template <typename PatchScheduleT = ClusterPatchSchedule>
75 ClusterAutoPatchConfig& WithPatchSchedule(PatchScheduleT&& value) {
76 SetPatchSchedule(std::forward<PatchScheduleT>(value));
77 return *this;
78 }
80
82
87 inline const DeploymentConfiguration& GetDeploymentConfig() const { return m_deploymentConfig; }
88 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
89 template <typename DeploymentConfigT = DeploymentConfiguration>
90 void SetDeploymentConfig(DeploymentConfigT&& value) {
91 m_deploymentConfigHasBeenSet = true;
92 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
93 }
94 template <typename DeploymentConfigT = DeploymentConfiguration>
95 ClusterAutoPatchConfig& WithDeploymentConfig(DeploymentConfigT&& value) {
96 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
97 return *this;
98 }
100 private:
102
103 ClusterPatchSchedule m_patchSchedule;
104
105 DeploymentConfiguration m_deploymentConfig;
106 bool m_patchingStrategyHasBeenSet = false;
107 bool m_patchScheduleHasBeenSet = false;
108 bool m_deploymentConfigHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SageMaker
113} // 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)
ClusterPatchingStrategy GetPatchingStrategy() const
void SetPatchingStrategy(ClusterPatchingStrategy value)
void SetDeploymentConfig(DeploymentConfigT &&value)
AWS_SAGEMAKER_API ClusterAutoPatchConfig()=default
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