AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
DeploymentConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/DeploymentImpairmentStrategy.h>
10#include <aws/gamelift/model/DeploymentProtectionStrategy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
30 public:
31 AWS_GAMELIFT_API DeploymentConfiguration() = default;
32 AWS_GAMELIFT_API DeploymentConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API DeploymentConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 int64_t GetMinimumHealthyPercentage() const { return m_minimumHealthyPercentage; }
63 inline bool MinimumHealthyPercentageHasBeenSet() const { return m_minimumHealthyPercentageHasBeenSet; }
64 inline void SetMinimumHealthyPercentage(int64_t 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 int64_t 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 void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
DeploymentConfiguration & WithImpairmentStrategy(DeploymentImpairmentStrategy value)
DeploymentProtectionStrategy GetProtectionStrategy() const
DeploymentConfiguration & WithProtectionStrategy(DeploymentProtectionStrategy value)
AWS_GAMELIFT_API DeploymentConfiguration()=default
void SetProtectionStrategy(DeploymentProtectionStrategy value)
AWS_GAMELIFT_API DeploymentConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DeploymentImpairmentStrategy GetImpairmentStrategy() const
DeploymentConfiguration & WithMinimumHealthyPercentage(int64_t value)
void SetImpairmentStrategy(DeploymentImpairmentStrategy value)
AWS_GAMELIFT_API DeploymentConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)