AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartFleetActionsRequest.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/FleetAction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API StartFleetActionsRequest();
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 "StartFleetActions"; }
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 StartFleetActionsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
50 inline StartFleetActionsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
51 inline StartFleetActionsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
53
55
58 inline const Aws::Vector<FleetAction>& GetActions() const{ return m_actions; }
59 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
60 inline void SetActions(const Aws::Vector<FleetAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
61 inline void SetActions(Aws::Vector<FleetAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
62 inline StartFleetActionsRequest& WithActions(const Aws::Vector<FleetAction>& value) { SetActions(value); return *this;}
63 inline StartFleetActionsRequest& WithActions(Aws::Vector<FleetAction>&& value) { SetActions(std::move(value)); return *this;}
64 inline StartFleetActionsRequest& AddActions(const FleetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
65 inline StartFleetActionsRequest& AddActions(FleetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
67
69
73 inline const Aws::String& GetLocation() const{ return m_location; }
74 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
75 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
76 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
77 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
78 inline StartFleetActionsRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
79 inline StartFleetActionsRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
80 inline StartFleetActionsRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
82 private:
83
84 Aws::String m_fleetId;
85 bool m_fleetIdHasBeenSet = false;
86
88 bool m_actionsHasBeenSet = false;
89
90 Aws::String m_location;
91 bool m_locationHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace GameLift
96} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartFleetActionsRequest & WithLocation(const char *value)
StartFleetActionsRequest & AddActions(FleetAction &&value)
StartFleetActionsRequest & WithFleetId(const Aws::String &value)
const Aws::Vector< FleetAction > & GetActions() const
StartFleetActionsRequest & WithLocation(Aws::String &&value)
StartFleetActionsRequest & WithActions(Aws::Vector< FleetAction > &&value)
StartFleetActionsRequest & WithFleetId(const char *value)
StartFleetActionsRequest & WithLocation(const Aws::String &value)
StartFleetActionsRequest & WithActions(const Aws::Vector< FleetAction > &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetActions(const Aws::Vector< FleetAction > &value)
StartFleetActionsRequest & WithFleetId(Aws::String &&value)
void SetActions(Aws::Vector< FleetAction > &&value)
StartFleetActionsRequest & AddActions(const FleetAction &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