AWS SDK for C++

AWS SDK for C++ Version 1.11.835

Loading...
Searching...
No Matches
ClusterAutoPatchConfigDetails.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClusterPatchScheduleDetails.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
31 public:
32 AWS_SAGEMAKER_API ClusterAutoPatchConfigDetails() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ClusterPatchingStrategy GetPatchingStrategy() const { return m_patchingStrategy; }
42 inline bool PatchingStrategyHasBeenSet() const { return m_patchingStrategyHasBeenSet; }
44 m_patchingStrategyHasBeenSet = true;
45 m_patchingStrategy = value;
46 }
49 return *this;
50 }
52
54
57 inline const ClusterPatchScheduleDetails& GetCurrentPatchSchedule() const { return m_currentPatchSchedule; }
58 inline bool CurrentPatchScheduleHasBeenSet() const { return m_currentPatchScheduleHasBeenSet; }
59 template <typename CurrentPatchScheduleT = ClusterPatchScheduleDetails>
60 void SetCurrentPatchSchedule(CurrentPatchScheduleT&& value) {
61 m_currentPatchScheduleHasBeenSet = true;
62 m_currentPatchSchedule = std::forward<CurrentPatchScheduleT>(value);
63 }
64 template <typename CurrentPatchScheduleT = ClusterPatchScheduleDetails>
66 SetCurrentPatchSchedule(std::forward<CurrentPatchScheduleT>(value));
67 return *this;
68 }
70
72
76 inline const ClusterPatchScheduleDetails& GetDesiredPatchSchedule() const { return m_desiredPatchSchedule; }
77 inline bool DesiredPatchScheduleHasBeenSet() const { return m_desiredPatchScheduleHasBeenSet; }
78 template <typename DesiredPatchScheduleT = ClusterPatchScheduleDetails>
79 void SetDesiredPatchSchedule(DesiredPatchScheduleT&& value) {
80 m_desiredPatchScheduleHasBeenSet = true;
81 m_desiredPatchSchedule = std::forward<DesiredPatchScheduleT>(value);
82 }
83 template <typename DesiredPatchScheduleT = ClusterPatchScheduleDetails>
85 SetDesiredPatchSchedule(std::forward<DesiredPatchScheduleT>(value));
86 return *this;
87 }
89
91
94 inline const DeploymentConfiguration& GetDeploymentConfig() const { return m_deploymentConfig; }
95 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
96 template <typename DeploymentConfigT = DeploymentConfiguration>
97 void SetDeploymentConfig(DeploymentConfigT&& value) {
98 m_deploymentConfigHasBeenSet = true;
99 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
100 }
101 template <typename DeploymentConfigT = DeploymentConfiguration>
103 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
104 return *this;
105 }
107 private:
109
110 ClusterPatchScheduleDetails m_currentPatchSchedule;
111
112 ClusterPatchScheduleDetails m_desiredPatchSchedule;
113
114 DeploymentConfiguration m_deploymentConfig;
115 bool m_patchingStrategyHasBeenSet = false;
116 bool m_currentPatchScheduleHasBeenSet = false;
117 bool m_desiredPatchScheduleHasBeenSet = false;
118 bool m_deploymentConfigHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace SageMaker
123} // namespace Aws
const ClusterPatchScheduleDetails & GetDesiredPatchSchedule() const
ClusterAutoPatchConfigDetails & WithDeploymentConfig(DeploymentConfigT &&value)
ClusterAutoPatchConfigDetails & WithCurrentPatchSchedule(CurrentPatchScheduleT &&value)
ClusterAutoPatchConfigDetails & WithPatchingStrategy(ClusterPatchingStrategy value)
AWS_SAGEMAKER_API ClusterAutoPatchConfigDetails(Aws::Utils::Json::JsonView jsonValue)
ClusterAutoPatchConfigDetails & WithDesiredPatchSchedule(DesiredPatchScheduleT &&value)
const ClusterPatchScheduleDetails & GetCurrentPatchSchedule() const
AWS_SAGEMAKER_API ClusterAutoPatchConfigDetails()=default
AWS_SAGEMAKER_API ClusterAutoPatchConfigDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue