AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFleetLocationsRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/LocationConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API CreateFleetLocationsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFleetLocations"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
45 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
46 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
47 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
48 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
49 inline CreateFleetLocationsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
50 inline CreateFleetLocationsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
51 inline CreateFleetLocationsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
53
55
61 inline const Aws::Vector<LocationConfiguration>& GetLocations() const{ return m_locations; }
62 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
63 inline void SetLocations(const Aws::Vector<LocationConfiguration>& value) { m_locationsHasBeenSet = true; m_locations = value; }
64 inline void SetLocations(Aws::Vector<LocationConfiguration>&& value) { m_locationsHasBeenSet = true; m_locations = std::move(value); }
67 inline CreateFleetLocationsRequest& AddLocations(const LocationConfiguration& value) { m_locationsHasBeenSet = true; m_locations.push_back(value); return *this; }
68 inline CreateFleetLocationsRequest& AddLocations(LocationConfiguration&& value) { m_locationsHasBeenSet = true; m_locations.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_fleetId;
73 bool m_fleetIdHasBeenSet = false;
74
76 bool m_locationsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace GameLift
81} // namespace Aws
CreateFleetLocationsRequest & AddLocations(const LocationConfiguration &value)
CreateFleetLocationsRequest & WithFleetId(const Aws::String &value)
CreateFleetLocationsRequest & WithFleetId(const char *value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
void SetLocations(const Aws::Vector< LocationConfiguration > &value)
CreateFleetLocationsRequest & WithLocations(Aws::Vector< LocationConfiguration > &&value)
CreateFleetLocationsRequest & AddLocations(LocationConfiguration &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFleetLocationsRequest & WithLocations(const Aws::Vector< LocationConfiguration > &value)
void SetLocations(Aws::Vector< LocationConfiguration > &&value)
const Aws::Vector< LocationConfiguration > & GetLocations() const
CreateFleetLocationsRequest & WithFleetId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector