AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
InferenceComponentDeploymentConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/InferenceComponentRollingUpdatePolicy.h>
9#include <aws/sagemaker/model/AutoRollbackConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SAGEMAKER_API InferenceComponentDeploymentConfig() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const InferenceComponentRollingUpdatePolicy& GetRollingUpdatePolicy() const { return m_rollingUpdatePolicy; }
49 inline bool RollingUpdatePolicyHasBeenSet() const { return m_rollingUpdatePolicyHasBeenSet; }
50 template<typename RollingUpdatePolicyT = InferenceComponentRollingUpdatePolicy>
51 void SetRollingUpdatePolicy(RollingUpdatePolicyT&& value) { m_rollingUpdatePolicyHasBeenSet = true; m_rollingUpdatePolicy = std::forward<RollingUpdatePolicyT>(value); }
52 template<typename RollingUpdatePolicyT = InferenceComponentRollingUpdatePolicy>
53 InferenceComponentDeploymentConfig& WithRollingUpdatePolicy(RollingUpdatePolicyT&& value) { SetRollingUpdatePolicy(std::forward<RollingUpdatePolicyT>(value)); return *this;}
55
57
58 inline const AutoRollbackConfig& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
59 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
60 template<typename AutoRollbackConfigurationT = AutoRollbackConfig>
61 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value); }
62 template<typename AutoRollbackConfigurationT = AutoRollbackConfig>
63 InferenceComponentDeploymentConfig& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) { SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value)); return *this;}
65 private:
66
67 InferenceComponentRollingUpdatePolicy m_rollingUpdatePolicy;
68 bool m_rollingUpdatePolicyHasBeenSet = false;
69
70 AutoRollbackConfig m_autoRollbackConfiguration;
71 bool m_autoRollbackConfigurationHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
const InferenceComponentRollingUpdatePolicy & GetRollingUpdatePolicy() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API InferenceComponentDeploymentConfig(Aws::Utils::Json::JsonView jsonValue)
InferenceComponentDeploymentConfig & WithRollingUpdatePolicy(RollingUpdatePolicyT &&value)
AWS_SAGEMAKER_API InferenceComponentDeploymentConfig()=default
AWS_SAGEMAKER_API InferenceComponentDeploymentConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceComponentDeploymentConfig & WithAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
Aws::Utils::Json::JsonValue JsonValue