AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
StartFleetActionsRequest.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/FleetAction.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API StartFleetActionsRequest() = 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 "StartFleetActions"; }
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
58 inline const Aws::Vector<FleetAction>& GetActions() const { return m_actions; }
59 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
60 template <typename ActionsT = Aws::Vector<FleetAction>>
61 void SetActions(ActionsT&& value) {
62 m_actionsHasBeenSet = true;
63 m_actions = std::forward<ActionsT>(value);
64 }
65 template <typename ActionsT = Aws::Vector<FleetAction>>
67 SetActions(std::forward<ActionsT>(value));
68 return *this;
69 }
71 m_actionsHasBeenSet = true;
72 m_actions.push_back(value);
73 return *this;
74 }
76
78
82 inline const Aws::String& GetLocation() const { return m_location; }
83 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
84 template <typename LocationT = Aws::String>
85 void SetLocation(LocationT&& value) {
86 m_locationHasBeenSet = true;
87 m_location = std::forward<LocationT>(value);
88 }
89 template <typename LocationT = Aws::String>
91 SetLocation(std::forward<LocationT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_fleetId;
97 bool m_fleetIdHasBeenSet = false;
98
100 bool m_actionsHasBeenSet = false;
101
102 Aws::String m_location;
103 bool m_locationHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace GameLift
108} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< FleetAction > & GetActions() const
AWS_GAMELIFT_API StartFleetActionsRequest()=default
StartFleetActionsRequest & WithLocation(LocationT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
StartFleetActionsRequest & AddActions(FleetAction value)
StartFleetActionsRequest & WithFleetId(FleetIdT &&value)
StartFleetActionsRequest & WithActions(ActionsT &&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