AWS SDK for C++  1.9.104
AWS SDK for C++
DeleteFleetLocationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GameLift
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DeleteFleetLocations"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
46 
51  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
52 
57  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
58 
63  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
64 
69  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
70 
75  inline DeleteFleetLocationsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
76 
81  inline DeleteFleetLocationsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
82 
87  inline DeleteFleetLocationsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
88 
89 
94  inline const Aws::Vector<Aws::String>& GetLocations() const{ return m_locations; }
95 
100  inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
101 
106  inline void SetLocations(const Aws::Vector<Aws::String>& value) { m_locationsHasBeenSet = true; m_locations = value; }
107 
112  inline void SetLocations(Aws::Vector<Aws::String>&& value) { m_locationsHasBeenSet = true; m_locations = std::move(value); }
113 
118  inline DeleteFleetLocationsRequest& WithLocations(const Aws::Vector<Aws::String>& value) { SetLocations(value); return *this;}
119 
124  inline DeleteFleetLocationsRequest& WithLocations(Aws::Vector<Aws::String>&& value) { SetLocations(std::move(value)); return *this;}
125 
130  inline DeleteFleetLocationsRequest& AddLocations(const Aws::String& value) { m_locationsHasBeenSet = true; m_locations.push_back(value); return *this; }
131 
136  inline DeleteFleetLocationsRequest& AddLocations(Aws::String&& value) { m_locationsHasBeenSet = true; m_locations.push_back(std::move(value)); return *this; }
137 
142  inline DeleteFleetLocationsRequest& AddLocations(const char* value) { m_locationsHasBeenSet = true; m_locations.push_back(value); return *this; }
143 
144  private:
145 
146  Aws::String m_fleetId;
147  bool m_fleetIdHasBeenSet;
148 
149  Aws::Vector<Aws::String> m_locations;
150  bool m_locationsHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace GameLift
155 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DeleteFleetLocationsRequest::WithFleetId
DeleteFleetLocationsRequest & WithFleetId(const char *value)
Definition: DeleteFleetLocationsRequest.h:87
Aws::GameLift::Model::DeleteFleetLocationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteFleetLocationsRequest.h:34
Aws::GameLift::Model::DeleteFleetLocationsRequest::AddLocations
DeleteFleetLocationsRequest & AddLocations(const char *value)
Definition: DeleteFleetLocationsRequest.h:142
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::DeleteFleetLocationsRequest::SetLocations
void SetLocations(Aws::Vector< Aws::String > &&value)
Definition: DeleteFleetLocationsRequest.h:112
AWSVector.h
Aws::GameLift::Model::DeleteFleetLocationsRequest::WithFleetId
DeleteFleetLocationsRequest & WithFleetId(Aws::String &&value)
Definition: DeleteFleetLocationsRequest.h:81
Aws::GameLift::Model::DeleteFleetLocationsRequest::SetFleetId
void SetFleetId(const char *value)
Definition: DeleteFleetLocationsRequest.h:69
Aws::GameLift::Model::DeleteFleetLocationsRequest::AddLocations
DeleteFleetLocationsRequest & AddLocations(Aws::String &&value)
Definition: DeleteFleetLocationsRequest.h:136
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::DeleteFleetLocationsRequest::WithLocations
DeleteFleetLocationsRequest & WithLocations(Aws::Vector< Aws::String > &&value)
Definition: DeleteFleetLocationsRequest.h:124
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::DeleteFleetLocationsRequest::DeleteFleetLocationsRequest
DeleteFleetLocationsRequest()
Aws::GameLift::Model::DeleteFleetLocationsRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: DeleteFleetLocationsRequest.h:57
Aws::GameLift::Model::DeleteFleetLocationsRequest::LocationsHasBeenSet
bool LocationsHasBeenSet() const
Definition: DeleteFleetLocationsRequest.h:100
Aws::GameLift::Model::DeleteFleetLocationsRequest::GetLocations
const Aws::Vector< Aws::String > & GetLocations() const
Definition: DeleteFleetLocationsRequest.h:94
Aws::GameLift::Model::DeleteFleetLocationsRequest::SetLocations
void SetLocations(const Aws::Vector< Aws::String > &value)
Definition: DeleteFleetLocationsRequest.h:106
Aws::GameLift::Model::DeleteFleetLocationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::DeleteFleetLocationsRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: DeleteFleetLocationsRequest.h:63
Aws::GameLift::Model::DeleteFleetLocationsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::DeleteFleetLocationsRequest::WithFleetId
DeleteFleetLocationsRequest & WithFleetId(const Aws::String &value)
Definition: DeleteFleetLocationsRequest.h:75
Aws::GameLift::Model::DeleteFleetLocationsRequest::AddLocations
DeleteFleetLocationsRequest & AddLocations(const Aws::String &value)
Definition: DeleteFleetLocationsRequest.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::DeleteFleetLocationsRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: DeleteFleetLocationsRequest.h:45
Aws::GameLift::Model::DeleteFleetLocationsRequest::WithLocations
DeleteFleetLocationsRequest & WithLocations(const Aws::Vector< Aws::String > &value)
Definition: DeleteFleetLocationsRequest.h:118
Aws::GameLift::Model::DeleteFleetLocationsRequest
Definition: DeleteFleetLocationsRequest.h:26
Aws::GameLift::Model::DeleteFleetLocationsRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: DeleteFleetLocationsRequest.h:51