AWS SDK for C++  1.9.45
AWS SDK for C++
LocationAttributes.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace GameLift
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
48  inline const LocationState& GetLocationState() const{ return m_locationState; }
49 
53  inline bool LocationStateHasBeenSet() const { return m_locationStateHasBeenSet; }
54 
58  inline void SetLocationState(const LocationState& value) { m_locationStateHasBeenSet = true; m_locationState = value; }
59 
63  inline void SetLocationState(LocationState&& value) { m_locationStateHasBeenSet = true; m_locationState = std::move(value); }
64 
68  inline LocationAttributes& WithLocationState(const LocationState& value) { SetLocationState(value); return *this;}
69 
73  inline LocationAttributes& WithLocationState(LocationState&& value) { SetLocationState(std::move(value)); return *this;}
74 
75 
79  inline const Aws::Vector<FleetAction>& GetStoppedActions() const{ return m_stoppedActions; }
80 
84  inline bool StoppedActionsHasBeenSet() const { return m_stoppedActionsHasBeenSet; }
85 
89  inline void SetStoppedActions(const Aws::Vector<FleetAction>& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = value; }
90 
94  inline void SetStoppedActions(Aws::Vector<FleetAction>&& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = std::move(value); }
95 
99  inline LocationAttributes& WithStoppedActions(const Aws::Vector<FleetAction>& value) { SetStoppedActions(value); return *this;}
100 
104  inline LocationAttributes& WithStoppedActions(Aws::Vector<FleetAction>&& value) { SetStoppedActions(std::move(value)); return *this;}
105 
109  inline LocationAttributes& AddStoppedActions(const FleetAction& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions.push_back(value); return *this; }
110 
114  inline LocationAttributes& AddStoppedActions(FleetAction&& value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions.push_back(std::move(value)); return *this; }
115 
116 
123  inline const LocationUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; }
124 
131  inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
132 
139  inline void SetUpdateStatus(const LocationUpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
140 
147  inline void SetUpdateStatus(LocationUpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
148 
155  inline LocationAttributes& WithUpdateStatus(const LocationUpdateStatus& value) { SetUpdateStatus(value); return *this;}
156 
163  inline LocationAttributes& WithUpdateStatus(LocationUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
164 
165  private:
166 
167  LocationState m_locationState;
168  bool m_locationStateHasBeenSet;
169 
170  Aws::Vector<FleetAction> m_stoppedActions;
171  bool m_stoppedActionsHasBeenSet;
172 
173  LocationUpdateStatus m_updateStatus;
174  bool m_updateStatusHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace GameLift
179 } // namespace Aws
Aws::GameLift::Model::LocationAttributes::WithLocationState
LocationAttributes & WithLocationState(LocationState &&value)
Definition: LocationAttributes.h:73
Aws::GameLift::Model::LocationAttributes::UpdateStatusHasBeenSet
bool UpdateStatusHasBeenSet() const
Definition: LocationAttributes.h:131
Aws::GameLift::Model::LocationAttributes::LocationStateHasBeenSet
bool LocationStateHasBeenSet() const
Definition: LocationAttributes.h:53
FleetAction.h
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::LocationAttributes::GetStoppedActions
const Aws::Vector< FleetAction > & GetStoppedActions() const
Definition: LocationAttributes.h:79
Aws::GameLift::Model::LocationAttributes::LocationAttributes
LocationAttributes()
Aws::GameLift::Model::LocationAttributes::operator=
LocationAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::LocationAttributes::LocationAttributes
LocationAttributes(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::LocationAttributes::WithStoppedActions
LocationAttributes & WithStoppedActions(const Aws::Vector< FleetAction > &value)
Definition: LocationAttributes.h:99
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::LocationAttributes::SetUpdateStatus
void SetUpdateStatus(const LocationUpdateStatus &value)
Definition: LocationAttributes.h:139
AWSVector.h
Aws::GameLift::Model::LocationAttributes::SetUpdateStatus
void SetUpdateStatus(LocationUpdateStatus &&value)
Definition: LocationAttributes.h:147
Aws::GameLift::Model::LocationState
Definition: LocationState.h:39
Aws::GameLift::Model::FleetAction
FleetAction
Definition: FleetAction.h:17
GameLift_EXPORTS.h
Aws::GameLift::Model::LocationUpdateStatus
LocationUpdateStatus
Definition: LocationUpdateStatus.h:17
Aws::GameLift::Model::LocationAttributes::AddStoppedActions
LocationAttributes & AddStoppedActions(FleetAction &&value)
Definition: LocationAttributes.h:114
Aws::GameLift::Model::LocationAttributes::AddStoppedActions
LocationAttributes & AddStoppedActions(const FleetAction &value)
Definition: LocationAttributes.h:109
Aws::GameLift::Model::LocationAttributes::StoppedActionsHasBeenSet
bool StoppedActionsHasBeenSet() const
Definition: LocationAttributes.h:84
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::LocationAttributes::SetStoppedActions
void SetStoppedActions(const Aws::Vector< FleetAction > &value)
Definition: LocationAttributes.h:89
Aws::GameLift::Model::LocationAttributes::WithUpdateStatus
LocationAttributes & WithUpdateStatus(const LocationUpdateStatus &value)
Definition: LocationAttributes.h:155
Aws::GameLift::Model::LocationAttributes::SetLocationState
void SetLocationState(const LocationState &value)
Definition: LocationAttributes.h:58
Aws::GameLift::Model::LocationAttributes::WithLocationState
LocationAttributes & WithLocationState(const LocationState &value)
Definition: LocationAttributes.h:68
Aws::GameLift::Model::LocationAttributes::WithStoppedActions
LocationAttributes & WithStoppedActions(Aws::Vector< FleetAction > &&value)
Definition: LocationAttributes.h:104
LocationUpdateStatus.h
Aws::GameLift::Model::LocationAttributes::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::LocationAttributes
Definition: LocationAttributes.h:37
Aws::GameLift::Model::LocationAttributes::GetUpdateStatus
const LocationUpdateStatus & GetUpdateStatus() const
Definition: LocationAttributes.h:123
Aws::GameLift::Model::LocationAttributes::WithUpdateStatus
LocationAttributes & WithUpdateStatus(LocationUpdateStatus &&value)
Definition: LocationAttributes.h:163
LocationState.h
Aws::GameLift::Model::LocationAttributes::SetStoppedActions
void SetStoppedActions(Aws::Vector< FleetAction > &&value)
Definition: LocationAttributes.h:94
Aws::GameLift::Model::LocationAttributes::SetLocationState
void SetLocationState(LocationState &&value)
Definition: LocationAttributes.h:63
Aws::GameLift::Model::LocationAttributes::GetLocationState
const LocationState & GetLocationState() const
Definition: LocationAttributes.h:48