AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeploymentConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/AlarmDetails.h>
10#include <aws/sagemaker/model/RollingDeploymentPolicy.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 DeploymentConfiguration() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const RollingDeploymentPolicy& GetRollingUpdatePolicy() const { return m_rollingUpdatePolicy; }
43 inline bool RollingUpdatePolicyHasBeenSet() const { return m_rollingUpdatePolicyHasBeenSet; }
44 template <typename RollingUpdatePolicyT = RollingDeploymentPolicy>
45 void SetRollingUpdatePolicy(RollingUpdatePolicyT&& value) {
46 m_rollingUpdatePolicyHasBeenSet = true;
47 m_rollingUpdatePolicy = std::forward<RollingUpdatePolicyT>(value);
48 }
49 template <typename RollingUpdatePolicyT = RollingDeploymentPolicy>
50 DeploymentConfiguration& WithRollingUpdatePolicy(RollingUpdatePolicyT&& value) {
51 SetRollingUpdatePolicy(std::forward<RollingUpdatePolicyT>(value));
52 return *this;
53 }
55
57
61 inline int GetWaitIntervalInSeconds() const { return m_waitIntervalInSeconds; }
62 inline bool WaitIntervalInSecondsHasBeenSet() const { return m_waitIntervalInSecondsHasBeenSet; }
63 inline void SetWaitIntervalInSeconds(int value) {
64 m_waitIntervalInSecondsHasBeenSet = true;
65 m_waitIntervalInSeconds = value;
66 }
69 return *this;
70 }
72
74
78 inline const Aws::Vector<AlarmDetails>& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
79 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
80 template <typename AutoRollbackConfigurationT = Aws::Vector<AlarmDetails>>
81 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
82 m_autoRollbackConfigurationHasBeenSet = true;
83 m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value);
84 }
85 template <typename AutoRollbackConfigurationT = Aws::Vector<AlarmDetails>>
86 DeploymentConfiguration& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
87 SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value));
88 return *this;
89 }
90 template <typename AutoRollbackConfigurationT = AlarmDetails>
91 DeploymentConfiguration& AddAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
92 m_autoRollbackConfigurationHasBeenSet = true;
93 m_autoRollbackConfiguration.emplace_back(std::forward<AutoRollbackConfigurationT>(value));
94 return *this;
95 }
97 private:
98 RollingDeploymentPolicy m_rollingUpdatePolicy;
99
100 int m_waitIntervalInSeconds{0};
101
102 Aws::Vector<AlarmDetails> m_autoRollbackConfiguration;
103 bool m_rollingUpdatePolicyHasBeenSet = false;
104 bool m_waitIntervalInSecondsHasBeenSet = false;
105 bool m_autoRollbackConfigurationHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace SageMaker
110} // namespace Aws
DeploymentConfiguration & WithAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
DeploymentConfiguration & AddAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
AWS_SAGEMAKER_API DeploymentConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AlarmDetails > & GetAutoRollbackConfiguration() const
const RollingDeploymentPolicy & GetRollingUpdatePolicy() const
AWS_SAGEMAKER_API DeploymentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentConfiguration & WithWaitIntervalInSeconds(int value)
void SetRollingUpdatePolicy(RollingUpdatePolicyT &&value)
DeploymentConfiguration & WithRollingUpdatePolicy(RollingUpdatePolicyT &&value)
AWS_SAGEMAKER_API DeploymentConfiguration()=default
void SetAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue