AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
PriorityConfigurationOverride.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/PlacementFallbackStrategy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
45 public:
46 AWS_GAMELIFT_API PriorityConfigurationOverride() = default;
47 AWS_GAMELIFT_API PriorityConfigurationOverride(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
48 AWS_GAMELIFT_API PriorityConfigurationOverride& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
49 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
50
52
61 inline PlacementFallbackStrategy GetPlacementFallbackStrategy() const { return m_placementFallbackStrategy; }
62 inline bool PlacementFallbackStrategyHasBeenSet() const { return m_placementFallbackStrategyHasBeenSet; }
64 m_placementFallbackStrategyHasBeenSet = true;
65 m_placementFallbackStrategy = value;
66 }
69 return *this;
70 }
72
74
82 inline const Aws::Vector<Aws::String>& GetLocationOrder() const { return m_locationOrder; }
83 inline bool LocationOrderHasBeenSet() const { return m_locationOrderHasBeenSet; }
84 template <typename LocationOrderT = Aws::Vector<Aws::String>>
85 void SetLocationOrder(LocationOrderT&& value) {
86 m_locationOrderHasBeenSet = true;
87 m_locationOrder = std::forward<LocationOrderT>(value);
88 }
89 template <typename LocationOrderT = Aws::Vector<Aws::String>>
91 SetLocationOrder(std::forward<LocationOrderT>(value));
92 return *this;
93 }
94 template <typename LocationOrderT = Aws::String>
96 m_locationOrderHasBeenSet = true;
97 m_locationOrder.emplace_back(std::forward<LocationOrderT>(value));
98 return *this;
99 }
101 private:
103
104 Aws::Vector<Aws::String> m_locationOrder;
105 bool m_placementFallbackStrategyHasBeenSet = false;
106 bool m_locationOrderHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace GameLift
111} // namespace Aws
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API PriorityConfigurationOverride & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API PriorityConfigurationOverride(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API PriorityConfigurationOverride()=default
void SetPlacementFallbackStrategy(PlacementFallbackStrategy value)
PriorityConfigurationOverride & WithLocationOrder(LocationOrderT &&value)
PriorityConfigurationOverride & AddLocationOrder(LocationOrderT &&value)
const Aws::Vector< Aws::String > & GetLocationOrder() const
PriorityConfigurationOverride & WithPlacementFallbackStrategy(PlacementFallbackStrategy value)
std::vector< T, Aws::Allocator< T > > Vector