AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
MinimumHealthyHosts.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
32 {
33 public:
38
39
63 inline const MinimumHealthyHostsType& GetType() const{ return m_type; }
64
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89
113 inline void SetType(const MinimumHealthyHostsType& value) { m_typeHasBeenSet = true; m_type = value; }
114
138 inline void SetType(MinimumHealthyHostsType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
139
163 inline MinimumHealthyHosts& WithType(const MinimumHealthyHostsType& value) { SetType(value); return *this;}
164
188 inline MinimumHealthyHosts& WithType(MinimumHealthyHostsType&& value) { SetType(std::move(value)); return *this;}
189
190
194 inline int GetValue() const{ return m_value; }
195
199 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
200
204 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
205
209 inline MinimumHealthyHosts& WithValue(int value) { SetValue(value); return *this;}
210
211 private:
212
214 bool m_typeHasBeenSet = false;
215
216 int m_value;
217 bool m_valueHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace CodeDeploy
222} // namespace Aws
#define AWS_CODEDEPLOY_API
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(MinimumHealthyHostsType &&value)
MinimumHealthyHosts & WithType(MinimumHealthyHostsType &&value)
AWS_CODEDEPLOY_API MinimumHealthyHosts & operator=(Aws::Utils::Json::JsonView jsonValue)
MinimumHealthyHosts & WithType(const MinimumHealthyHostsType &value)
const MinimumHealthyHostsType & GetType() const
AWS_CODEDEPLOY_API MinimumHealthyHosts(Aws::Utils::Json::JsonView jsonValue)
void SetType(const MinimumHealthyHostsType &value)
MinimumHealthyHosts & WithValue(int value)