AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
MinimumHealthyHosts.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/MinimumHealthyHostsType.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API MinimumHealthyHosts() = default;
31 AWS_CODEDEPLOY_API MinimumHealthyHosts(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEDEPLOY_API MinimumHealthyHosts& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
59 inline MinimumHealthyHostsType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(MinimumHealthyHostsType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
75 inline int64_t GetValue() const { return m_value; }
76 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
77 inline void SetValue(int64_t value) {
78 m_valueHasBeenSet = true;
79 m_value = value;
80 }
81 inline MinimumHealthyHosts& WithValue(int64_t value) {
82 SetValue(value);
83 return *this;
84 }
86 private:
88
89 int64_t m_value{0};
90 bool m_typeHasBeenSet = false;
91 bool m_valueHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace CodeDeploy
96} // namespace Aws
void SetType(MinimumHealthyHostsType value)
AWS_CODEDEPLOY_API MinimumHealthyHosts & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API MinimumHealthyHosts()=default
MinimumHealthyHosts & WithType(MinimumHealthyHostsType value)
MinimumHealthyHosts & WithValue(int64_t value)
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CODEDEPLOY_API MinimumHealthyHosts(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)