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/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/TrafficRoutingType.h>
9#include <aws/codedeploy/model/TimeBasedCanary.h>
10#include <aws/codedeploy/model/TimeBasedLinear.h>
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:
39 AWS_CODEDEPLOY_API TrafficRoutingConfig();
40 AWS_CODEDEPLOY_API TrafficRoutingConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const TrafficRoutingType& GetType() const{ return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(const TrafficRoutingType& value) { m_typeHasBeenSet = true; m_type = value; }
53 inline void SetType(TrafficRoutingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
54 inline TrafficRoutingConfig& WithType(const TrafficRoutingType& value) { SetType(value); return *this;}
55 inline TrafficRoutingConfig& WithType(TrafficRoutingType&& value) { SetType(std::move(value)); return *this;}
57
59
65 inline const TimeBasedCanary& GetTimeBasedCanary() const{ return m_timeBasedCanary; }
66 inline bool TimeBasedCanaryHasBeenSet() const { return m_timeBasedCanaryHasBeenSet; }
67 inline void SetTimeBasedCanary(const TimeBasedCanary& value) { m_timeBasedCanaryHasBeenSet = true; m_timeBasedCanary = value; }
68 inline void SetTimeBasedCanary(TimeBasedCanary&& value) { m_timeBasedCanaryHasBeenSet = true; m_timeBasedCanary = std::move(value); }
69 inline TrafficRoutingConfig& WithTimeBasedCanary(const TimeBasedCanary& value) { SetTimeBasedCanary(value); return *this;}
70 inline TrafficRoutingConfig& WithTimeBasedCanary(TimeBasedCanary&& value) { SetTimeBasedCanary(std::move(value)); return *this;}
72
74
80 inline const TimeBasedLinear& GetTimeBasedLinear() const{ return m_timeBasedLinear; }
81 inline bool TimeBasedLinearHasBeenSet() const { return m_timeBasedLinearHasBeenSet; }
82 inline void SetTimeBasedLinear(const TimeBasedLinear& value) { m_timeBasedLinearHasBeenSet = true; m_timeBasedLinear = value; }
83 inline void SetTimeBasedLinear(TimeBasedLinear&& value) { m_timeBasedLinearHasBeenSet = true; m_timeBasedLinear = std::move(value); }
84 inline TrafficRoutingConfig& WithTimeBasedLinear(const TimeBasedLinear& value) { SetTimeBasedLinear(value); return *this;}
85 inline TrafficRoutingConfig& WithTimeBasedLinear(TimeBasedLinear&& value) { SetTimeBasedLinear(std::move(value)); return *this;}
87 private:
88
89 TrafficRoutingType m_type;
90 bool m_typeHasBeenSet = false;
91
92 TimeBasedCanary m_timeBasedCanary;
93 bool m_timeBasedCanaryHasBeenSet = false;
94
95 TimeBasedLinear m_timeBasedLinear;
96 bool m_timeBasedLinearHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CodeDeploy
101} // namespace Aws
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(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)
TrafficRoutingConfig & WithType(TrafficRoutingType &&value)
TrafficRoutingConfig & WithTimeBasedCanary(TimeBasedCanary &&value)
Aws::Utils::Json::JsonValue JsonValue