AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateFleetCapacityRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/ManagedCapacityConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GameLift {
16namespace Model {
17
21 public:
22 AWS_GAMELIFT_API UpdateFleetCapacityRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetCapacity"; }
29
30 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetFleetId() const { return m_fleetId; }
40 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
41 template <typename FleetIdT = Aws::String>
42 void SetFleetId(FleetIdT&& value) {
43 m_fleetIdHasBeenSet = true;
44 m_fleetId = std::forward<FleetIdT>(value);
45 }
46 template <typename FleetIdT = Aws::String>
48 SetFleetId(std::forward<FleetIdT>(value));
49 return *this;
50 }
52
54
60 inline int GetDesiredInstances() const { return m_desiredInstances; }
61 inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
62 inline void SetDesiredInstances(int value) {
63 m_desiredInstancesHasBeenSet = true;
64 m_desiredInstances = value;
65 }
68 return *this;
69 }
71
73
79 inline int GetMinSize() const { return m_minSize; }
80 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
81 inline void SetMinSize(int value) {
82 m_minSizeHasBeenSet = true;
83 m_minSize = value;
84 }
86 SetMinSize(value);
87 return *this;
88 }
90
92
96 inline int GetMaxSize() const { return m_maxSize; }
97 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
98 inline void SetMaxSize(int value) {
99 m_maxSizeHasBeenSet = true;
100 m_maxSize = value;
101 }
103 SetMaxSize(value);
104 return *this;
105 }
107
109
113 inline const Aws::String& GetLocation() const { return m_location; }
114 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
115 template <typename LocationT = Aws::String>
116 void SetLocation(LocationT&& value) {
117 m_locationHasBeenSet = true;
118 m_location = std::forward<LocationT>(value);
119 }
120 template <typename LocationT = Aws::String>
122 SetLocation(std::forward<LocationT>(value));
123 return *this;
124 }
126
128
132 inline const ManagedCapacityConfiguration& GetManagedCapacityConfiguration() const { return m_managedCapacityConfiguration; }
133 inline bool ManagedCapacityConfigurationHasBeenSet() const { return m_managedCapacityConfigurationHasBeenSet; }
134 template <typename ManagedCapacityConfigurationT = ManagedCapacityConfiguration>
135 void SetManagedCapacityConfiguration(ManagedCapacityConfigurationT&& value) {
136 m_managedCapacityConfigurationHasBeenSet = true;
137 m_managedCapacityConfiguration = std::forward<ManagedCapacityConfigurationT>(value);
138 }
139 template <typename ManagedCapacityConfigurationT = ManagedCapacityConfiguration>
140 UpdateFleetCapacityRequest& WithManagedCapacityConfiguration(ManagedCapacityConfigurationT&& value) {
141 SetManagedCapacityConfiguration(std::forward<ManagedCapacityConfigurationT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_fleetId;
147
148 int m_desiredInstances{0};
149
150 int m_minSize{0};
151
152 int m_maxSize{0};
153
154 Aws::String m_location;
155
156 ManagedCapacityConfiguration m_managedCapacityConfiguration;
157 bool m_fleetIdHasBeenSet = false;
158 bool m_desiredInstancesHasBeenSet = false;
159 bool m_minSizeHasBeenSet = false;
160 bool m_maxSizeHasBeenSet = false;
161 bool m_locationHasBeenSet = false;
162 bool m_managedCapacityConfigurationHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace GameLift
167} // namespace Aws
UpdateFleetCapacityRequest & WithMinSize(int value)
const ManagedCapacityConfiguration & GetManagedCapacityConfiguration() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetManagedCapacityConfiguration(ManagedCapacityConfigurationT &&value)
AWS_GAMELIFT_API UpdateFleetCapacityRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateFleetCapacityRequest & WithFleetId(FleetIdT &&value)
UpdateFleetCapacityRequest & WithLocation(LocationT &&value)
UpdateFleetCapacityRequest & WithManagedCapacityConfiguration(ManagedCapacityConfigurationT &&value)
UpdateFleetCapacityRequest & WithDesiredInstances(int value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateFleetCapacityRequest & WithMaxSize(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String