AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PriorityConfiguration.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/model/PriorityType.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 PriorityConfiguration();
54 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
71 inline const Aws::Vector<PriorityType>& GetPriorityOrder() const{ return m_priorityOrder; }
72 inline bool PriorityOrderHasBeenSet() const { return m_priorityOrderHasBeenSet; }
73 inline void SetPriorityOrder(const Aws::Vector<PriorityType>& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder = value; }
74 inline void SetPriorityOrder(Aws::Vector<PriorityType>&& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder = std::move(value); }
76 inline PriorityConfiguration& WithPriorityOrder(Aws::Vector<PriorityType>&& value) { SetPriorityOrder(std::move(value)); return *this;}
77 inline PriorityConfiguration& AddPriorityOrder(const PriorityType& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder.push_back(value); return *this; }
78 inline PriorityConfiguration& AddPriorityOrder(PriorityType&& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder.push_back(std::move(value)); return *this; }
80
82
88 inline const Aws::Vector<Aws::String>& GetLocationOrder() const{ return m_locationOrder; }
89 inline bool LocationOrderHasBeenSet() const { return m_locationOrderHasBeenSet; }
90 inline void SetLocationOrder(const Aws::Vector<Aws::String>& value) { m_locationOrderHasBeenSet = true; m_locationOrder = value; }
91 inline void SetLocationOrder(Aws::Vector<Aws::String>&& value) { m_locationOrderHasBeenSet = true; m_locationOrder = std::move(value); }
93 inline PriorityConfiguration& WithLocationOrder(Aws::Vector<Aws::String>&& value) { SetLocationOrder(std::move(value)); return *this;}
94 inline PriorityConfiguration& AddLocationOrder(const Aws::String& value) { m_locationOrderHasBeenSet = true; m_locationOrder.push_back(value); return *this; }
95 inline PriorityConfiguration& AddLocationOrder(Aws::String&& value) { m_locationOrderHasBeenSet = true; m_locationOrder.push_back(std::move(value)); return *this; }
96 inline PriorityConfiguration& AddLocationOrder(const char* value) { m_locationOrderHasBeenSet = true; m_locationOrder.push_back(value); return *this; }
98 private:
99
100 Aws::Vector<PriorityType> m_priorityOrder;
101 bool m_priorityOrderHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_locationOrder;
104 bool m_locationOrderHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace GameLift
109} // namespace Aws
PriorityConfiguration & WithLocationOrder(Aws::Vector< Aws::String > &&value)
void SetPriorityOrder(Aws::Vector< PriorityType > &&value)
PriorityConfiguration & AddPriorityOrder(PriorityType &&value)
const Aws::Vector< Aws::String > & GetLocationOrder() const
void SetLocationOrder(const Aws::Vector< Aws::String > &value)
const Aws::Vector< PriorityType > & GetPriorityOrder() const
void SetLocationOrder(Aws::Vector< Aws::String > &&value)
PriorityConfiguration & WithPriorityOrder(const Aws::Vector< PriorityType > &value)
PriorityConfiguration & WithPriorityOrder(Aws::Vector< PriorityType > &&value)
PriorityConfiguration & WithLocationOrder(const Aws::Vector< Aws::String > &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API PriorityConfiguration(Aws::Utils::Json::JsonView jsonValue)
PriorityConfiguration & AddLocationOrder(Aws::String &&value)
PriorityConfiguration & AddLocationOrder(const char *value)
PriorityConfiguration & AddLocationOrder(const Aws::String &value)
AWS_GAMELIFT_API PriorityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
PriorityConfiguration & AddPriorityOrder(const PriorityType &value)
void SetPriorityOrder(const Aws::Vector< PriorityType > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue