AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/PlacementFallbackStrategy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
45 public:
46 AWS_GAMELIFT_API PriorityConfigurationOverride() = default;
49 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() 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 PriorityConfigurationOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API PriorityConfigurationOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
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)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue