1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
21   /**
22    * <p>Represents the input for a request operation.</p><p><h3>See Also:</h3>   <a
23    * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopFleetActionsInput">AWS
24    * API Reference</a></p>
25    */
26   class AWS_GAMELIFT_API StopFleetActionsRequest : public GameLiftRequest
27   {
28   public:
29     StopFleetActionsRequest();
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.
GetServiceRequestName()35     inline virtual const char* GetServiceRequestName() const override { return "StopFleetActions"; }
36 
37     Aws::String SerializePayload() const override;
38 
39     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
42     /**
43      * <p>A unique identifier for the fleet to stop actions on. You can use either the
44      * fleet ID or ARN value.</p>
45      */
GetFleetId()46     inline const Aws::String& GetFleetId() const{ return m_fleetId; }
47 
48     /**
49      * <p>A unique identifier for the fleet to stop actions on. You can use either the
50      * fleet ID or ARN value.</p>
51      */
FleetIdHasBeenSet()52     inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
53 
54     /**
55      * <p>A unique identifier for the fleet to stop actions on. You can use either the
56      * fleet ID or ARN value.</p>
57      */
SetFleetId(const Aws::String & value)58     inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
59 
60     /**
61      * <p>A unique identifier for the fleet to stop actions on. You can use either the
62      * fleet ID or ARN value.</p>
63      */
SetFleetId(Aws::String && value)64     inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
65 
66     /**
67      * <p>A unique identifier for the fleet to stop actions on. You can use either the
68      * fleet ID or ARN value.</p>
69      */
SetFleetId(const char * value)70     inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
71 
72     /**
73      * <p>A unique identifier for the fleet to stop actions on. You can use either the
74      * fleet ID or ARN value.</p>
75      */
WithFleetId(const Aws::String & value)76     inline StopFleetActionsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
77 
78     /**
79      * <p>A unique identifier for the fleet to stop actions on. You can use either the
80      * fleet ID or ARN value.</p>
81      */
WithFleetId(Aws::String && value)82     inline StopFleetActionsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
83 
84     /**
85      * <p>A unique identifier for the fleet to stop actions on. You can use either the
86      * fleet ID or ARN value.</p>
87      */
WithFleetId(const char * value)88     inline StopFleetActionsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
89 
90 
91     /**
92      * <p>List of actions to suspend on the fleet. </p>
93      */
GetActions()94     inline const Aws::Vector<FleetAction>& GetActions() const{ return m_actions; }
95 
96     /**
97      * <p>List of actions to suspend on the fleet. </p>
98      */
ActionsHasBeenSet()99     inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
100 
101     /**
102      * <p>List of actions to suspend on the fleet. </p>
103      */
SetActions(const Aws::Vector<FleetAction> & value)104     inline void SetActions(const Aws::Vector<FleetAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
105 
106     /**
107      * <p>List of actions to suspend on the fleet. </p>
108      */
SetActions(Aws::Vector<FleetAction> && value)109     inline void SetActions(Aws::Vector<FleetAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
110 
111     /**
112      * <p>List of actions to suspend on the fleet. </p>
113      */
WithActions(const Aws::Vector<FleetAction> & value)114     inline StopFleetActionsRequest& WithActions(const Aws::Vector<FleetAction>& value) { SetActions(value); return *this;}
115 
116     /**
117      * <p>List of actions to suspend on the fleet. </p>
118      */
WithActions(Aws::Vector<FleetAction> && value)119     inline StopFleetActionsRequest& WithActions(Aws::Vector<FleetAction>&& value) { SetActions(std::move(value)); return *this;}
120 
121     /**
122      * <p>List of actions to suspend on the fleet. </p>
123      */
AddActions(const FleetAction & value)124     inline StopFleetActionsRequest& AddActions(const FleetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
125 
126     /**
127      * <p>List of actions to suspend on the fleet. </p>
128      */
AddActions(FleetAction && value)129     inline StopFleetActionsRequest& AddActions(FleetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
130 
131 
132     /**
133      * <p>The fleet location to stop fleet actions for. Specify a location in the form
134      * of an AWS Region code, such as <code>us-west-2</code>.</p>
135      */
GetLocation()136     inline const Aws::String& GetLocation() const{ return m_location; }
137 
138     /**
139      * <p>The fleet location to stop fleet actions for. Specify a location in the form
140      * of an AWS Region code, such as <code>us-west-2</code>.</p>
141      */
LocationHasBeenSet()142     inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
143 
144     /**
145      * <p>The fleet location to stop fleet actions for. Specify a location in the form
146      * of an AWS Region code, such as <code>us-west-2</code>.</p>
147      */
SetLocation(const Aws::String & value)148     inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
149 
150     /**
151      * <p>The fleet location to stop fleet actions for. Specify a location in the form
152      * of an AWS Region code, such as <code>us-west-2</code>.</p>
153      */
SetLocation(Aws::String && value)154     inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
155 
156     /**
157      * <p>The fleet location to stop fleet actions for. Specify a location in the form
158      * of an AWS Region code, such as <code>us-west-2</code>.</p>
159      */
SetLocation(const char * value)160     inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
161 
162     /**
163      * <p>The fleet location to stop fleet actions for. Specify a location in the form
164      * of an AWS Region code, such as <code>us-west-2</code>.</p>
165      */
WithLocation(const Aws::String & value)166     inline StopFleetActionsRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
167 
168     /**
169      * <p>The fleet location to stop fleet actions for. Specify a location in the form
170      * of an AWS Region code, such as <code>us-west-2</code>.</p>
171      */
WithLocation(Aws::String && value)172     inline StopFleetActionsRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
173 
174     /**
175      * <p>The fleet location to stop fleet actions for. Specify a location in the form
176      * of an AWS Region code, such as <code>us-west-2</code>.</p>
177      */
WithLocation(const char * value)178     inline StopFleetActionsRequest& 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
195