AWS SDK for C++  1.9.160
AWS SDK for C++
BlueGreenUpdatePolicy.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SageMaker
22 {
23 namespace Model
24 {
25 
38  {
39  public:
44 
45 
50  inline const TrafficRoutingConfig& GetTrafficRoutingConfiguration() const{ return m_trafficRoutingConfiguration; }
51 
56  inline bool TrafficRoutingConfigurationHasBeenSet() const { return m_trafficRoutingConfigurationHasBeenSet; }
57 
62  inline void SetTrafficRoutingConfiguration(const TrafficRoutingConfig& value) { m_trafficRoutingConfigurationHasBeenSet = true; m_trafficRoutingConfiguration = value; }
63 
68  inline void SetTrafficRoutingConfiguration(TrafficRoutingConfig&& value) { m_trafficRoutingConfigurationHasBeenSet = true; m_trafficRoutingConfiguration = std::move(value); }
69 
74  inline BlueGreenUpdatePolicy& WithTrafficRoutingConfiguration(const TrafficRoutingConfig& value) { SetTrafficRoutingConfiguration(value); return *this;}
75 
80  inline BlueGreenUpdatePolicy& WithTrafficRoutingConfiguration(TrafficRoutingConfig&& value) { SetTrafficRoutingConfiguration(std::move(value)); return *this;}
81 
82 
87  inline int GetTerminationWaitInSeconds() const{ return m_terminationWaitInSeconds; }
88 
93  inline bool TerminationWaitInSecondsHasBeenSet() const { return m_terminationWaitInSecondsHasBeenSet; }
94 
99  inline void SetTerminationWaitInSeconds(int value) { m_terminationWaitInSecondsHasBeenSet = true; m_terminationWaitInSeconds = value; }
100 
105  inline BlueGreenUpdatePolicy& WithTerminationWaitInSeconds(int value) { SetTerminationWaitInSeconds(value); return *this;}
106 
107 
114  inline int GetMaximumExecutionTimeoutInSeconds() const{ return m_maximumExecutionTimeoutInSeconds; }
115 
122  inline bool MaximumExecutionTimeoutInSecondsHasBeenSet() const { return m_maximumExecutionTimeoutInSecondsHasBeenSet; }
123 
130  inline void SetMaximumExecutionTimeoutInSeconds(int value) { m_maximumExecutionTimeoutInSecondsHasBeenSet = true; m_maximumExecutionTimeoutInSeconds = value; }
131 
138  inline BlueGreenUpdatePolicy& WithMaximumExecutionTimeoutInSeconds(int value) { SetMaximumExecutionTimeoutInSeconds(value); return *this;}
139 
140  private:
141 
142  TrafficRoutingConfig m_trafficRoutingConfiguration;
143  bool m_trafficRoutingConfigurationHasBeenSet;
144 
145  int m_terminationWaitInSeconds;
146  bool m_terminationWaitInSecondsHasBeenSet;
147 
148  int m_maximumExecutionTimeoutInSeconds;
149  bool m_maximumExecutionTimeoutInSecondsHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace SageMaker
154 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::BlueGreenUpdatePolicy::WithMaximumExecutionTimeoutInSeconds
BlueGreenUpdatePolicy & WithMaximumExecutionTimeoutInSeconds(int value)
Definition: BlueGreenUpdatePolicy.h:138
SageMaker_EXPORTS.h
Aws::SageMaker::Model::BlueGreenUpdatePolicy::SetTrafficRoutingConfiguration
void SetTrafficRoutingConfiguration(TrafficRoutingConfig &&value)
Definition: BlueGreenUpdatePolicy.h:68
Aws::SageMaker::Model::BlueGreenUpdatePolicy::GetMaximumExecutionTimeoutInSeconds
int GetMaximumExecutionTimeoutInSeconds() const
Definition: BlueGreenUpdatePolicy.h:114
Aws::SageMaker::Model::BlueGreenUpdatePolicy::GetTerminationWaitInSeconds
int GetTerminationWaitInSeconds() const
Definition: BlueGreenUpdatePolicy.h:87
Aws::SageMaker::Model::BlueGreenUpdatePolicy::TerminationWaitInSecondsHasBeenSet
bool TerminationWaitInSecondsHasBeenSet() const
Definition: BlueGreenUpdatePolicy.h:93
TrafficRoutingConfig.h
Aws::SageMaker::Model::BlueGreenUpdatePolicy::SetMaximumExecutionTimeoutInSeconds
void SetMaximumExecutionTimeoutInSeconds(int value)
Definition: BlueGreenUpdatePolicy.h:130
Aws::SageMaker::Model::BlueGreenUpdatePolicy::SetTrafficRoutingConfiguration
void SetTrafficRoutingConfiguration(const TrafficRoutingConfig &value)
Definition: BlueGreenUpdatePolicy.h:62
Aws::SageMaker::Model::BlueGreenUpdatePolicy::WithTerminationWaitInSeconds
BlueGreenUpdatePolicy & WithTerminationWaitInSeconds(int value)
Definition: BlueGreenUpdatePolicy.h:105
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::BlueGreenUpdatePolicy::WithTrafficRoutingConfiguration
BlueGreenUpdatePolicy & WithTrafficRoutingConfiguration(const TrafficRoutingConfig &value)
Definition: BlueGreenUpdatePolicy.h:74
Aws::SageMaker::Model::BlueGreenUpdatePolicy::BlueGreenUpdatePolicy
BlueGreenUpdatePolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::TrafficRoutingConfig
Definition: TrafficRoutingConfig.h:34
Aws::SageMaker::Model::BlueGreenUpdatePolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::BlueGreenUpdatePolicy::MaximumExecutionTimeoutInSecondsHasBeenSet
bool MaximumExecutionTimeoutInSecondsHasBeenSet() const
Definition: BlueGreenUpdatePolicy.h:122
Aws::SageMaker::Model::BlueGreenUpdatePolicy
Definition: BlueGreenUpdatePolicy.h:38
Aws::SageMaker::Model::BlueGreenUpdatePolicy::TrafficRoutingConfigurationHasBeenSet
bool TrafficRoutingConfigurationHasBeenSet() const
Definition: BlueGreenUpdatePolicy.h:56
Aws::SageMaker::Model::BlueGreenUpdatePolicy::SetTerminationWaitInSeconds
void SetTerminationWaitInSeconds(int value)
Definition: BlueGreenUpdatePolicy.h:99
Aws::SageMaker::Model::BlueGreenUpdatePolicy::GetTrafficRoutingConfiguration
const TrafficRoutingConfig & GetTrafficRoutingConfiguration() const
Definition: BlueGreenUpdatePolicy.h:50
Aws::SageMaker::Model::BlueGreenUpdatePolicy::operator=
BlueGreenUpdatePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::BlueGreenUpdatePolicy::BlueGreenUpdatePolicy
BlueGreenUpdatePolicy()
Aws::SageMaker::Model::BlueGreenUpdatePolicy::WithTrafficRoutingConfiguration
BlueGreenUpdatePolicy & WithTrafficRoutingConfiguration(TrafficRoutingConfig &&value)
Definition: BlueGreenUpdatePolicy.h:80