AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API MinimumHealthyHosts() = default;
31 AWS_CODEDEPLOY_API MinimumHealthyHosts(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() 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 int GetValue() const { return m_value; }
76 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
77 inline void SetValue(int value) {
78 m_valueHasBeenSet = true;
79 m_value = value;
80 }
81 inline MinimumHealthyHosts& WithValue(int value) {
82 SetValue(value);
83 return *this;
84 }
86 private:
88
89 int m_value{0};
90 bool m_typeHasBeenSet = false;
91 bool m_valueHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace CodeDeploy
96} // namespace Aws
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(MinimumHealthyHostsType value)
AWS_CODEDEPLOY_API MinimumHealthyHosts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API MinimumHealthyHosts()=default
MinimumHealthyHosts & WithType(MinimumHealthyHostsType value)
AWS_CODEDEPLOY_API MinimumHealthyHosts(Aws::Utils::Json::JsonView jsonValue)
MinimumHealthyHosts & WithValue(int value)
Aws::Utils::Json::JsonValue JsonValue