AWS SDK for C++  1.9.160
AWS SDK for C++
TrafficRoutingConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
51  inline const TrafficRoutingConfigType& GetType() const{ return m_type; }
52 
62  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 
73  inline void SetType(const TrafficRoutingConfigType& value) { m_typeHasBeenSet = true; m_type = value; }
74 
84  inline void SetType(TrafficRoutingConfigType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
85 
95  inline TrafficRoutingConfig& WithType(const TrafficRoutingConfigType& value) { SetType(value); return *this;}
96 
106  inline TrafficRoutingConfig& WithType(TrafficRoutingConfigType&& value) { SetType(std::move(value)); return *this;}
107 
108 
113  inline int GetWaitIntervalInSeconds() const{ return m_waitIntervalInSeconds; }
114 
119  inline bool WaitIntervalInSecondsHasBeenSet() const { return m_waitIntervalInSecondsHasBeenSet; }
120 
125  inline void SetWaitIntervalInSeconds(int value) { m_waitIntervalInSecondsHasBeenSet = true; m_waitIntervalInSeconds = value; }
126 
131  inline TrafficRoutingConfig& WithWaitIntervalInSeconds(int value) { SetWaitIntervalInSeconds(value); return *this;}
132 
133 
139  inline const CapacitySize& GetCanarySize() const{ return m_canarySize; }
140 
146  inline bool CanarySizeHasBeenSet() const { return m_canarySizeHasBeenSet; }
147 
153  inline void SetCanarySize(const CapacitySize& value) { m_canarySizeHasBeenSet = true; m_canarySize = value; }
154 
160  inline void SetCanarySize(CapacitySize&& value) { m_canarySizeHasBeenSet = true; m_canarySize = std::move(value); }
161 
167  inline TrafficRoutingConfig& WithCanarySize(const CapacitySize& value) { SetCanarySize(value); return *this;}
168 
174  inline TrafficRoutingConfig& WithCanarySize(CapacitySize&& value) { SetCanarySize(std::move(value)); return *this;}
175 
176 
181  inline const CapacitySize& GetLinearStepSize() const{ return m_linearStepSize; }
182 
187  inline bool LinearStepSizeHasBeenSet() const { return m_linearStepSizeHasBeenSet; }
188 
193  inline void SetLinearStepSize(const CapacitySize& value) { m_linearStepSizeHasBeenSet = true; m_linearStepSize = value; }
194 
199  inline void SetLinearStepSize(CapacitySize&& value) { m_linearStepSizeHasBeenSet = true; m_linearStepSize = std::move(value); }
200 
205  inline TrafficRoutingConfig& WithLinearStepSize(const CapacitySize& value) { SetLinearStepSize(value); return *this;}
206 
211  inline TrafficRoutingConfig& WithLinearStepSize(CapacitySize&& value) { SetLinearStepSize(std::move(value)); return *this;}
212 
213  private:
214 
216  bool m_typeHasBeenSet;
217 
218  int m_waitIntervalInSeconds;
219  bool m_waitIntervalInSecondsHasBeenSet;
220 
221  CapacitySize m_canarySize;
222  bool m_canarySizeHasBeenSet;
223 
224  CapacitySize m_linearStepSize;
225  bool m_linearStepSizeHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace SageMaker
230 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::TrafficRoutingConfig::GetWaitIntervalInSeconds
int GetWaitIntervalInSeconds() const
Definition: TrafficRoutingConfig.h:113
Aws::SageMaker::Model::TrafficRoutingConfig::WithType
TrafficRoutingConfig & WithType(TrafficRoutingConfigType &&value)
Definition: TrafficRoutingConfig.h:106
Aws::SageMaker::Model::TrafficRoutingConfig::GetLinearStepSize
const CapacitySize & GetLinearStepSize() const
Definition: TrafficRoutingConfig.h:181
Aws::SageMaker::Model::TrafficRoutingConfig::WithLinearStepSize
TrafficRoutingConfig & WithLinearStepSize(const CapacitySize &value)
Definition: TrafficRoutingConfig.h:205
Aws::SageMaker::Model::TrafficRoutingConfig::GetCanarySize
const CapacitySize & GetCanarySize() const
Definition: TrafficRoutingConfig.h:139
Aws::SageMaker::Model::TrafficRoutingConfig::GetType
const TrafficRoutingConfigType & GetType() const
Definition: TrafficRoutingConfig.h:51
Aws::SageMaker::Model::TrafficRoutingConfig::WaitIntervalInSecondsHasBeenSet
bool WaitIntervalInSecondsHasBeenSet() const
Definition: TrafficRoutingConfig.h:119
Aws::SageMaker::Model::TrafficRoutingConfig::LinearStepSizeHasBeenSet
bool LinearStepSizeHasBeenSet() const
Definition: TrafficRoutingConfig.h:187
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::TrafficRoutingConfig::SetCanarySize
void SetCanarySize(const CapacitySize &value)
Definition: TrafficRoutingConfig.h:153
Aws::SageMaker::Model::TrafficRoutingConfig::TrafficRoutingConfig
TrafficRoutingConfig()
Aws::SageMaker::Model::TrafficRoutingConfig::SetLinearStepSize
void SetLinearStepSize(CapacitySize &&value)
Definition: TrafficRoutingConfig.h:199
Aws::SageMaker::Model::TrafficRoutingConfig::SetType
void SetType(TrafficRoutingConfigType &&value)
Definition: TrafficRoutingConfig.h:84
Aws::SageMaker::Model::TrafficRoutingConfig::SetCanarySize
void SetCanarySize(CapacitySize &&value)
Definition: TrafficRoutingConfig.h:160
Aws::SageMaker::Model::TrafficRoutingConfig
Definition: TrafficRoutingConfig.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
TrafficRoutingConfigType.h
Aws::SageMaker::Model::TrafficRoutingConfig::operator=
TrafficRoutingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::TrafficRoutingConfigType
TrafficRoutingConfigType
Definition: TrafficRoutingConfigType.h:17
Aws::SageMaker::Model::TrafficRoutingConfig::SetType
void SetType(const TrafficRoutingConfigType &value)
Definition: TrafficRoutingConfig.h:73
Aws::SageMaker::Model::TrafficRoutingConfig::WithCanarySize
TrafficRoutingConfig & WithCanarySize(const CapacitySize &value)
Definition: TrafficRoutingConfig.h:167
Aws::SageMaker::Model::TrafficRoutingConfig::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: TrafficRoutingConfig.h:62
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::CapacitySize
Definition: CapacitySize.h:33
Aws::SageMaker::Model::TrafficRoutingConfig::SetWaitIntervalInSeconds
void SetWaitIntervalInSeconds(int value)
Definition: TrafficRoutingConfig.h:125
Aws::SageMaker::Model::TrafficRoutingConfig::WithCanarySize
TrafficRoutingConfig & WithCanarySize(CapacitySize &&value)
Definition: TrafficRoutingConfig.h:174
CapacitySize.h
Aws::SageMaker::Model::TrafficRoutingConfig::WithWaitIntervalInSeconds
TrafficRoutingConfig & WithWaitIntervalInSeconds(int value)
Definition: TrafficRoutingConfig.h:131
Aws::SageMaker::Model::TrafficRoutingConfig::WithType
TrafficRoutingConfig & WithType(const TrafficRoutingConfigType &value)
Definition: TrafficRoutingConfig.h:95
Aws::SageMaker::Model::TrafficRoutingConfig::WithLinearStepSize
TrafficRoutingConfig & WithLinearStepSize(CapacitySize &&value)
Definition: TrafficRoutingConfig.h:211
Aws::SageMaker::Model::TrafficRoutingConfig::SetLinearStepSize
void SetLinearStepSize(const CapacitySize &value)
Definition: TrafficRoutingConfig.h:193
Aws::SageMaker::Model::TrafficRoutingConfig::CanarySizeHasBeenSet
bool CanarySizeHasBeenSet() const
Definition: TrafficRoutingConfig.h:146
Aws::SageMaker::Model::TrafficRoutingConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::TrafficRoutingConfig::TrafficRoutingConfig
TrafficRoutingConfig(Aws::Utils::Json::JsonView jsonValue)