AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PriorityConfigurationOverride.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/PlacementFallbackStrategy.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
49 {
50 public:
51 AWS_GAMELIFT_API PriorityConfigurationOverride() = default;
54 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
67 inline PlacementFallbackStrategy GetPlacementFallbackStrategy() const { return m_placementFallbackStrategy; }
68 inline bool PlacementFallbackStrategyHasBeenSet() const { return m_placementFallbackStrategyHasBeenSet; }
69 inline void SetPlacementFallbackStrategy(PlacementFallbackStrategy value) { m_placementFallbackStrategyHasBeenSet = true; m_placementFallbackStrategy = value; }
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) { m_locationOrderHasBeenSet = true; m_locationOrder = std::forward<LocationOrderT>(value); }
86 template<typename LocationOrderT = Aws::Vector<Aws::String>>
87 PriorityConfigurationOverride& WithLocationOrder(LocationOrderT&& value) { SetLocationOrder(std::forward<LocationOrderT>(value)); return *this;}
88 template<typename LocationOrderT = Aws::String>
89 PriorityConfigurationOverride& AddLocationOrder(LocationOrderT&& value) { m_locationOrderHasBeenSet = true; m_locationOrder.emplace_back(std::forward<LocationOrderT>(value)); return *this; }
91 private:
92
94 bool m_placementFallbackStrategyHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_locationOrder;
97 bool m_locationOrderHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace GameLift
102} // 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