AWS SDK for C++  1.9.16
AWS SDK for C++
StartFleetActionsRequest.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 "StartFleetActions"; }
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 StartFleetActionsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
77 
82  inline StartFleetActionsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
83 
88  inline StartFleetActionsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
89 
90 
94  inline const Aws::Vector<FleetAction>& GetActions() const{ return m_actions; }
95 
99  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
100 
104  inline void SetActions(const Aws::Vector<FleetAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
105 
109  inline void SetActions(Aws::Vector<FleetAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
110 
114  inline StartFleetActionsRequest& WithActions(const Aws::Vector<FleetAction>& value) { SetActions(value); return *this;}
115 
119  inline StartFleetActionsRequest& WithActions(Aws::Vector<FleetAction>&& value) { SetActions(std::move(value)); return *this;}
120 
124  inline StartFleetActionsRequest& AddActions(const FleetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
125 
129  inline StartFleetActionsRequest& AddActions(FleetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
130 
131 
136  inline const Aws::String& GetLocation() const{ return m_location; }
137 
142  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
143 
148  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
149 
154  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
155 
160  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
161 
166  inline StartFleetActionsRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
167 
172  inline StartFleetActionsRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
173 
178  inline StartFleetActionsRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
179 
180  private:
181 
182  Aws::String m_fleetId;
183  bool m_fleetIdHasBeenSet;
184 
185  Aws::Vector<FleetAction> m_actions;
186  bool m_actionsHasBeenSet;
187 
188  Aws::String m_location;
189  bool m_locationHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace GameLift
194 } // namespace Aws
Aws::GameLift::Model::StartFleetActionsRequest::SetActions
void SetActions(const Aws::Vector< FleetAction > &value)
Definition: StartFleetActionsRequest.h:104
Aws::GameLift::Model::StartFleetActionsRequest::WithLocation
StartFleetActionsRequest & WithLocation(const Aws::String &value)
Definition: StartFleetActionsRequest.h:166
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::StartFleetActionsRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: StartFleetActionsRequest.h:46
Aws::GameLift::Model::StartFleetActionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartFleetActionsRequest.h:35
Aws::GameLift::Model::StartFleetActionsRequest::WithFleetId
StartFleetActionsRequest & WithFleetId(const Aws::String &value)
Definition: StartFleetActionsRequest.h:76
Aws::GameLift::Model::StartFleetActionsRequest::GetActions
const Aws::Vector< FleetAction > & GetActions() const
Definition: StartFleetActionsRequest.h:94
FleetAction.h
Aws::GameLift::Model::StartFleetActionsRequest::WithActions
StartFleetActionsRequest & WithActions(Aws::Vector< FleetAction > &&value)
Definition: StartFleetActionsRequest.h:119
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::StartFleetActionsRequest::WithLocation
StartFleetActionsRequest & WithLocation(Aws::String &&value)
Definition: StartFleetActionsRequest.h:172
Aws::GameLift::Model::StartFleetActionsRequest::AddActions
StartFleetActionsRequest & AddActions(FleetAction &&value)
Definition: StartFleetActionsRequest.h:129
Aws::GameLift::Model::StartFleetActionsRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: StartFleetActionsRequest.h:52
Aws::GameLift::Model::StartFleetActionsRequest::GetLocation
const Aws::String & GetLocation() const
Definition: StartFleetActionsRequest.h:136
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::StartFleetActionsRequest::WithActions
StartFleetActionsRequest & WithActions(const Aws::Vector< FleetAction > &value)
Definition: StartFleetActionsRequest.h:114
AWSVector.h
Aws::GameLift::Model::FleetAction
FleetAction
Definition: FleetAction.h:17
GameLift_EXPORTS.h
Aws::GameLift::Model::StartFleetActionsRequest::SetLocation
void SetLocation(const char *value)
Definition: StartFleetActionsRequest.h:160
GameLiftRequest.h
Aws::GameLift::Model::StartFleetActionsRequest::StartFleetActionsRequest
StartFleetActionsRequest()
Aws::GameLift::Model::StartFleetActionsRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: StartFleetActionsRequest.h:64
Aws::GameLift::Model::StartFleetActionsRequest::AddActions
StartFleetActionsRequest & AddActions(const FleetAction &value)
Definition: StartFleetActionsRequest.h:124
Aws::GameLift::Model::StartFleetActionsRequest::SetFleetId
void SetFleetId(const char *value)
Definition: StartFleetActionsRequest.h:70
Aws::GameLift::Model::StartFleetActionsRequest::WithFleetId
StartFleetActionsRequest & WithFleetId(Aws::String &&value)
Definition: StartFleetActionsRequest.h:82
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::StartFleetActionsRequest::WithLocation
StartFleetActionsRequest & WithLocation(const char *value)
Definition: StartFleetActionsRequest.h:178
Aws::GameLift::Model::StartFleetActionsRequest
Definition: StartFleetActionsRequest.h:27
Aws::GameLift::Model::StartFleetActionsRequest::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: StartFleetActionsRequest.h:99
Aws::GameLift::Model::StartFleetActionsRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: StartFleetActionsRequest.h:154
Aws::GameLift::Model::StartFleetActionsRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: StartFleetActionsRequest.h:58
Aws::GameLift::Model::StartFleetActionsRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: StartFleetActionsRequest.h:148
Aws::GameLift::Model::StartFleetActionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::StartFleetActionsRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: StartFleetActionsRequest.h:142
Aws::GameLift::Model::StartFleetActionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::StartFleetActionsRequest::WithFleetId
StartFleetActionsRequest & WithFleetId(const char *value)
Definition: StartFleetActionsRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::StartFleetActionsRequest::SetActions
void SetActions(Aws::Vector< FleetAction > &&value)
Definition: StartFleetActionsRequest.h:109