AWS SDK for C++  1.8.55
AWS SDK for C++
UpdateFleetCapacityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetCapacity"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
45 
50  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
51 
56  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
57 
62  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
63 
68  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
69 
74  inline UpdateFleetCapacityRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
75 
80  inline UpdateFleetCapacityRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
81 
86  inline UpdateFleetCapacityRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
87 
88 
92  inline int GetDesiredInstances() const{ return m_desiredInstances; }
93 
97  inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
98 
102  inline void SetDesiredInstances(int value) { m_desiredInstancesHasBeenSet = true; m_desiredInstances = value; }
103 
107  inline UpdateFleetCapacityRequest& WithDesiredInstances(int value) { SetDesiredInstances(value); return *this;}
108 
109 
114  inline int GetMinSize() const{ return m_minSize; }
115 
120  inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
121 
126  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
127 
132  inline UpdateFleetCapacityRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
133 
134 
139  inline int GetMaxSize() const{ return m_maxSize; }
140 
145  inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
146 
151  inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
152 
157  inline UpdateFleetCapacityRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
158 
159  private:
160 
161  Aws::String m_fleetId;
162  bool m_fleetIdHasBeenSet;
163 
164  int m_desiredInstances;
165  bool m_desiredInstancesHasBeenSet;
166 
167  int m_minSize;
168  bool m_minSizeHasBeenSet;
169 
170  int m_maxSize;
171  bool m_maxSizeHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace GameLift
176 } // namespace Aws
UpdateFleetCapacityRequest & WithFleetId(const char *value)
UpdateFleetCapacityRequest & WithMaxSize(int value)
#define AWS_GAMELIFT_API
UpdateFleetCapacityRequest & WithMinSize(int value)
UpdateFleetCapacityRequest & WithDesiredInstances(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
virtual const char * GetServiceRequestName() const override
UpdateFleetCapacityRequest & WithFleetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateFleetCapacityRequest & WithFleetId(Aws::String &&value)