AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TimeBasedLinear.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
29 public:
30 AWS_CODEDEPLOY_API TimeBasedLinear() = default;
31 AWS_CODEDEPLOY_API TimeBasedLinear(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline int GetLinearPercentage() const { return m_linearPercentage; }
41 inline bool LinearPercentageHasBeenSet() const { return m_linearPercentageHasBeenSet; }
42 inline void SetLinearPercentage(int value) {
43 m_linearPercentageHasBeenSet = true;
44 m_linearPercentage = value;
45 }
48 return *this;
49 }
51
53
57 inline int GetLinearInterval() const { return m_linearInterval; }
58 inline bool LinearIntervalHasBeenSet() const { return m_linearIntervalHasBeenSet; }
59 inline void SetLinearInterval(int value) {
60 m_linearIntervalHasBeenSet = true;
61 m_linearInterval = value;
62 }
64 SetLinearInterval(value);
65 return *this;
66 }
68 private:
69 int m_linearPercentage{0};
70
71 int m_linearInterval{0};
72 bool m_linearPercentageHasBeenSet = false;
73 bool m_linearIntervalHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CodeDeploy
78} // namespace Aws
AWS_CODEDEPLOY_API TimeBasedLinear()=default
AWS_CODEDEPLOY_API TimeBasedLinear(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API TimeBasedLinear & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeBasedLinear & WithLinearInterval(int value)
TimeBasedLinear & WithLinearPercentage(int value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue