AWS SDK for C++  1.9.21
AWS SDK for C++
CreateFleetLocationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateFleetLocations"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
47 
52  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
53 
58  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
59 
64  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
65 
70  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
71 
76  inline CreateFleetLocationsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
77 
82  inline CreateFleetLocationsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
83 
88  inline CreateFleetLocationsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
89 
90 
96  inline const Aws::Vector<LocationConfiguration>& GetLocations() const{ return m_locations; }
97 
103  inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
104 
110  inline void SetLocations(const Aws::Vector<LocationConfiguration>& value) { m_locationsHasBeenSet = true; m_locations = value; }
111 
117  inline void SetLocations(Aws::Vector<LocationConfiguration>&& value) { m_locationsHasBeenSet = true; m_locations = std::move(value); }
118 
124  inline CreateFleetLocationsRequest& WithLocations(const Aws::Vector<LocationConfiguration>& value) { SetLocations(value); return *this;}
125 
131  inline CreateFleetLocationsRequest& WithLocations(Aws::Vector<LocationConfiguration>&& value) { SetLocations(std::move(value)); return *this;}
132 
138  inline CreateFleetLocationsRequest& AddLocations(const LocationConfiguration& value) { m_locationsHasBeenSet = true; m_locations.push_back(value); return *this; }
139 
145  inline CreateFleetLocationsRequest& AddLocations(LocationConfiguration&& value) { m_locationsHasBeenSet = true; m_locations.push_back(std::move(value)); return *this; }
146 
147  private:
148 
149  Aws::String m_fleetId;
150  bool m_fleetIdHasBeenSet;
151 
153  bool m_locationsHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace GameLift
158 } // namespace Aws
Aws::GameLift::Model::CreateFleetLocationsRequest::WithLocations
CreateFleetLocationsRequest & WithLocations(Aws::Vector< LocationConfiguration > &&value)
Definition: CreateFleetLocationsRequest.h:131
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::CreateFleetLocationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFleetLocationsRequest.h:35
Aws::GameLift::Model::CreateFleetLocationsRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: CreateFleetLocationsRequest.h:52
Aws::GameLift::Model::CreateFleetLocationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::CreateFleetLocationsRequest::SetFleetId
void SetFleetId(const char *value)
Definition: CreateFleetLocationsRequest.h:70
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreateFleetLocationsRequest::WithFleetId
CreateFleetLocationsRequest & WithFleetId(Aws::String &&value)
Definition: CreateFleetLocationsRequest.h:82
Aws::GameLift::Model::CreateFleetLocationsRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: CreateFleetLocationsRequest.h:46
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::CreateFleetLocationsRequest::SetLocations
void SetLocations(const Aws::Vector< LocationConfiguration > &value)
Definition: CreateFleetLocationsRequest.h:110
AWSVector.h
Aws::GameLift::Model::CreateFleetLocationsRequest::AddLocations
CreateFleetLocationsRequest & AddLocations(const LocationConfiguration &value)
Definition: CreateFleetLocationsRequest.h:138
Aws::GameLift::Model::CreateFleetLocationsRequest
Definition: CreateFleetLocationsRequest.h:27
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::LocationConfiguration
Definition: LocationConfiguration.h:34
Aws::GameLift::Model::CreateFleetLocationsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::GameLift::Model::CreateFleetLocationsRequest::WithLocations
CreateFleetLocationsRequest & WithLocations(const Aws::Vector< LocationConfiguration > &value)
Definition: CreateFleetLocationsRequest.h:124
Aws::GameLift::Model::CreateFleetLocationsRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: CreateFleetLocationsRequest.h:58
LocationConfiguration.h
Aws::GameLift::Model::CreateFleetLocationsRequest::WithFleetId
CreateFleetLocationsRequest & WithFleetId(const Aws::String &value)
Definition: CreateFleetLocationsRequest.h:76
Aws::GameLift::Model::CreateFleetLocationsRequest::CreateFleetLocationsRequest
CreateFleetLocationsRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::CreateFleetLocationsRequest::LocationsHasBeenSet
bool LocationsHasBeenSet() const
Definition: CreateFleetLocationsRequest.h:103
Aws::GameLift::Model::CreateFleetLocationsRequest::SetLocations
void SetLocations(Aws::Vector< LocationConfiguration > &&value)
Definition: CreateFleetLocationsRequest.h:117
Aws::GameLift::Model::CreateFleetLocationsRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: CreateFleetLocationsRequest.h:64
Aws::GameLift::Model::CreateFleetLocationsRequest::AddLocations
CreateFleetLocationsRequest & AddLocations(LocationConfiguration &&value)
Definition: CreateFleetLocationsRequest.h:145
Aws::GameLift::Model::CreateFleetLocationsRequest::WithFleetId
CreateFleetLocationsRequest & WithFleetId(const char *value)
Definition: CreateFleetLocationsRequest.h:88
Aws::GameLift::Model::CreateFleetLocationsRequest::GetLocations
const Aws::Vector< LocationConfiguration > & GetLocations() const
Definition: CreateFleetLocationsRequest.h:96