AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
TrafficRoutingConfig.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeDeploy
24{
25namespace Model
26{
27
37 {
38 public:
43
44
49 inline const TrafficRoutingType& GetType() const{ return m_type; }
50
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56
61 inline void SetType(const TrafficRoutingType& value) { m_typeHasBeenSet = true; m_type = value; }
62
67 inline void SetType(TrafficRoutingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68
73 inline TrafficRoutingConfig& WithType(const TrafficRoutingType& value) { SetType(value); return *this;}
74
79 inline TrafficRoutingConfig& WithType(TrafficRoutingType&& value) { SetType(std::move(value)); return *this;}
80
81
88 inline const TimeBasedCanary& GetTimeBasedCanary() const{ return m_timeBasedCanary; }
89
96 inline bool TimeBasedCanaryHasBeenSet() const { return m_timeBasedCanaryHasBeenSet; }
97
104 inline void SetTimeBasedCanary(const TimeBasedCanary& value) { m_timeBasedCanaryHasBeenSet = true; m_timeBasedCanary = value; }
105
112 inline void SetTimeBasedCanary(TimeBasedCanary&& value) { m_timeBasedCanaryHasBeenSet = true; m_timeBasedCanary = std::move(value); }
113
120 inline TrafficRoutingConfig& WithTimeBasedCanary(const TimeBasedCanary& value) { SetTimeBasedCanary(value); return *this;}
121
128 inline TrafficRoutingConfig& WithTimeBasedCanary(TimeBasedCanary&& value) { SetTimeBasedCanary(std::move(value)); return *this;}
129
130
137 inline const TimeBasedLinear& GetTimeBasedLinear() const{ return m_timeBasedLinear; }
138
145 inline bool TimeBasedLinearHasBeenSet() const { return m_timeBasedLinearHasBeenSet; }
146
153 inline void SetTimeBasedLinear(const TimeBasedLinear& value) { m_timeBasedLinearHasBeenSet = true; m_timeBasedLinear = value; }
154
161 inline void SetTimeBasedLinear(TimeBasedLinear&& value) { m_timeBasedLinearHasBeenSet = true; m_timeBasedLinear = std::move(value); }
162
169 inline TrafficRoutingConfig& WithTimeBasedLinear(const TimeBasedLinear& value) { SetTimeBasedLinear(value); return *this;}
170
177 inline TrafficRoutingConfig& WithTimeBasedLinear(TimeBasedLinear&& value) { SetTimeBasedLinear(std::move(value)); return *this;}
178
179 private:
180
181 TrafficRoutingType m_type;
182 bool m_typeHasBeenSet = false;
183
184 TimeBasedCanary m_timeBasedCanary;
185 bool m_timeBasedCanaryHasBeenSet = false;
186
187 TimeBasedLinear m_timeBasedLinear;
188 bool m_timeBasedLinearHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace CodeDeploy
193} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetTimeBasedCanary(const TimeBasedCanary &value)
AWS_CODEDEPLOY_API TrafficRoutingConfig(Aws::Utils::Json::JsonView jsonValue)
const TrafficRoutingType & GetType() const
void SetType(const TrafficRoutingType &value)
TrafficRoutingConfig & WithType(const TrafficRoutingType &value)
void SetTimeBasedLinear(TimeBasedLinear &&value)
void SetTimeBasedLinear(const TimeBasedLinear &value)
AWS_CODEDEPLOY_API TrafficRoutingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const TimeBasedCanary & GetTimeBasedCanary() const
TrafficRoutingConfig & WithTimeBasedLinear(TimeBasedLinear &&value)
TrafficRoutingConfig & WithTimeBasedCanary(const TimeBasedCanary &value)
const TimeBasedLinear & GetTimeBasedLinear() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
TrafficRoutingConfig & WithTimeBasedLinear(const TimeBasedLinear &value)
void SetTimeBasedCanary(TimeBasedCanary &&value)
TrafficRoutingConfig & WithType(TrafficRoutingType &&value)
TrafficRoutingConfig & WithTimeBasedCanary(TimeBasedCanary &&value)
void SetType(TrafficRoutingType &&value)