AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DeploymentConfiguration.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
35 {
36 public:
41
42
53 inline const DeploymentCircuitBreaker& GetDeploymentCircuitBreaker() const{ return m_deploymentCircuitBreaker; }
54
65 inline bool DeploymentCircuitBreakerHasBeenSet() const { return m_deploymentCircuitBreakerHasBeenSet; }
66
77 inline void SetDeploymentCircuitBreaker(const DeploymentCircuitBreaker& value) { m_deploymentCircuitBreakerHasBeenSet = true; m_deploymentCircuitBreaker = value; }
78
89 inline void SetDeploymentCircuitBreaker(DeploymentCircuitBreaker&& value) { m_deploymentCircuitBreakerHasBeenSet = true; m_deploymentCircuitBreaker = std::move(value); }
90
102
114
115
138 inline int GetMaximumPercent() const{ return m_maximumPercent; }
139
162 inline bool MaximumPercentHasBeenSet() const { return m_maximumPercentHasBeenSet; }
163
186 inline void SetMaximumPercent(int value) { m_maximumPercentHasBeenSet = true; m_maximumPercent = value; }
187
210 inline DeploymentConfiguration& WithMaximumPercent(int value) { SetMaximumPercent(value); return *this;}
211
212
254 inline int GetMinimumHealthyPercent() const{ return m_minimumHealthyPercent; }
255
297 inline bool MinimumHealthyPercentHasBeenSet() const { return m_minimumHealthyPercentHasBeenSet; }
298
340 inline void SetMinimumHealthyPercent(int value) { m_minimumHealthyPercentHasBeenSet = true; m_minimumHealthyPercent = value; }
341
384
385
389 inline const DeploymentAlarms& GetAlarms() const{ return m_alarms; }
390
394 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
395
399 inline void SetAlarms(const DeploymentAlarms& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
400
404 inline void SetAlarms(DeploymentAlarms&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
405
409 inline DeploymentConfiguration& WithAlarms(const DeploymentAlarms& value) { SetAlarms(value); return *this;}
410
414 inline DeploymentConfiguration& WithAlarms(DeploymentAlarms&& value) { SetAlarms(std::move(value)); return *this;}
415
416 private:
417
418 DeploymentCircuitBreaker m_deploymentCircuitBreaker;
419 bool m_deploymentCircuitBreakerHasBeenSet = false;
420
421 int m_maximumPercent;
422 bool m_maximumPercentHasBeenSet = false;
423
424 int m_minimumHealthyPercent;
425 bool m_minimumHealthyPercentHasBeenSet = false;
426
427 DeploymentAlarms m_alarms;
428 bool m_alarmsHasBeenSet = false;
429 };
430
431} // namespace Model
432} // namespace ECS
433} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetDeploymentCircuitBreaker(const DeploymentCircuitBreaker &value)
DeploymentConfiguration & WithMaximumPercent(int value)
DeploymentConfiguration & WithAlarms(DeploymentAlarms &&value)
DeploymentConfiguration & WithDeploymentCircuitBreaker(DeploymentCircuitBreaker &&value)
AWS_ECS_API DeploymentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentConfiguration & WithDeploymentCircuitBreaker(const DeploymentCircuitBreaker &value)
DeploymentConfiguration & WithAlarms(const DeploymentAlarms &value)
void SetAlarms(const DeploymentAlarms &value)
AWS_ECS_API DeploymentConfiguration(Aws::Utils::Json::JsonView jsonValue)
DeploymentConfiguration & WithMinimumHealthyPercent(int value)
const DeploymentAlarms & GetAlarms() const
void SetDeploymentCircuitBreaker(DeploymentCircuitBreaker &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const DeploymentCircuitBreaker & GetDeploymentCircuitBreaker() const