AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficRoutingConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrafficRoutingConfigType.h>
9#include <aws/sagemaker/model/CapacitySize.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
34 {
35 public:
36 AWS_SAGEMAKER_API TrafficRoutingConfig();
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline const TrafficRoutingConfigType& GetType() const{ return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(const TrafficRoutingConfigType& value) { m_typeHasBeenSet = true; m_type = value; }
55 inline void SetType(TrafficRoutingConfigType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
56 inline TrafficRoutingConfig& WithType(const TrafficRoutingConfigType& value) { SetType(value); return *this;}
57 inline TrafficRoutingConfig& WithType(TrafficRoutingConfigType&& value) { SetType(std::move(value)); return *this;}
59
61
65 inline int GetWaitIntervalInSeconds() const{ return m_waitIntervalInSeconds; }
66 inline bool WaitIntervalInSecondsHasBeenSet() const { return m_waitIntervalInSecondsHasBeenSet; }
67 inline void SetWaitIntervalInSeconds(int value) { m_waitIntervalInSecondsHasBeenSet = true; m_waitIntervalInSeconds = value; }
70
72
77 inline const CapacitySize& GetCanarySize() const{ return m_canarySize; }
78 inline bool CanarySizeHasBeenSet() const { return m_canarySizeHasBeenSet; }
79 inline void SetCanarySize(const CapacitySize& value) { m_canarySizeHasBeenSet = true; m_canarySize = value; }
80 inline void SetCanarySize(CapacitySize&& value) { m_canarySizeHasBeenSet = true; m_canarySize = std::move(value); }
81 inline TrafficRoutingConfig& WithCanarySize(const CapacitySize& value) { SetCanarySize(value); return *this;}
82 inline TrafficRoutingConfig& WithCanarySize(CapacitySize&& value) { SetCanarySize(std::move(value)); return *this;}
84
86
90 inline const CapacitySize& GetLinearStepSize() const{ return m_linearStepSize; }
91 inline bool LinearStepSizeHasBeenSet() const { return m_linearStepSizeHasBeenSet; }
92 inline void SetLinearStepSize(const CapacitySize& value) { m_linearStepSizeHasBeenSet = true; m_linearStepSize = value; }
93 inline void SetLinearStepSize(CapacitySize&& value) { m_linearStepSizeHasBeenSet = true; m_linearStepSize = std::move(value); }
94 inline TrafficRoutingConfig& WithLinearStepSize(const CapacitySize& value) { SetLinearStepSize(value); return *this;}
95 inline TrafficRoutingConfig& WithLinearStepSize(CapacitySize&& value) { SetLinearStepSize(std::move(value)); return *this;}
97 private:
98
100 bool m_typeHasBeenSet = false;
101
102 int m_waitIntervalInSeconds;
103 bool m_waitIntervalInSecondsHasBeenSet = false;
104
105 CapacitySize m_canarySize;
106 bool m_canarySizeHasBeenSet = false;
107
108 CapacitySize m_linearStepSize;
109 bool m_linearStepSizeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SageMaker
114} // namespace Aws
TrafficRoutingConfig & WithType(const TrafficRoutingConfigType &value)
TrafficRoutingConfig & WithCanarySize(CapacitySize &&value)
void SetType(TrafficRoutingConfigType &&value)
TrafficRoutingConfig & WithLinearStepSize(CapacitySize &&value)
AWS_SAGEMAKER_API TrafficRoutingConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API TrafficRoutingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
TrafficRoutingConfig & WithLinearStepSize(const CapacitySize &value)
void SetType(const TrafficRoutingConfigType &value)
TrafficRoutingConfig & WithType(TrafficRoutingConfigType &&value)
void SetCanarySize(const CapacitySize &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrafficRoutingConfig & WithWaitIntervalInSeconds(int value)
const TrafficRoutingConfigType & GetType() const
TrafficRoutingConfig & WithCanarySize(const CapacitySize &value)
void SetLinearStepSize(const CapacitySize &value)
Aws::Utils::Json::JsonValue JsonValue