AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TimeBasedCanary.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CodeDeploy {
17namespace Model {
18
28 public:
29 AWS_CODEDEPLOY_API TimeBasedCanary() = default;
30 AWS_CODEDEPLOY_API TimeBasedCanary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline int GetCanaryPercentage() const { return m_canaryPercentage; }
40 inline bool CanaryPercentageHasBeenSet() const { return m_canaryPercentageHasBeenSet; }
41 inline void SetCanaryPercentage(int value) {
42 m_canaryPercentageHasBeenSet = true;
43 m_canaryPercentage = value;
44 }
47 return *this;
48 }
50
52
56 inline int GetCanaryInterval() const { return m_canaryInterval; }
57 inline bool CanaryIntervalHasBeenSet() const { return m_canaryIntervalHasBeenSet; }
58 inline void SetCanaryInterval(int value) {
59 m_canaryIntervalHasBeenSet = true;
60 m_canaryInterval = value;
61 }
63 SetCanaryInterval(value);
64 return *this;
65 }
67 private:
68 int m_canaryPercentage{0};
69
70 int m_canaryInterval{0};
71 bool m_canaryPercentageHasBeenSet = false;
72 bool m_canaryIntervalHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace CodeDeploy
77} // namespace Aws
AWS_CODEDEPLOY_API TimeBasedCanary()=default
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