AWS SDK for C++  1.9.104
AWS SDK for C++
CreateFleetLocationsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace GameLift
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
47 
51  inline void SetFleetId(const Aws::String& value) { m_fleetId = value; }
52 
56  inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); }
57 
61  inline void SetFleetId(const char* value) { m_fleetId.assign(value); }
62 
66  inline CreateFleetLocationsResult& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
67 
71  inline CreateFleetLocationsResult& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
72 
76  inline CreateFleetLocationsResult& WithFleetId(const char* value) { SetFleetId(value); return *this;}
77 
78 
87  inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
88 
97  inline void SetFleetArn(const Aws::String& value) { m_fleetArn = value; }
98 
107  inline void SetFleetArn(Aws::String&& value) { m_fleetArn = std::move(value); }
108 
117  inline void SetFleetArn(const char* value) { m_fleetArn.assign(value); }
118 
127  inline CreateFleetLocationsResult& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
128 
137  inline CreateFleetLocationsResult& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
138 
147  inline CreateFleetLocationsResult& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
148 
149 
158  inline const Aws::Vector<LocationState>& GetLocationStates() const{ return m_locationStates; }
159 
168  inline void SetLocationStates(const Aws::Vector<LocationState>& value) { m_locationStates = value; }
169 
178  inline void SetLocationStates(Aws::Vector<LocationState>&& value) { m_locationStates = std::move(value); }
179 
188  inline CreateFleetLocationsResult& WithLocationStates(const Aws::Vector<LocationState>& value) { SetLocationStates(value); return *this;}
189 
198  inline CreateFleetLocationsResult& WithLocationStates(Aws::Vector<LocationState>&& value) { SetLocationStates(std::move(value)); return *this;}
199 
208  inline CreateFleetLocationsResult& AddLocationStates(const LocationState& value) { m_locationStates.push_back(value); return *this; }
209 
218  inline CreateFleetLocationsResult& AddLocationStates(LocationState&& value) { m_locationStates.push_back(std::move(value)); return *this; }
219 
220  private:
221 
222  Aws::String m_fleetId;
223 
224  Aws::String m_fleetArn;
225 
226  Aws::Vector<LocationState> m_locationStates;
227  };
228 
229 } // namespace Model
230 } // namespace GameLift
231 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::CreateFleetLocationsResult::SetLocationStates
void SetLocationStates(const Aws::Vector< LocationState > &value)
Definition: CreateFleetLocationsResult.h:168
Aws::GameLift::Model::CreateFleetLocationsResult::GetFleetId
const Aws::String & GetFleetId() const
Definition: CreateFleetLocationsResult.h:46
Aws::GameLift::Model::CreateFleetLocationsResult::WithFleetId
CreateFleetLocationsResult & WithFleetId(const char *value)
Definition: CreateFleetLocationsResult.h:76
Aws::GameLift::Model::CreateFleetLocationsResult::WithFleetArn
CreateFleetLocationsResult & WithFleetArn(const Aws::String &value)
Definition: CreateFleetLocationsResult.h:127
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreateFleetLocationsResult::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: CreateFleetLocationsResult.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::CreateFleetLocationsResult::operator=
CreateFleetLocationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::CreateFleetLocationsResult::SetFleetArn
void SetFleetArn(const char *value)
Definition: CreateFleetLocationsResult.h:117
Aws::GameLift::Model::CreateFleetLocationsResult::AddLocationStates
CreateFleetLocationsResult & AddLocationStates(LocationState &&value)
Definition: CreateFleetLocationsResult.h:218
AWSVector.h
Aws::GameLift::Model::LocationState
Definition: LocationState.h:39
Aws::GameLift::Model::CreateFleetLocationsResult::WithFleetId
CreateFleetLocationsResult & WithFleetId(Aws::String &&value)
Definition: CreateFleetLocationsResult.h:71
Aws::GameLift::Model::CreateFleetLocationsResult::CreateFleetLocationsResult
CreateFleetLocationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::CreateFleetLocationsResult::SetFleetId
void SetFleetId(const char *value)
Definition: CreateFleetLocationsResult.h:61
GameLift_EXPORTS.h
Aws::GameLift::Model::CreateFleetLocationsResult::SetFleetArn
void SetFleetArn(Aws::String &&value)
Definition: CreateFleetLocationsResult.h:107
Aws::GameLift::Model::CreateFleetLocationsResult::SetFleetArn
void SetFleetArn(const Aws::String &value)
Definition: CreateFleetLocationsResult.h:97
AWSString.h
Aws::GameLift::Model::CreateFleetLocationsResult::AddLocationStates
CreateFleetLocationsResult & AddLocationStates(const LocationState &value)
Definition: CreateFleetLocationsResult.h:208
Aws::GameLift::Model::CreateFleetLocationsResult::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: CreateFleetLocationsResult.h:51
Aws::GameLift::Model::CreateFleetLocationsResult::CreateFleetLocationsResult
CreateFleetLocationsResult()
Aws::GameLift::Model::CreateFleetLocationsResult::SetLocationStates
void SetLocationStates(Aws::Vector< LocationState > &&value)
Definition: CreateFleetLocationsResult.h:178
Aws::GameLift::Model::CreateFleetLocationsResult::WithLocationStates
CreateFleetLocationsResult & WithLocationStates(Aws::Vector< LocationState > &&value)
Definition: CreateFleetLocationsResult.h:198
Aws::GameLift::Model::CreateFleetLocationsResult
Definition: CreateFleetLocationsResult.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::CreateFleetLocationsResult::GetLocationStates
const Aws::Vector< LocationState > & GetLocationStates() const
Definition: CreateFleetLocationsResult.h:158
Aws::GameLift::Model::CreateFleetLocationsResult::WithLocationStates
CreateFleetLocationsResult & WithLocationStates(const Aws::Vector< LocationState > &value)
Definition: CreateFleetLocationsResult.h:188
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::CreateFleetLocationsResult::WithFleetId
CreateFleetLocationsResult & WithFleetId(const Aws::String &value)
Definition: CreateFleetLocationsResult.h:66
Aws::GameLift::Model::CreateFleetLocationsResult::WithFleetArn
CreateFleetLocationsResult & WithFleetArn(Aws::String &&value)
Definition: CreateFleetLocationsResult.h:137
LocationState.h
Aws::GameLift::Model::CreateFleetLocationsResult::GetFleetArn
const Aws::String & GetFleetArn() const
Definition: CreateFleetLocationsResult.h:87
Aws::GameLift::Model::CreateFleetLocationsResult::WithFleetArn
CreateFleetLocationsResult & WithFleetArn(const char *value)
Definition: CreateFleetLocationsResult.h:147