AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ZonalConfig.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/MinimumHealthyHostsPerZone.h>
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
43 {
44 public:
45 AWS_CODEDEPLOY_API ZonalConfig();
46 AWS_CODEDEPLOY_API ZonalConfig(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CODEDEPLOY_API ZonalConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
64 inline long long GetFirstZoneMonitorDurationInSeconds() const{ return m_firstZoneMonitorDurationInSeconds; }
65 inline bool FirstZoneMonitorDurationInSecondsHasBeenSet() const { return m_firstZoneMonitorDurationInSecondsHasBeenSet; }
66 inline void SetFirstZoneMonitorDurationInSeconds(long long value) { m_firstZoneMonitorDurationInSecondsHasBeenSet = true; m_firstZoneMonitorDurationInSeconds = value; }
69
71
83 inline long long GetMonitorDurationInSeconds() const{ return m_monitorDurationInSeconds; }
84 inline bool MonitorDurationInSecondsHasBeenSet() const { return m_monitorDurationInSecondsHasBeenSet; }
85 inline void SetMonitorDurationInSeconds(long long value) { m_monitorDurationInSecondsHasBeenSet = true; m_monitorDurationInSeconds = value; }
86 inline ZonalConfig& WithMonitorDurationInSeconds(long long value) { SetMonitorDurationInSeconds(value); return *this;}
88
90
103 inline const MinimumHealthyHostsPerZone& GetMinimumHealthyHostsPerZone() const{ return m_minimumHealthyHostsPerZone; }
104 inline bool MinimumHealthyHostsPerZoneHasBeenSet() const { return m_minimumHealthyHostsPerZoneHasBeenSet; }
105 inline void SetMinimumHealthyHostsPerZone(const MinimumHealthyHostsPerZone& value) { m_minimumHealthyHostsPerZoneHasBeenSet = true; m_minimumHealthyHostsPerZone = value; }
106 inline void SetMinimumHealthyHostsPerZone(MinimumHealthyHostsPerZone&& value) { m_minimumHealthyHostsPerZoneHasBeenSet = true; m_minimumHealthyHostsPerZone = std::move(value); }
110 private:
111
112 long long m_firstZoneMonitorDurationInSeconds;
113 bool m_firstZoneMonitorDurationInSecondsHasBeenSet = false;
114
115 long long m_monitorDurationInSeconds;
116 bool m_monitorDurationInSecondsHasBeenSet = false;
117
118 MinimumHealthyHostsPerZone m_minimumHealthyHostsPerZone;
119 bool m_minimumHealthyHostsPerZoneHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace CodeDeploy
124} // namespace Aws
const MinimumHealthyHostsPerZone & GetMinimumHealthyHostsPerZone() const
bool MonitorDurationInSecondsHasBeenSet() const
Definition ZonalConfig.h:84
bool FirstZoneMonitorDurationInSecondsHasBeenSet() const
Definition ZonalConfig.h:65
bool MinimumHealthyHostsPerZoneHasBeenSet() const
void SetFirstZoneMonitorDurationInSeconds(long long value)
Definition ZonalConfig.h:66
ZonalConfig & WithFirstZoneMonitorDurationInSeconds(long long value)
Definition ZonalConfig.h:67
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEDEPLOY_API ZonalConfig()
AWS_CODEDEPLOY_API ZonalConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API ZonalConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMinimumHealthyHostsPerZone(const MinimumHealthyHostsPerZone &value)
ZonalConfig & WithMinimumHealthyHostsPerZone(MinimumHealthyHostsPerZone &&value)
long long GetFirstZoneMonitorDurationInSeconds() const
Definition ZonalConfig.h:64
long long GetMonitorDurationInSeconds() const
Definition ZonalConfig.h:83
void SetMinimumHealthyHostsPerZone(MinimumHealthyHostsPerZone &&value)
ZonalConfig & WithMonitorDurationInSeconds(long long value)
Definition ZonalConfig.h:86
void SetMonitorDurationInSeconds(long long value)
Definition ZonalConfig.h:85
ZonalConfig & WithMinimumHealthyHostsPerZone(const MinimumHealthyHostsPerZone &value)
Aws::Utils::Json::JsonValue JsonValue