AWS SDK for C++

AWS SDK for C++ Version 1.11.866

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
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 ClusterPatchScheduleDetails& GetCurrentPatchSchedule() const { return m_currentPatchSchedule; }
68 inline bool CurrentPatchScheduleHasBeenSet() const { return m_currentPatchScheduleHasBeenSet; }
69 template <typename CurrentPatchScheduleT = ClusterPatchScheduleDetails>
70 void SetCurrentPatchSchedule(CurrentPatchScheduleT&& value) {
71 m_currentPatchScheduleHasBeenSet = true;
72 m_currentPatchSchedule = std::forward<CurrentPatchScheduleT>(value);
73 }
74 template <typename CurrentPatchScheduleT = ClusterPatchScheduleDetails>
76 SetCurrentPatchSchedule(std::forward<CurrentPatchScheduleT>(value));
77 return *this;
78 }
80
82
86 inline const ClusterPatchScheduleDetails& GetDesiredPatchSchedule() const { return m_desiredPatchSchedule; }
87 inline bool DesiredPatchScheduleHasBeenSet() const { return m_desiredPatchScheduleHasBeenSet; }
88 template <typename DesiredPatchScheduleT = ClusterPatchScheduleDetails>
89 void SetDesiredPatchSchedule(DesiredPatchScheduleT&& value) {
90 m_desiredPatchScheduleHasBeenSet = true;
91 m_desiredPatchSchedule = std::forward<DesiredPatchScheduleT>(value);
92 }
93 template <typename DesiredPatchScheduleT = ClusterPatchScheduleDetails>
95 SetDesiredPatchSchedule(std::forward<DesiredPatchScheduleT>(value));
96 return *this;
97 }
99
101
104 inline const DeploymentConfiguration& GetDeploymentConfig() const { return m_deploymentConfig; }
105 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
106 template <typename DeploymentConfigT = DeploymentConfiguration>
107 void SetDeploymentConfig(DeploymentConfigT&& value) {
108 m_deploymentConfigHasBeenSet = true;
109 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
110 }
111 template <typename DeploymentConfigT = DeploymentConfiguration>
113 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
114 return *this;
115 }
117 private:
119
120 ClusterPatchScheduleDetails m_currentPatchSchedule;
121
122 ClusterPatchScheduleDetails m_desiredPatchSchedule;
123
124 DeploymentConfiguration m_deploymentConfig;
125 bool m_patchingStrategyHasBeenSet = false;
126 bool m_currentPatchScheduleHasBeenSet = false;
127 bool m_desiredPatchScheduleHasBeenSet = false;
128 bool m_deploymentConfigHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace SageMaker
133} // 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