AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DeploymentConfiguration.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/DeploymentImpairmentStrategy.h>
9#include <aws/gamelift/model/DeploymentProtectionStrategy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
30 public:
31 AWS_GAMELIFT_API DeploymentConfiguration() = default;
34 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
45 inline DeploymentProtectionStrategy GetProtectionStrategy() const { return m_protectionStrategy; }
46 inline bool ProtectionStrategyHasBeenSet() const { return m_protectionStrategyHasBeenSet; }
48 m_protectionStrategyHasBeenSet = true;
49 m_protectionStrategy = value;
50 }
53 return *this;
54 }
56
58
62 inline int GetMinimumHealthyPercentage() const { return m_minimumHealthyPercentage; }
63 inline bool MinimumHealthyPercentageHasBeenSet() const { return m_minimumHealthyPercentageHasBeenSet; }
64 inline void SetMinimumHealthyPercentage(int value) {
65 m_minimumHealthyPercentageHasBeenSet = true;
66 m_minimumHealthyPercentage = value;
67 }
70 return *this;
71 }
73
75
83 inline DeploymentImpairmentStrategy GetImpairmentStrategy() const { return m_impairmentStrategy; }
84 inline bool ImpairmentStrategyHasBeenSet() const { return m_impairmentStrategyHasBeenSet; }
86 m_impairmentStrategyHasBeenSet = true;
87 m_impairmentStrategy = value;
88 }
91 return *this;
92 }
94 private:
96
97 int m_minimumHealthyPercentage{0};
98
100 bool m_protectionStrategyHasBeenSet = false;
101 bool m_minimumHealthyPercentageHasBeenSet = false;
102 bool m_impairmentStrategyHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GameLift
107} // 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