AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename FleetIdT = Aws::String>
47 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
48 template<typename FleetIdT = Aws::String>
49 CreateFleetLocationsRequest& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
51
53
59 inline const Aws::Vector<LocationConfiguration>& GetLocations() const { return m_locations; }
60 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
61 template<typename LocationsT = Aws::Vector<LocationConfiguration>>
62 void SetLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations = std::forward<LocationsT>(value); }
63 template<typename LocationsT = Aws::Vector<LocationConfiguration>>
64 CreateFleetLocationsRequest& WithLocations(LocationsT&& value) { SetLocations(std::forward<LocationsT>(value)); return *this;}
65 template<typename LocationsT = LocationConfiguration>
66 CreateFleetLocationsRequest& AddLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations.emplace_back(std::forward<LocationsT>(value)); return *this; }
68 private:
69
70 Aws::String m_fleetId;
71 bool m_fleetIdHasBeenSet = false;
72
74 bool m_locationsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace GameLift
79} // namespace Aws
AWS_GAMELIFT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFleetLocationsRequest & AddLocations(LocationsT &&value)
const Aws::Vector< LocationConfiguration > & GetLocations() const
AWS_GAMELIFT_API CreateFleetLocationsRequest()=default
CreateFleetLocationsRequest & WithLocations(LocationsT &&value)
CreateFleetLocationsRequest & WithFleetId(FleetIdT &&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