AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
CreateFleetLocationsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/LocationConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API CreateFleetLocationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateFleetLocations"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetFleetId() const { return m_fleetId; }
41 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
42 template <typename FleetIdT = Aws::String>
43 void SetFleetId(FleetIdT&& value) {
44 m_fleetIdHasBeenSet = true;
45 m_fleetId = std::forward<FleetIdT>(value);
46 }
47 template <typename FleetIdT = Aws::String>
49 SetFleetId(std::forward<FleetIdT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::Vector<LocationConfiguration>& GetLocations() const { return m_locations; }
62 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
63 template <typename LocationsT = Aws::Vector<LocationConfiguration>>
64 void SetLocations(LocationsT&& value) {
65 m_locationsHasBeenSet = true;
66 m_locations = std::forward<LocationsT>(value);
67 }
68 template <typename LocationsT = Aws::Vector<LocationConfiguration>>
70 SetLocations(std::forward<LocationsT>(value));
71 return *this;
72 }
73 template <typename LocationsT = LocationConfiguration>
75 m_locationsHasBeenSet = true;
76 m_locations.emplace_back(std::forward<LocationsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_fleetId;
82 bool m_fleetIdHasBeenSet = false;
83
85 bool m_locationsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace GameLift
90} // 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