AWS SDK for C++

AWS SDK for C++ Version 1.11.835

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
42 inline ClusterPatchingStrategy GetPatchingStrategy() const { return m_patchingStrategy; }
43 inline bool PatchingStrategyHasBeenSet() const { return m_patchingStrategyHasBeenSet; }
45 m_patchingStrategyHasBeenSet = true;
46 m_patchingStrategy = value;
47 }
50 return *this;
51 }
53
55
58 inline const ClusterPatchSchedule& GetPatchSchedule() const { return m_patchSchedule; }
59 inline bool PatchScheduleHasBeenSet() const { return m_patchScheduleHasBeenSet; }
60 template <typename PatchScheduleT = ClusterPatchSchedule>
61 void SetPatchSchedule(PatchScheduleT&& value) {
62 m_patchScheduleHasBeenSet = true;
63 m_patchSchedule = std::forward<PatchScheduleT>(value);
64 }
65 template <typename PatchScheduleT = ClusterPatchSchedule>
66 ClusterAutoPatchConfig& WithPatchSchedule(PatchScheduleT&& value) {
67 SetPatchSchedule(std::forward<PatchScheduleT>(value));
68 return *this;
69 }
71
73
78 inline const DeploymentConfiguration& GetDeploymentConfig() const { return m_deploymentConfig; }
79 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
80 template <typename DeploymentConfigT = DeploymentConfiguration>
81 void SetDeploymentConfig(DeploymentConfigT&& value) {
82 m_deploymentConfigHasBeenSet = true;
83 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
84 }
85 template <typename DeploymentConfigT = DeploymentConfiguration>
86 ClusterAutoPatchConfig& WithDeploymentConfig(DeploymentConfigT&& value) {
87 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
88 return *this;
89 }
91 private:
93
94 ClusterPatchSchedule m_patchSchedule;
95
96 DeploymentConfiguration m_deploymentConfig;
97 bool m_patchingStrategyHasBeenSet = false;
98 bool m_patchScheduleHasBeenSet = false;
99 bool m_deploymentConfigHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SageMaker
104} // 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