AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeploymentConfiguration.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/RollingDeploymentPolicy.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/AlarmDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API DeploymentConfiguration() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const RollingDeploymentPolicy& GetRollingUpdatePolicy() const { return m_rollingUpdatePolicy; }
49 inline bool RollingUpdatePolicyHasBeenSet() const { return m_rollingUpdatePolicyHasBeenSet; }
50 template<typename RollingUpdatePolicyT = RollingDeploymentPolicy>
51 void SetRollingUpdatePolicy(RollingUpdatePolicyT&& value) { m_rollingUpdatePolicyHasBeenSet = true; m_rollingUpdatePolicy = std::forward<RollingUpdatePolicyT>(value); }
52 template<typename RollingUpdatePolicyT = RollingDeploymentPolicy>
53 DeploymentConfiguration& WithRollingUpdatePolicy(RollingUpdatePolicyT&& value) { SetRollingUpdatePolicy(std::forward<RollingUpdatePolicyT>(value)); return *this;}
55
57
61 inline int GetWaitIntervalInSeconds() const { return m_waitIntervalInSeconds; }
62 inline bool WaitIntervalInSecondsHasBeenSet() const { return m_waitIntervalInSecondsHasBeenSet; }
63 inline void SetWaitIntervalInSeconds(int value) { m_waitIntervalInSecondsHasBeenSet = true; m_waitIntervalInSeconds = value; }
66
68
72 inline const Aws::Vector<AlarmDetails>& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
73 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
74 template<typename AutoRollbackConfigurationT = Aws::Vector<AlarmDetails>>
75 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value); }
76 template<typename AutoRollbackConfigurationT = Aws::Vector<AlarmDetails>>
77 DeploymentConfiguration& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) { SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value)); return *this;}
78 template<typename AutoRollbackConfigurationT = AlarmDetails>
79 DeploymentConfiguration& AddAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration.emplace_back(std::forward<AutoRollbackConfigurationT>(value)); return *this; }
81 private:
82
83 RollingDeploymentPolicy m_rollingUpdatePolicy;
84 bool m_rollingUpdatePolicyHasBeenSet = false;
85
86 int m_waitIntervalInSeconds{0};
87 bool m_waitIntervalInSecondsHasBeenSet = false;
88
89 Aws::Vector<AlarmDetails> m_autoRollbackConfiguration;
90 bool m_autoRollbackConfigurationHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SageMaker
95} // 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