AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DeploymentConfiguration.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/DeploymentProtectionStrategy.h>
9#include <aws/gamelift/model/DeploymentImpairmentStrategy.h>
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 GameLift
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GAMELIFT_API DeploymentConfiguration() = default;
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
51 inline DeploymentProtectionStrategy GetProtectionStrategy() const { return m_protectionStrategy; }
52 inline bool ProtectionStrategyHasBeenSet() const { return m_protectionStrategyHasBeenSet; }
53 inline void SetProtectionStrategy(DeploymentProtectionStrategy value) { m_protectionStrategyHasBeenSet = true; m_protectionStrategy = value; }
56
58
62 inline int GetMinimumHealthyPercentage() const { return m_minimumHealthyPercentage; }
63 inline bool MinimumHealthyPercentageHasBeenSet() const { return m_minimumHealthyPercentageHasBeenSet; }
64 inline void SetMinimumHealthyPercentage(int value) { m_minimumHealthyPercentageHasBeenSet = true; m_minimumHealthyPercentage = value; }
67
69
77 inline DeploymentImpairmentStrategy GetImpairmentStrategy() const { return m_impairmentStrategy; }
78 inline bool ImpairmentStrategyHasBeenSet() const { return m_impairmentStrategyHasBeenSet; }
79 inline void SetImpairmentStrategy(DeploymentImpairmentStrategy value) { m_impairmentStrategyHasBeenSet = true; m_impairmentStrategy = value; }
82 private:
83
85 bool m_protectionStrategyHasBeenSet = false;
86
87 int m_minimumHealthyPercentage{0};
88 bool m_minimumHealthyPercentageHasBeenSet = false;
89
91 bool m_impairmentStrategyHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace GameLift
96} // namespace Aws
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentConfiguration & WithImpairmentStrategy(DeploymentImpairmentStrategy value)
AWS_GAMELIFT_API DeploymentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentProtectionStrategy GetProtectionStrategy() const
DeploymentConfiguration & WithProtectionStrategy(DeploymentProtectionStrategy value)
AWS_GAMELIFT_API DeploymentConfiguration()=default
void SetProtectionStrategy(DeploymentProtectionStrategy value)
DeploymentConfiguration & WithMinimumHealthyPercentage(int value)
DeploymentImpairmentStrategy GetImpairmentStrategy() const
void SetImpairmentStrategy(DeploymentImpairmentStrategy value)
AWS_GAMELIFT_API DeploymentConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue