AWS SDK for C++

AWS SDK for C++ Version 1.11.684

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
11#include <utility>
12
13namespace Aws {
14namespace GameLift {
15namespace Model {
16
20 public:
21 AWS_GAMELIFT_API UpdateFleetCapacityRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetCapacity"; }
28
29 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetFleetId() const { return m_fleetId; }
39 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
40 template <typename FleetIdT = Aws::String>
41 void SetFleetId(FleetIdT&& value) {
42 m_fleetIdHasBeenSet = true;
43 m_fleetId = std::forward<FleetIdT>(value);
44 }
45 template <typename FleetIdT = Aws::String>
47 SetFleetId(std::forward<FleetIdT>(value));
48 return *this;
49 }
51
53
59 inline int GetDesiredInstances() const { return m_desiredInstances; }
60 inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
61 inline void SetDesiredInstances(int value) {
62 m_desiredInstancesHasBeenSet = true;
63 m_desiredInstances = value;
64 }
67 return *this;
68 }
70
72
76 inline int GetMinSize() const { return m_minSize; }
77 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
78 inline void SetMinSize(int value) {
79 m_minSizeHasBeenSet = true;
80 m_minSize = value;
81 }
83 SetMinSize(value);
84 return *this;
85 }
87
89
93 inline int GetMaxSize() const { return m_maxSize; }
94 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
95 inline void SetMaxSize(int value) {
96 m_maxSizeHasBeenSet = true;
97 m_maxSize = value;
98 }
100 SetMaxSize(value);
101 return *this;
102 }
104
106
110 inline const Aws::String& GetLocation() const { return m_location; }
111 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
112 template <typename LocationT = Aws::String>
113 void SetLocation(LocationT&& value) {
114 m_locationHasBeenSet = true;
115 m_location = std::forward<LocationT>(value);
116 }
117 template <typename LocationT = Aws::String>
119 SetLocation(std::forward<LocationT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_fleetId;
125 bool m_fleetIdHasBeenSet = false;
126
127 int m_desiredInstances{0};
128 bool m_desiredInstancesHasBeenSet = false;
129
130 int m_minSize{0};
131 bool m_minSizeHasBeenSet = false;
132
133 int m_maxSize{0};
134 bool m_maxSizeHasBeenSet = false;
135
136 Aws::String m_location;
137 bool m_locationHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace GameLift
142} // namespace Aws
UpdateFleetCapacityRequest & WithMinSize(int value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API UpdateFleetCapacityRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateFleetCapacityRequest & WithFleetId(FleetIdT &&value)
UpdateFleetCapacityRequest & WithLocation(LocationT &&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