AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimeBasedCanary.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
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:
35 AWS_CODEDEPLOY_API TimeBasedCanary();
36 AWS_CODEDEPLOY_API TimeBasedCanary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetCanaryPercentage() const{ return m_canaryPercentage; }
47 inline bool CanaryPercentageHasBeenSet() const { return m_canaryPercentageHasBeenSet; }
48 inline void SetCanaryPercentage(int value) { m_canaryPercentageHasBeenSet = true; m_canaryPercentage = value; }
49 inline TimeBasedCanary& WithCanaryPercentage(int value) { SetCanaryPercentage(value); return *this;}
51
53
57 inline int GetCanaryInterval() const{ return m_canaryInterval; }
58 inline bool CanaryIntervalHasBeenSet() const { return m_canaryIntervalHasBeenSet; }
59 inline void SetCanaryInterval(int value) { m_canaryIntervalHasBeenSet = true; m_canaryInterval = value; }
60 inline TimeBasedCanary& WithCanaryInterval(int value) { SetCanaryInterval(value); return *this;}
62 private:
63
64 int m_canaryPercentage;
65 bool m_canaryPercentageHasBeenSet = false;
66
67 int m_canaryInterval;
68 bool m_canaryIntervalHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace CodeDeploy
73} // namespace Aws
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)
Aws::Utils::Json::JsonValue JsonValue