AWS SDK for C++  1.9.44
AWS SDK for C++
LocationState.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
39  {
40  public:
45 
46 
51  inline const Aws::String& GetLocation() const{ return m_location; }
52 
57  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
58 
63  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
64 
69  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
70 
75  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
76 
81  inline LocationState& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
82 
87  inline LocationState& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
88 
93  inline LocationState& WithLocation(const char* value) { SetLocation(value); return *this;}
94 
95 
99  inline const FleetStatus& GetStatus() const{ return m_status; }
100 
104  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 
109  inline void SetStatus(const FleetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
110 
114  inline void SetStatus(FleetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
115 
119  inline LocationState& WithStatus(const FleetStatus& value) { SetStatus(value); return *this;}
120 
124  inline LocationState& WithStatus(FleetStatus&& value) { SetStatus(std::move(value)); return *this;}
125 
126  private:
127 
128  Aws::String m_location;
129  bool m_locationHasBeenSet;
130 
131  FleetStatus m_status;
132  bool m_statusHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace GameLift
137 } // namespace Aws
Aws::GameLift::Model::LocationState::WithLocation
LocationState & WithLocation(const char *value)
Definition: LocationState.h:93
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::FleetStatus
FleetStatus
Definition: FleetStatus.h:17
Aws::GameLift::Model::LocationState::WithStatus
LocationState & WithStatus(FleetStatus &&value)
Definition: LocationState.h:124
Aws::GameLift::Model::LocationState
Definition: LocationState.h:39
GameLift_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::GameLift::Model::LocationState::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: LocationState.h:104
Aws::GameLift::Model::LocationState::WithLocation
LocationState & WithLocation(Aws::String &&value)
Definition: LocationState.h:87
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::LocationState::SetStatus
void SetStatus(FleetStatus &&value)
Definition: LocationState.h:114
FleetStatus.h
Aws::GameLift::Model::LocationState::SetLocation
void SetLocation(const Aws::String &value)
Definition: LocationState.h:63
Aws::GameLift::Model::LocationState::SetStatus
void SetStatus(const FleetStatus &value)
Definition: LocationState.h:109
Aws::GameLift::Model::LocationState::WithLocation
LocationState & WithLocation(const Aws::String &value)
Definition: LocationState.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::LocationState::LocationState
LocationState()
Aws::GameLift::Model::LocationState::WithStatus
LocationState & WithStatus(const FleetStatus &value)
Definition: LocationState.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::LocationState::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: LocationState.h:57
Aws::GameLift::Model::LocationState::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::LocationState::LocationState
LocationState(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::LocationState::SetLocation
void SetLocation(Aws::String &&value)
Definition: LocationState.h:69
Aws::GameLift::Model::LocationState::GetStatus
const FleetStatus & GetStatus() const
Definition: LocationState.h:99
Aws::GameLift::Model::LocationState::operator=
LocationState & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::LocationState::GetLocation
const Aws::String & GetLocation() const
Definition: LocationState.h:51
Aws::GameLift::Model::LocationState::SetLocation
void SetLocation(const char *value)
Definition: LocationState.h:75