AWS SDK for C++  1.8.7
AWS SDK for C++
StopFleetActionsRequest.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 
24  {
25  public:
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 "StopFleetActions"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
43  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
44 
49  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
50 
55  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
56 
61  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
62 
67  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
68 
73  inline StopFleetActionsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
74 
79  inline StopFleetActionsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
80 
85  inline StopFleetActionsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
86 
87 
91  inline const Aws::Vector<FleetAction>& GetActions() const{ return m_actions; }
92 
96  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
97 
101  inline void SetActions(const Aws::Vector<FleetAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
102 
106  inline void SetActions(Aws::Vector<FleetAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
107 
111  inline StopFleetActionsRequest& WithActions(const Aws::Vector<FleetAction>& value) { SetActions(value); return *this;}
112 
116  inline StopFleetActionsRequest& WithActions(Aws::Vector<FleetAction>&& value) { SetActions(std::move(value)); return *this;}
117 
121  inline StopFleetActionsRequest& AddActions(const FleetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
122 
126  inline StopFleetActionsRequest& AddActions(FleetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
127 
128  private:
129 
130  Aws::String m_fleetId;
131  bool m_fleetIdHasBeenSet;
132 
133  Aws::Vector<FleetAction> m_actions;
134  bool m_actionsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace GameLift
139 } // namespace Aws
void SetActions(const Aws::Vector< FleetAction > &value)
#define AWS_GAMELIFT_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StopFleetActionsRequest & WithFleetId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
StopFleetActionsRequest & AddActions(const FleetAction &value)
StopFleetActionsRequest & WithFleetId(Aws::String &&value)
StopFleetActionsRequest & WithActions(Aws::Vector< FleetAction > &&value)
StopFleetActionsRequest & WithFleetId(const char *value)
const Aws::Vector< FleetAction > & GetActions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StopFleetActionsRequest & AddActions(FleetAction &&value)
void SetActions(Aws::Vector< FleetAction > &&value)
StopFleetActionsRequest & WithActions(const Aws::Vector< FleetAction > &value)