AWS SDK for C++  1.9.44
AWS SDK for C++
PriorityConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
27 
50  {
51  public:
56 
57 
71  inline const Aws::Vector<PriorityType>& GetPriorityOrder() const{ return m_priorityOrder; }
72 
86  inline bool PriorityOrderHasBeenSet() const { return m_priorityOrderHasBeenSet; }
87 
101  inline void SetPriorityOrder(const Aws::Vector<PriorityType>& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder = value; }
102 
116  inline void SetPriorityOrder(Aws::Vector<PriorityType>&& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder = std::move(value); }
117 
131  inline PriorityConfiguration& WithPriorityOrder(const Aws::Vector<PriorityType>& value) { SetPriorityOrder(value); return *this;}
132 
146  inline PriorityConfiguration& WithPriorityOrder(Aws::Vector<PriorityType>&& value) { SetPriorityOrder(std::move(value)); return *this;}
147 
161  inline PriorityConfiguration& AddPriorityOrder(const PriorityType& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder.push_back(value); return *this; }
162 
176  inline PriorityConfiguration& AddPriorityOrder(PriorityType&& value) { m_priorityOrderHasBeenSet = true; m_priorityOrder.push_back(std::move(value)); return *this; }
177 
178 
185  inline const Aws::Vector<Aws::String>& GetLocationOrder() const{ return m_locationOrder; }
186 
193  inline bool LocationOrderHasBeenSet() const { return m_locationOrderHasBeenSet; }
194 
201  inline void SetLocationOrder(const Aws::Vector<Aws::String>& value) { m_locationOrderHasBeenSet = true; m_locationOrder = value; }
202 
209  inline void SetLocationOrder(Aws::Vector<Aws::String>&& value) { m_locationOrderHasBeenSet = true; m_locationOrder = std::move(value); }
210 
217  inline PriorityConfiguration& WithLocationOrder(const Aws::Vector<Aws::String>& value) { SetLocationOrder(value); return *this;}
218 
225  inline PriorityConfiguration& WithLocationOrder(Aws::Vector<Aws::String>&& value) { SetLocationOrder(std::move(value)); return *this;}
226 
233  inline PriorityConfiguration& AddLocationOrder(const Aws::String& value) { m_locationOrderHasBeenSet = true; m_locationOrder.push_back(value); return *this; }
234 
241  inline PriorityConfiguration& AddLocationOrder(Aws::String&& value) { m_locationOrderHasBeenSet = true; m_locationOrder.push_back(std::move(value)); return *this; }
242 
249  inline PriorityConfiguration& AddLocationOrder(const char* value) { m_locationOrderHasBeenSet = true; m_locationOrder.push_back(value); return *this; }
250 
251  private:
252 
253  Aws::Vector<PriorityType> m_priorityOrder;
254  bool m_priorityOrderHasBeenSet;
255 
256  Aws::Vector<Aws::String> m_locationOrder;
257  bool m_locationOrderHasBeenSet;
258  };
259 
260 } // namespace Model
261 } // namespace GameLift
262 } // namespace Aws
Aws::GameLift::Model::PriorityConfiguration::GetPriorityOrder
const Aws::Vector< PriorityType > & GetPriorityOrder() const
Definition: PriorityConfiguration.h:71
Aws::GameLift::Model::PriorityConfiguration::AddPriorityOrder
PriorityConfiguration & AddPriorityOrder(const PriorityType &value)
Definition: PriorityConfiguration.h:161
PriorityType.h
Aws::GameLift::Model::PriorityConfiguration::AddPriorityOrder
PriorityConfiguration & AddPriorityOrder(PriorityType &&value)
Definition: PriorityConfiguration.h:176
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::PriorityConfiguration::WithPriorityOrder
PriorityConfiguration & WithPriorityOrder(const Aws::Vector< PriorityType > &value)
Definition: PriorityConfiguration.h:131
Aws::GameLift::Model::PriorityConfiguration::operator=
PriorityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::PriorityType
PriorityType
Definition: PriorityType.h:17
Aws::GameLift::Model::PriorityConfiguration::WithPriorityOrder
PriorityConfiguration & WithPriorityOrder(Aws::Vector< PriorityType > &&value)
Definition: PriorityConfiguration.h:146
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::PriorityConfiguration::PriorityConfiguration
PriorityConfiguration()
AWSVector.h
Aws::GameLift::Model::PriorityConfiguration::AddLocationOrder
PriorityConfiguration & AddLocationOrder(Aws::String &&value)
Definition: PriorityConfiguration.h:241
Aws::GameLift::Model::PriorityConfiguration::SetLocationOrder
void SetLocationOrder(const Aws::Vector< Aws::String > &value)
Definition: PriorityConfiguration.h:201
Aws::GameLift::Model::PriorityConfiguration::SetPriorityOrder
void SetPriorityOrder(Aws::Vector< PriorityType > &&value)
Definition: PriorityConfiguration.h:116
GameLift_EXPORTS.h
Aws::GameLift::Model::PriorityConfiguration::WithLocationOrder
PriorityConfiguration & WithLocationOrder(const Aws::Vector< Aws::String > &value)
Definition: PriorityConfiguration.h:217
Aws::GameLift::Model::PriorityConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::PriorityConfiguration::PriorityOrderHasBeenSet
bool PriorityOrderHasBeenSet() const
Definition: PriorityConfiguration.h:86
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::PriorityConfiguration::WithLocationOrder
PriorityConfiguration & WithLocationOrder(Aws::Vector< Aws::String > &&value)
Definition: PriorityConfiguration.h:225
Aws::GameLift::Model::PriorityConfiguration::AddLocationOrder
PriorityConfiguration & AddLocationOrder(const char *value)
Definition: PriorityConfiguration.h:249
Aws::GameLift::Model::PriorityConfiguration::GetLocationOrder
const Aws::Vector< Aws::String > & GetLocationOrder() const
Definition: PriorityConfiguration.h:185
Aws::GameLift::Model::PriorityConfiguration::SetPriorityOrder
void SetPriorityOrder(const Aws::Vector< PriorityType > &value)
Definition: PriorityConfiguration.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::PriorityConfiguration::SetLocationOrder
void SetLocationOrder(Aws::Vector< Aws::String > &&value)
Definition: PriorityConfiguration.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::PriorityConfiguration::LocationOrderHasBeenSet
bool LocationOrderHasBeenSet() const
Definition: PriorityConfiguration.h:193
Aws::GameLift::Model::PriorityConfiguration::AddLocationOrder
PriorityConfiguration & AddLocationOrder(const Aws::String &value)
Definition: PriorityConfiguration.h:233
Aws::GameLift::Model::PriorityConfiguration
Definition: PriorityConfiguration.h:50
Aws::GameLift::Model::PriorityConfiguration::PriorityConfiguration
PriorityConfiguration(Aws::Utils::Json::JsonView jsonValue)