AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TimeBasedLinear.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/crt/cbor/Cbor.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace CodeDeploy {
17namespace Model {
18
29 public:
30 AWS_CODEDEPLOY_API TimeBasedLinear() = default;
31 AWS_CODEDEPLOY_API TimeBasedLinear(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEDEPLOY_API TimeBasedLinear& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline int64_t GetLinearPercentage() const { return m_linearPercentage; }
41 inline bool LinearPercentageHasBeenSet() const { return m_linearPercentageHasBeenSet; }
42 inline void SetLinearPercentage(int64_t value) {
43 m_linearPercentageHasBeenSet = true;
44 m_linearPercentage = value;
45 }
46 inline TimeBasedLinear& WithLinearPercentage(int64_t value) {
48 return *this;
49 }
51
53
57 inline int64_t GetLinearInterval() const { return m_linearInterval; }
58 inline bool LinearIntervalHasBeenSet() const { return m_linearIntervalHasBeenSet; }
59 inline void SetLinearInterval(int64_t value) {
60 m_linearIntervalHasBeenSet = true;
61 m_linearInterval = value;
62 }
63 inline TimeBasedLinear& WithLinearInterval(int64_t value) {
64 SetLinearInterval(value);
65 return *this;
66 }
68 private:
69 int64_t m_linearPercentage{0};
70
71 int64_t m_linearInterval{0};
72 bool m_linearPercentageHasBeenSet = false;
73 bool m_linearIntervalHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CodeDeploy
78} // namespace Aws
TimeBasedLinear & WithLinearPercentage(int64_t value)
AWS_CODEDEPLOY_API TimeBasedLinear()=default
AWS_CODEDEPLOY_API TimeBasedLinear(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API TimeBasedLinear & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
TimeBasedLinear & WithLinearInterval(int64_t value)