AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BlueGreenUpdatePolicy.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrafficRoutingConfig.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_SAGEMAKER_API BlueGreenUpdatePolicy();
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const TrafficRoutingConfig& GetTrafficRoutingConfiguration() const{ return m_trafficRoutingConfiguration; }
52 inline bool TrafficRoutingConfigurationHasBeenSet() const { return m_trafficRoutingConfigurationHasBeenSet; }
53 inline void SetTrafficRoutingConfiguration(const TrafficRoutingConfig& value) { m_trafficRoutingConfigurationHasBeenSet = true; m_trafficRoutingConfiguration = value; }
54 inline void SetTrafficRoutingConfiguration(TrafficRoutingConfig&& value) { m_trafficRoutingConfigurationHasBeenSet = true; m_trafficRoutingConfiguration = std::move(value); }
58
60
64 inline int GetTerminationWaitInSeconds() const{ return m_terminationWaitInSeconds; }
65 inline bool TerminationWaitInSecondsHasBeenSet() const { return m_terminationWaitInSecondsHasBeenSet; }
66 inline void SetTerminationWaitInSeconds(int value) { m_terminationWaitInSecondsHasBeenSet = true; m_terminationWaitInSeconds = value; }
69
71
77 inline int GetMaximumExecutionTimeoutInSeconds() const{ return m_maximumExecutionTimeoutInSeconds; }
78 inline bool MaximumExecutionTimeoutInSecondsHasBeenSet() const { return m_maximumExecutionTimeoutInSecondsHasBeenSet; }
79 inline void SetMaximumExecutionTimeoutInSeconds(int value) { m_maximumExecutionTimeoutInSecondsHasBeenSet = true; m_maximumExecutionTimeoutInSeconds = value; }
82 private:
83
84 TrafficRoutingConfig m_trafficRoutingConfiguration;
85 bool m_trafficRoutingConfigurationHasBeenSet = false;
86
87 int m_terminationWaitInSeconds;
88 bool m_terminationWaitInSecondsHasBeenSet = false;
89
90 int m_maximumExecutionTimeoutInSeconds;
91 bool m_maximumExecutionTimeoutInSecondsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SageMaker
96} // namespace Aws
BlueGreenUpdatePolicy & WithTrafficRoutingConfiguration(const TrafficRoutingConfig &value)
const TrafficRoutingConfig & GetTrafficRoutingConfiguration() const
AWS_SAGEMAKER_API BlueGreenUpdatePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API BlueGreenUpdatePolicy(Aws::Utils::Json::JsonView jsonValue)
BlueGreenUpdatePolicy & WithMaximumExecutionTimeoutInSeconds(int value)
BlueGreenUpdatePolicy & WithTrafficRoutingConfiguration(TrafficRoutingConfig &&value)
BlueGreenUpdatePolicy & WithTerminationWaitInSeconds(int value)
void SetTrafficRoutingConfiguration(TrafficRoutingConfig &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTrafficRoutingConfiguration(const TrafficRoutingConfig &value)
Aws::Utils::Json::JsonValue JsonValue