AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
TimeBasedCanary.h
Go to the documentation of this file.
1
6#pragma once
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy
20{
21namespace Model
22{
23
33 {
34 public:
39
40
45 inline int GetCanaryPercentage() const{ return m_canaryPercentage; }
46
51 inline bool CanaryPercentageHasBeenSet() const { return m_canaryPercentageHasBeenSet; }
52
57 inline void SetCanaryPercentage(int value) { m_canaryPercentageHasBeenSet = true; m_canaryPercentage = value; }
58
63 inline TimeBasedCanary& WithCanaryPercentage(int value) { SetCanaryPercentage(value); return *this;}
64
65
70 inline int GetCanaryInterval() const{ return m_canaryInterval; }
71
76 inline bool CanaryIntervalHasBeenSet() const { return m_canaryIntervalHasBeenSet; }
77
82 inline void SetCanaryInterval(int value) { m_canaryIntervalHasBeenSet = true; m_canaryInterval = value; }
83
88 inline TimeBasedCanary& WithCanaryInterval(int value) { SetCanaryInterval(value); return *this;}
89
90 private:
91
92 int m_canaryPercentage;
93 bool m_canaryPercentageHasBeenSet = false;
94
95 int m_canaryInterval;
96 bool m_canaryIntervalHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CodeDeploy
101} // namespace Aws
#define AWS_CODEDEPLOY_API
AWS_CODEDEPLOY_API TimeBasedCanary & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeBasedCanary & WithCanaryPercentage(int value)
AWS_CODEDEPLOY_API TimeBasedCanary(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
TimeBasedCanary & WithCanaryInterval(int value)